Skip to content

Commit

Permalink
update nev version
Browse files Browse the repository at this point in the history
  • Loading branch information
feyzullahdemir committed Dec 27, 2022
1 parent 466bd74 commit a6f378e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions paywithiyzico/config_tr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<module>
<name>paywithiyzico</name>
<displayName><![CDATA[iyzico ile &ouml;de &Ouml;deme Mod&uuml;l&uuml;]]></displayName>
<version><![CDATA[1.0.5]]></version>
<version><![CDATA[1.1.0]]></version>
<description><![CDATA[PrestaShop i&ccedil;in iyzico ile &ouml;de &Ouml;deme Ge&ccedil;idi]]></description>
<author><![CDATA[iyzico]]></author>
<tab><![CDATA[payments_gateways]]></tab>
<confirmUninstall><![CDATA[emin misiniz ?]]></confirmUninstall>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
<limited_countries></limited_countries>
</module>
</module>
10 changes: 9 additions & 1 deletion paywithiyzico/controllers/front/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ public function init()
Tools::redirect('index.php?controller=order-confirmation&id_cart='.$orderId.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
}

if($requestResponse->paymentStatus == 'PENDING_CREDIT' && $requestResponse->status == 'success') {
$orderMessage = 'Alışveriş kredisi başvurusu sürecindedir.';
Configuration::updateValue('thankyou_page_text',1);
$this->module->validateOrder($orderId, Configuration::get('PS_OS_PREPARATION'), $cartTotal, $this->module->displayName, $orderMessage, $extraVars, NULL, false, $customerSecureKey);
Tools::redirect('index.php?controller=order-confirmation&id_cart='.$orderId.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
}
Configuration::updateValue('thankyou_page_text',0);

if (empty($orderId)) {
if ($token) {
$this->cancelPayment($locale, $requestResponse->paymentId, $remoteIpAddr, $apiKey, $secretKey, $rand, $endpoint);
Expand Down Expand Up @@ -241,4 +249,4 @@ private function cancelPayment($locale, $paymentId, $remoteIpAddr, $apiKey, $sec
$errorMessage = $this->l('uniqError');
throw new \Exception($errorMessage);
}
}
}
2 changes: 1 addition & 1 deletion paywithiyzico/paywithiyzico.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct()
{
$this->name = 'paywithiyzico';
$this->tab = 'payments_gateways';
$this->version = '1.0.5';
$this->version = '1.1.0';
$this->author = 'iyzico';
$this->need_instance = 1;

Expand Down

0 comments on commit a6f378e

Please sign in to comment.