TLS 1.2 verification fail: cURL error (6): Could not resolve host: tlstest.paypal.com

anaturex
New Community Member

I use paypal express and everything works with live mode but not in sand mode. I get the above error message.

 

Any idea why?

Login to Me Too
3 REPLIES 3

MTS_Jennifer
Moderator
Moderator

Hello,

Thank you for posting to the PayPal Sandbox Community.

Usually that error means that in your Sandbox Environment you are not TLS 1.2 compliant. You have a few options available, you can ensure that your sandbox environment is TLS 1.2 Compliant. You will want to keep your live settings to remain TLS 1.2 compliant, but in sandbox you can either ensure that your environment is compliant, or make an update to your cURL calls for Sandbox Only:

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

 

Thank you,

Jennifer

PayPal

Login to Me Too

zebraduck
New Community Member

The answer does not seem to be accurate. This error usually means there is something wrong with DNS resolution.

 

In fact I am almost sure it's an existing issue.

 

Wait, here you go, it was reported 8 months ago ! And never responded to.

 

https://www.paypal-community.com/t5/REST-APIs/https-tlstest-paypal-com-not-work/m-p/1934209/highligh...

 

Paypal, please fix the DNS record please.

Login to Me Too

neoacevedo
Contributor
Contributor

@MTS_Jenniferit has already MORE THAN 1 YEAR and the issue is still present!

 

Amazing! https://tlstest.paypal.com/ is fully dead. What happens with PayPal and its support?

 

Ah! I forgot to say, this happens in Sandbox and PRODUCTION ENVIRONMENT.

Login to Me Too

Haven't Found your Answer?

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