Paypal TLS upgrade : verifypeer and verifyhost

This commit is contained in:
Rodney Figaro 2017-05-19 14:52:58 +02:00
parent c52564a49f
commit 65f19d26a4

View File

@ -83,8 +83,8 @@ class PayPalConnect
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_HEADER, false);
@curl_setopt($ch, CURLOPT_TIMEOUT, 30);
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
@curl_setopt($ch, CURLOPT_SSLVERSION, defined('CURL_SSLVERSION_TLSv1') ? CURL_SSLVERSION_TLSv1 : 1);
@curl_setopt($ch, CURLOPT_VERBOSE, false);