diff --git a/admin/controller/payment/iyzico.php b/admin/controller/payment/iyzico.php
index 6becf55..aad2dc5 100644
--- a/admin/controller/payment/iyzico.php
+++ b/admin/controller/payment/iyzico.php
@@ -2,7 +2,7 @@
class ControllerPaymentIyzico extends Controller {
- private $module_version = "2.0.0";
+ private $module_version = "2.1.0";
private $module_product_name = "FLAP";
private $error = array();
@@ -310,4 +310,4 @@ private function setPWIModuleFirstStatus($pwiStatus)
$this->db->query("INSERT INTO `" . DB_PREFIX . "setting` (`code`, `key`, `value`, `serialized`) VALUES ('payment_iyzico_pwi_status', 'payment_iyzico_pwi_first_enabled_status', '1', '0');");
}
}
-}
\ No newline at end of file
+}
diff --git a/admin/model/payment/iyzico.php b/admin/model/payment/iyzico.php
index c84ffb2..203318f 100644
--- a/admin/model/payment/iyzico.php
+++ b/admin/model/payment/iyzico.php
@@ -141,7 +141,7 @@ public function curlPost($json,$authorizationData,$url) {
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
- curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
+ curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_NONE);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
curl_setopt(
@@ -159,4 +159,4 @@ public function curlPost($json,$authorizationData,$url) {
return $result;
}
-}
\ No newline at end of file
+}
diff --git a/catalog/controller/extension/payment/iyzico.php b/catalog/controller/extension/payment/iyzico.php
index aa3d947..e0f4aaf 100644
--- a/catalog/controller/extension/payment/iyzico.php
+++ b/catalog/controller/extension/payment/iyzico.php
@@ -3,7 +3,7 @@
//Opencart2.3v and 2.0v are using Payment
class ControllerExtensionPaymentIyzico extends Controller {
- private $module_version = "2.0.0";
+ private $module_version = "2.1.0";
private $module_product_name = "FLAP";
public function index()
@@ -449,7 +449,7 @@ public function injectOverlayScript($route, $args, &$output) {
left: 0;
width: 100%;
}
- }
+ }
";
@@ -504,4 +504,4 @@ public function webhookHttpResponse($message,$status){
exit();
}
-}
\ No newline at end of file
+}
diff --git a/catalog/controller/payment/iyzico.php b/catalog/controller/payment/iyzico.php
index 338d645..fa09c3c 100644
--- a/catalog/controller/payment/iyzico.php
+++ b/catalog/controller/payment/iyzico.php
@@ -3,7 +3,7 @@
//Opencart2.0v Only use for index function
class ControllerPaymentIyzico extends Controller {
- private $module_version = "2.0.0";
+ private $module_version = "2.1.0";
private $module_product_name = "FLAP";
public function index()
@@ -67,4 +67,4 @@ private function setcookieSameSite($name, $value, $expire, $path, $domain, $secu
}
-}
\ No newline at end of file
+}
diff --git a/catalog/model/payment/iyzico.php b/catalog/model/payment/iyzico.php
index 035a5bb..5e330cd 100644
--- a/catalog/model/payment/iyzico.php
+++ b/catalog/model/payment/iyzico.php
@@ -181,7 +181,7 @@ public function curlPost($json,$authorization_data,$url) {
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
- curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
+ curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_NONE);
curl_setopt($curl, CURLOPT_TIMEOUT, 150);
curl_setopt(
@@ -203,7 +203,7 @@ public function curlPost($json,$authorization_data,$url) {
public function insertCardUserKey($customer_id,$card_user_key,$api_key) {
- $insertCard = $this->db->query("INSERT INTO `" . DB_PREFIX . "iyzico_card` SET
+ $insertCard = $this->db->query("INSERT INTO `" . DB_PREFIX . "iyzico_card` SET
`customer_id` = '" . $this->db->escape($customer_id) . "',
`card_user_key` = '" . $this->db->escape($card_user_key) . "',
`api_key` = '" . $this->db->escape($api_key) . "'");
@@ -228,9 +228,9 @@ public function findUserCardKey($customer_id,$api_key) {
public function insertIyzicoOrder($order) {
- $insertOrder = $this->db->query("INSERT INTO `" . DB_PREFIX . "iyzico_order` SET
+ $insertOrder = $this->db->query("INSERT INTO `" . DB_PREFIX . "iyzico_order` SET
`payment_id` = '" . $this->db->escape($order->payment_id) . "',
- `order_id` = '" . $this->db->escape($order->order_id) . "',
+ `order_id` = '" . $this->db->escape($order->order_id) . "',
`total_amount` = '" . $this->db->escape($order->total_amount) . "',
`status` = '" . $this->db->escape($order->status) . "'");
@@ -324,4 +324,4 @@ public function addCustomerMessageToOrderHistory($order_id, $order_status_id, $c
{
$this->db->query("INSERT INTO " . DB_PREFIX . "order_history SET order_id = '" . (int)$order_id . "', order_status_id = '" . (int)$order_status_id . "', notify = '" . (int)$notify . "', comment = '" . $this->db->escape($comment) . "', date_added = NOW()");
}
-}
\ No newline at end of file
+}