Elxis CMS Forum

Extensions => Components => Topic started by: datahell on April 10, 2018, 20:12:34

Title: Open Shop TLS v1.2 for Paypal
Post by: datahell on April 10, 2018, 20:12:34
If you use component Open Shop (https://www.elxis.net/edc/ecommerce/110.html) and Paypal for payments then you MUST follow the instructions I provide below!

In June 2018 Paypal switches from TLS v1.1 to version 1.2. This means that your server must support OpenSSL at least of version 1.0.1c. But this is an other topic.

One small change is required in an open shop file in order IPN requests to use TLS v1.2 instead of v1.1. You can either download Open Shop, get that file and replace it in your system or open it with a text editor and do the changes I will write below.

The file is this one:
includes/pm/paypal/paypal.php

Open it and change these:

Change line 393 from this:
curl_setopt($ch, CURLOPT_SSLVERSION, 1);
to this:
curl_setopt($ch, CURLOPT_SSLVERSION, 6);

Change line 398 from this:
curl_setopt($ch, CURLOPT_SSLVERSION, 1);
to this:
curl_setopt($ch, CURLOPT_SSLVERSION, 6);

Go to line 401:
} else {//no SSL certificate
Add below:
   curl_setopt($ch, CURLOPT_SSLVERSION, 6);


That's it!


If you dont do this change on June 2018 Paypal IPN requests will stop working in your shop!
Title: Re: Open Shop TLS v1.2 for Paypal
Post by: rentasite on May 02, 2018, 15:25:43

John, can these changes be done before June 2018? Or should we wait for Paypal's switch?
Title: Re: Open Shop TLS v1.2 for Paypal
Post by: datahell on May 03, 2018, 18:11:06
You can do them right now.