diff --git a/shop/settle_nicepay.inc.php b/shop/settle_nicepay.inc.php index bf4524c39..2f1cd537c 100644 --- a/shop/settle_nicepay.inc.php +++ b/shop/settle_nicepay.inc.php @@ -60,7 +60,8 @@ if (! function_exists('nicepay_reqPost')) { curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); //connection timeout 15 - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); //POST data curl_setopt($ch, CURLOPT_POST, true); $response = curl_exec($ch);