From e2cdc48d000b4b7da09bd89b27a357cad85cf1e8 Mon Sep 17 00:00:00 2001 From: Dat Date: Fri, 16 Dec 2016 17:55:39 +0100 Subject: [PATCH] SLL Verifier --- src/app/code/community/Sirateck/Lemonway/Model/Apikit/Kit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/code/community/Sirateck/Lemonway/Model/Apikit/Kit.php b/src/app/code/community/Sirateck/Lemonway/Model/Apikit/Kit.php index 1d6243e..f6d4915 100644 --- a/src/app/code/community/Sirateck/Lemonway/Model/Apikit/Kit.php +++ b/src/app/code/community/Sirateck/Lemonway/Model/Apikit/Kit.php @@ -270,7 +270,7 @@ public function printCardForm($moneyInToken, $cssUrl = '', $language = 'fr'){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->getConfig()->getWebkitUrl()."?moneyintoken=".$moneyInToken.'&p='.urlencode($cssUrl).'&lang='.$language); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, !$this->getConfig()->isTestMode()); $server_output = curl_exec ($ch); if(curl_errno($ch))