diff --git a/app/code/community/Konduto/Score/Helper/Order.php b/app/code/community/Konduto/Score/Helper/Order.php index cfb0d4b..336f661 100644 --- a/app/code/community/Konduto/Score/Helper/Order.php +++ b/app/code/community/Konduto/Score/Helper/Order.php @@ -118,8 +118,7 @@ public function fireRequest($data, $oid = null) { CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $data, CURLOPT_HTTPHEADER => $header, - CURLOPT_CONNECTTIMEOUT => 5, - CURLOPT_TIMEOUT => 10, + CURLOPT_TIMEOUT => 60, CURLOPT_SSL_VERIFYHOST => $sslVerifyHost, CURLOPT_SSL_VERIFYPEER => $sslVerifyPeer )); @@ -150,7 +149,7 @@ public function getPaymentDetails($order, $ret=array()) { $expyear = (strlen($expyear) == 2 ? "20" . $expyear : $expyear); if (($expmo) && ($expyear)) { $ret["expiration_date"] = $expmo . $expyear; - } + } switch ($payment->getMethod()) { case 'authorizenet': $ret["include"] = true; @@ -182,14 +181,14 @@ public function getPaymentDetails($order, $ret=array()) { break; } - if ((is_string($cc_six)) && (strlen($cc_six) == 6)) { + if ((is_string($cc_six)) && (strlen($cc_six) == 6)) { $ret["bin"] = $cc_six; $ret["include"] = true; } - + return $ret; } - + public function getVisitorId($id = NULL) { if (isset($_COOKIE['_kdt'])) { $cookie = json_decode($_COOKIE['_kdt'], true);