Skip to content
Snippets Groups Projects
Commit 9e0817ac authored by Frédéric France's avatar Frédéric France
Browse files

Update paypal.lib.php

parent 9d0f096e
No related branches found
No related tags found
No related merge requests found
......@@ -702,10 +702,8 @@ function hash_call($methodName,$nvpStr)
exit;*/
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt($ch, CURLOPT_SSLVERSION, 3); // unsecure, no more accepted
curl_setopt($ch, CURLOPT_SSLVERSION, 1); // Force TLSv1
// After 14 january 2016 paypal will accept tls v1.2 and no more tls v1
//curl_setopt($ch, CURLOPT_SSLVERSION, 6); // Force TLSv1.2
// TLSv1 by default or change to TLSv1.2 in module configuration
curl_setopt($ch, CURLOPT_SSLVERSION, (empty($conf->global->PAYPAL_SSLVERSION)?1:$conf->global->PAYPAL_SSLVERSION));
//turning off the server and peer verification(TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment