diff --git a/.DS_Store b/.DS_Store index d56cb8c..c65b0d3 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/iyzico/admin/controller/payment/iyzico.php b/iyzico/admin/controller/payment/iyzico.php index 731c3c4..08cea66 100644 --- a/iyzico/admin/controller/payment/iyzico.php +++ b/iyzico/admin/controller/payment/iyzico.php @@ -6,7 +6,7 @@ class iyzico extends \Opencart\System\Engine\Controller { private $error = array(); private $iyzico; private $module_version = VERSION; - private $module_product_name = '2.0'; + private $module_product_name = '2.1'; private $fields = array( diff --git a/iyzico/catalog/controller/payment/iyzico.php b/iyzico/catalog/controller/payment/iyzico.php index 91e3cb5..8a81443 100644 --- a/iyzico/catalog/controller/payment/iyzico.php +++ b/iyzico/catalog/controller/payment/iyzico.php @@ -4,7 +4,7 @@ class iyzico extends \Opencart\System\Engine\Controller { private $module_version = VERSION; - private $module_product_name = '2.0'; + private $module_product_name = '2.1'; private $paymentConversationId; private $webhookToken; @@ -195,7 +195,7 @@ public function getCheckoutFormToken() { } - public function getCallBack($webhook = null, $webhookPaymentConversationId = null ,$webhookToken = null) { + public function getCallBack($webhook = null, $webhookPaymentConversationId = null ,$webhookToken = null ,$webhookIyziEventType = null) { try { @@ -688,14 +688,14 @@ public function webhook(){ $createIyzicoSignature = base64_encode(sha1($secretKey . $this->iyziEventType . $this->webhookToken, true)); if ($this->iyziSignature == $createIyzicoSignature){ - $this->getCallBack('webhook', $params['paymentConversationId'], $params['token']); + $this->getCallBack('webhook', $params['paymentConversationId'], $params['token'],$params['iyziEventType']); } else{ $this->webhookHttpResponse("signature_not_valid - X-IYZ-SIGNATURE geçersiz", 404); } } else{ - $this->getCallBack('webhook', $params['paymentConversationId'], $params['token']); + $this->getCallBack('webhook', $params['paymentConversationId'], $params['token'],$params['iyziEventType']); } } else{ diff --git a/iyzico/catalog/view/template/payment/iyzico_error.twig b/iyzico/catalog/view/template/payment/iyzico_error.twig index 723ceb2..1a2329d 100644 --- a/iyzico/catalog/view/template/payment/iyzico_error.twig +++ b/iyzico/catalog/view/template/payment/iyzico_error.twig @@ -12,7 +12,7 @@
{{ content_top }}

{{ error_title }}

-

{{ error_message }}

+

{{ errorMessage }}

diff --git a/iyzico/install.json b/iyzico/install.json index 67baf4e..d58771a 100644 --- a/iyzico/install.json +++ b/iyzico/install.json @@ -2,7 +2,7 @@ "name": "iyzico", "code": "iyzico", "license": "GPL", - "version": "2.0.0", + "version": "2.1.0", "author": "iyzico", "link": "https://www.iyzico.com/" }