From 92684d65bb2e33bdb22fc822f35c0c57e0e4e6d5 Mon Sep 17 00:00:00 2001 From: PLESK5 Date: Mon, 29 May 2017 14:23:01 +0200 Subject: [PATCH] paypal update --- modules/paypal/api/paypal_connect.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)