Jump to content

Empty PayPal Error message


Recommended Posts

When debugging the data returned by the curl, I got this error 

erreur SSL3_GET_RECORD:wrong version number

To fix the error, open the file "\www\myprestashop\modules\paypal\api\paypal_connect.php"

Find this instruction 

@curl_setopt($ch, CURLOPT_SSLVERSION, 3);

And replace it by

@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

 

When debugging the data returned by the curl, I got this error 

erreur SSL3_GET_RECORD:wrong version number

To fix the error, open the file "\www\myprestashop\modules\paypal\api\paypal_connect.php"

Find this instruction 

@curl_setopt($ch, CURLOPT_SSLVERSION, 3);

And replace it by

@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3);

Thanks a lot jojohn, it worked! :)

Link to comment
Share on other sites

  • 1 year later...

<bump> 

 

I received two empty messages regarding this same paypal error today. I found this code in paypal_connect.php:

@curl_setopt($ch, CURLOPT_SSLVERSION, defined('CURL_SSLVERSION_TLSv1') ? CURL_SSLVERSION_TLSv1 : 1);

I am using Prestashop 1.6.1.4

Does anybody know what I should change in my case?

Link to comment
Share on other sites

×
×
  • Create New...