Issue with Payflow Pro: "Failed to connect to host" Error on Server Deployment

harjinderkamboj
Contributor
Contributor

Hi all,

I'm encountering an issue with Payflow Pro while trying to get a SecureToken by posting data to https://pilot-payflowpro.paypal.com.

Here’s the request I'm sending:


{
"TRXTYPE": "A",
"BILLTOSTREET": "123 Main St.",
"BILLTOZIP": "L6R0Z4",
"AMT": "1.35",
"CURRENCY": "CAD",
"PWD": "P@ssw0rd123*",
"USER": "user_name",
"VENDOR": "vendor_name",
"PARTNER": "partner_name",
"CREATESECURETOKEN": "Y",
"SECURETOKENID": "9a9ea8208de1413abc3d60c86cb1f4c5",
"SILENTTRAN": "TRUE"
}

 

On my local machine, I receive the response just fine with RESULT=0. However, when deploying to another server, I receive the following response:

RESULT=-1&RESPMSG=Failed to connect to host Input Server Uri = https://pilot-payflowpro.paypal.com/

 

To address this, I added the following lines to my C# code, based on online suggestions:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls12;

 

However, this change hasn't resolved the issue.

 

What could be causing this problem? Any insights or suggestions would be greatly appreciated.

Thanks in advance!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.