Skip to content

Commit

Permalink
+Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
feyzullahdemir committed Feb 20, 2023
1 parent d2be4c9 commit 53a0c4e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions admin/controller/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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');");
}
}
}
}
4 changes: 2 additions & 2 deletions admin/model/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -159,4 +159,4 @@ public function curlPost($json,$authorizationData,$url) {
return $result;
}

}
}
6 changes: 3 additions & 3 deletions catalog/controller/extension/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -449,7 +449,7 @@ public function injectOverlayScript($route, $args, &$output) {
left: 0;
width: 100%;
}
}
}
</style><script> window.iyz = { token: '" . $token . "', position: '" . $overlay_status . "', ideaSoft: false, pwi:true};</script>
<script src='https://static.iyzipay.com/buyer-protection/buyer-protection.js' type='text/javascript'></script></footer>";

Expand Down Expand Up @@ -504,4 +504,4 @@ public function webhookHttpResponse($message,$status){
exit();
}

}
}
4 changes: 2 additions & 2 deletions catalog/controller/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -67,4 +67,4 @@ private function setcookieSameSite($name, $value, $expire, $path, $domain, $secu
}


}
}
10 changes: 5 additions & 5 deletions catalog/model/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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) . "'");
Expand All @@ -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) . "'");

Expand Down Expand Up @@ -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()");
}
}
}

0 comments on commit 53a0c4e

Please sign in to comment.