Why did I get result code -2?

There are three reasons why you may receive result code -2:

  1. Domain Name Service (DNS) isn't set up correctly.
  2. HOSTADDRESS values are incorrect.
  3. "Null" is being passed within the proxy parameters.

DNS not set up correctly
To determine if DNS setup caused the error, open a command prompt and type nslookup pilot-payflowpro.paypal.com. The nslookup is a Windows program. If you're running another OS, use a function that provides similar results. The results displayed should look like this:

Server: <your local domain>
Address: <your local IP address>

Name: pilot-payflowpro.paypal.com
Address: XXX.XXX.XXX.XXX

If the IP address returned isn't what is listed or within the same range (see What are the IP addresses for Live PayPal servers?), clear your DNS cache. If the nslookup command produces a timeout response or causes any other error to be displayed, your DNS server isn't set up or configured correctly. Contact your IT department or Internet Service Provider (ISP).
 

Host address incorrect
Verify that the HOSTADDRESS values are correct. These should be: 

  • Live server: payflowpro.paypal.com
  • Test server: pilot-payflowpro.paypal.com

Update your HOSTADDRESS values if necessary.

"NULL" being passed within the proxy parameters
If you're not using a proxy server, leave the information blank by entering two double quotes, as shown in the following example.

Correct: ProxyAddress = "”
Incorrect: ProxyAddress = "Null"

Note: If you use an IP address instead of a domain name, any changes made to our DNS will cause your transactions to fail. As a result, you'll have to update your application and website with the new IP address each time DNS changes occur.

Autres manières d'obtenir de l'aide

Si vous acceptez les cookies, nous les utiliserons pour améliorer votre expérience et permettre à nos partenaires de vous présenter des publicités PayPal personnalisées lorsque vous visitez d'autres sites. En savoir plus et gérer les cookies