-
Notifications
You must be signed in to change notification settings - Fork 100
REST calls to Sandbox fail with SSL connect error on RHEL 6 without TLSv1.2 #474
Comments
This is happening to me too. I forked this SDK yesterday and it was working fine. Now it doesn't :S |
https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1914&expand=true&locale=en_US After January 19-20 |
Thanks for the info @pp-randy , what should we do? I ran the test and says it's ok:
|
I don't think so: |
I will accept the PR from @tobeorla and make a release with minor version. Updating your SDK should solve your issue. However, if for any reason, you are not ready to make the change, and want to enable PayPal again, you can follow the step shown in sample/bootstrap.php. Adding below lines to your bootstrap location, before making a call should allow you to override the default curl options in the SDK. Optionally, you can do the same if you are using sdk_config.ini. PayPalHttpConfig::$defaultCurlOptions[CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2; Above code should automatically update the curl version to TLSv1.2 which is now required for sandbox. |
Made a release v1.6.4 with proper fix. |
@jaypatel512, |
@jaypatel512, @juwlee,@pp-randy |
Hi, |
@MhmudHsham I am locking this conversation, please open a new issue with your debug Id. |
Hey PayPal,
I'm unable to connect to api.sandbox.paypal.com without setting:
CURLOPT_SSLVERSION => 6
(Instead of 1 as it currently is)
api.paypal.com works fine.
Is this a known issue?
The text was updated successfully, but these errors were encountered: