diff --git a/modules/paypal/api/paypal_connect.php b/modules/paypal/api/paypal_connect.php index 56f8832..43666af 100755 --- a/modules/paypal/api/paypal_connect.php +++ b/modules/paypal/api/paypal_connect.php @@ -83,9 +83,10 @@ 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); if ($http_header)