Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
feyzullahdemir committed Oct 13, 2023
1 parent 2720906 commit 9ff3a29
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion iyzico/admin/controller/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions iyzico/catalog/controller/payment/iyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion iyzico/catalog/view/template/payment/iyzico_error.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div style="text-align:center;" id="content" class="{{ class }}">{{ content_top }}
<h1 style="text-alicen:center;">{{ error_title }}</h1>
<img src="{{error_icon}}" width="64" height="64" style="text-align:center;"/>
<p style="text-align:center;">{{ error_message }}</p>
<p style="text-align:center;">{{ errorMessage }}</p>
<div class="buttons clearfix">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion iyzico/install.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
}

0 comments on commit 9ff3a29

Please sign in to comment.