diff --git a/README.md b/README.md index ee8ee63..094100a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Pay with iyzico - PrestaShop Payment Gateway ------------ * Create live account at https://merchant.iyzipay.com -* Create test account at https://sandbox-iyzipay.com +* Create test account at https://sandbox-merchant.iyzipay.com # Requirements diff --git a/paywithiyzico/classes/PaywithiyzicoModel.php b/paywithiyzico/classes/PaywithiyzicoModel.php new file mode 100644 index 0000000..cdb4ab7 --- /dev/null +++ b/paywithiyzico/classes/PaywithiyzicoModel.php @@ -0,0 +1,47 @@ + + * @copyright 2018 iyzico + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + * International Registered Trademark & Property of iyzico + */ + +class PaywithiyzicoModel extends ObjectModel +{ + /** + * @param $price + * @param $order_id + * @return mixed + */ + public static function updateOrderInvoiceTotal($price, $order_id) + { + + $tableName = 'order_invoice'; + $order_id = (int) $order_id; + + $sql = 'UPDATE '._DB_PREFIX_.bqSQL($tableName).' + SET `total_paid_tax_incl` = \''.$price.'\', + `total_products_wt` = \''.$price.'\' + WHERE `id_order` = \''.$order_id.'\''; + + return Db::getInstance()->execute($sql); + } +} \ No newline at end of file diff --git a/paywithiyzico/config.xml b/paywithiyzico/config.xml index 4373afd..e80eb29 100644 --- a/paywithiyzico/config.xml +++ b/paywithiyzico/config.xml @@ -2,8 +2,8 @@ paywithiyzico - - + + diff --git a/paywithiyzico/config_tr.xml b/paywithiyzico/config_tr.xml index f8d6ba1..638c47b 100644 --- a/paywithiyzico/config_tr.xml +++ b/paywithiyzico/config_tr.xml @@ -1,9 +1,9 @@ paywithiyzico - + - + diff --git a/paywithiyzico/controllers/front/callback.php b/paywithiyzico/controllers/front/callback.php index c170f67..74c0451 100644 --- a/paywithiyzico/controllers/front/callback.php +++ b/paywithiyzico/controllers/front/callback.php @@ -28,6 +28,7 @@ require_once _PS_MODULE_DIR_.'paywithiyzico/classes/PaywithiyzicoObject.php'; require_once _PS_MODULE_DIR_.'paywithiyzico/classes/PaywithiyzicoPkiStringBuilder.php'; require_once _PS_MODULE_DIR_.'paywithiyzico/classes/PaywithiyzicoRequest.php'; +require_once _PS_MODULE_DIR_.'paywithiyzico/classes/PaywithiyzicoModel.php'; class PaywithiyzicoCallBackModuleFrontController extends ModuleFrontController { @@ -86,6 +87,13 @@ public function init() $requestResponse->paymentId = (int) $requestResponse->paymentId; $requestResponse->conversationId = (int) $requestResponse->conversationId; + if($requestResponse->paymentStatus == 'INIT_BANK_TRANSFER' && $requestResponse->status == 'success') { + $orderMessage = 'iyzico Banka havalesi/EFT ödemesi bekleniyor.'; + $this->module->validateOrder($orderId, Configuration::get('PS_OS_BANKWIRE'), $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); + } + if (empty($orderId)) { if ($token) { $this->cancelPayment($locale, $requestResponse->paymentId, $remoteIpAddr, $apiKey, $secretKey, $rand, $endpoint); @@ -151,7 +159,7 @@ public function init() $extraVars['{date}'] = Tools::displayDate(date('Y-m-d H:i:s'), null, 1).$installmentMessageEmail; /* Invoice false */ - Configuration::updateValue('PS_INVOICE', false); + //Configuration::updateValue('PS_INVOICE', false); } $test = $this->module->validateOrder($orderId, Configuration::get('PS_OS_PAYMENT'), $cartTotal, $this->module->displayName, $installmentMessage, $extraVars, $currenyId, false, $customerSecureKey); @@ -168,6 +176,8 @@ public function init() IyzipayModel::updateOrderPayment($requestResponse->paidPrice, $order->reference); + PaywithiyzicoModel::updateOrderInvoiceTotal($requestResponse->paidPrice, $currentOrderId); + /* Open Thread */ $customer_thread = new CustomerThread(); $customer_thread->id_contact = 0; diff --git a/paywithiyzico/logo.png b/paywithiyzico/logo.png old mode 100644 new mode 100755 index a4fd8fb..f649db6 Binary files a/paywithiyzico/logo.png and b/paywithiyzico/logo.png differ diff --git a/paywithiyzico/paywithiyzico.php b/paywithiyzico/paywithiyzico.php index 6c030d4..85f8081 100644 --- a/paywithiyzico/paywithiyzico.php +++ b/paywithiyzico/paywithiyzico.php @@ -43,7 +43,7 @@ public function __construct() { $this->name = 'paywithiyzico'; $this->tab = 'payments_gateways'; - $this->version = '1.0.0'; + $this->version = '1.0.1'; $this->author = 'iyzico'; $this->need_instance = 1; @@ -66,7 +66,7 @@ public function __construct() $this->InstallmentKey = $this->l('InstallmentKey'); $this->installmentShopping = $this->l('installmentShopping'); $this->installmentOption = $this->l('installmentOption'); - $this->commissionAmount = $this->l('commissionAmount'); + $this->commissionAmount = $this->l('commissionAmount'); @@ -131,6 +131,8 @@ public function getContent() $this->context->smarty->assign('module_dir', $this->_path); + $this->context->smarty->assign('payWithIyzicoVersion', $this->version); + $output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/configure.tpl'); @@ -377,11 +379,32 @@ private function getOptionText() */ private function paymentOptionResult() { - $title = $this->getOptionText(); - $newOptions = array(); + $newOptions = array(); + + $languageId = $this->context->cookie->id_lang; + $languages = Language::getLanguage($languageId); + $languageIsoCode = $languages['iso_code']; + + $pwi_logo = Media::getMediaPath(_PS_MODULE_DIR_.$this->name."/views/img/pay_with_iyzico.png"); + $title = "Alışverişlerini hızla ve kolayca iyzico ile Öde!"; + $this->context->smarty->assign('pwi_description_first', "iyzico ile Öde-Şimdi Kolay!"); + $this->context->smarty->assign('pwi_description_second', "Alışverişini ister iyzico bakiyenle, ister saklı kartınla, + ister havale/EFT yöntemi ile kolayca öde; aklına takılan herhangi bir konuda iyzico Korumalı Alışveriş avantajıyla + 7/24 canlı destek al."); + + + if ($languageIsoCode != 'tr'){ + $pwi_logo = Media::getMediaPath(_PS_MODULE_DIR_.$this->name."/views/img/pay_with_iyzico_en.png"); + $title = "Pay with iyzico-It’s Easy Now!"; + $this->context->smarty->assign('pwi_description_first', ""); + $this->context->smarty->assign('pwi_description_second', "You can easily pay for your shopping + with your iyzico balance, with your stored card or money transfer method; + get 24/7 live support with the advantage of iyzico Buyer Protection on any matter."); + } $newOption = new PaymentOption(); - $newOption->setModuleName($this->name) + $newOption->setLogo($pwi_logo) + ->setModuleName($this->name) ->setCallToActionText($this->trans($title, array(), 'Modules.Paywithiyzico')) ->setAction($this->context->link->getModuleLink($this->name, 'validation', array(), true)) ->setAdditionalInformation($this->fetch('module:paywithiyzico/views/templates/front/paywithiyzico.tpl')); @@ -398,10 +421,7 @@ private function paymentOptionResult() private function successAssign($paywithiyzicoResponse) { - $logo_pwi = Media::getMediaPath(_PS_MODULE_DIR_.$this->name.'/views/img/cards.png'); - $this->context->smarty->assign('pwi', $paywithiyzicoResponse->payWithIyzicoPageUrl); - $this->context->smarty->assign('cards_pwi', $logo_pwi); return $this->paymentOptionResult(); diff --git a/paywithiyzico/translations/en.php b/paywithiyzico/translations/en.php index 4fd4cde..b3ee60a 100644 --- a/paywithiyzico/translations/en.php +++ b/paywithiyzico/translations/en.php @@ -2,8 +2,8 @@ global $_MODULE; $_MODULE = array(); -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_eb22f094ae2dc17aff069b4080593681'] = 'paywithiyzico Payment Module'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cb326e4910117145c5ddf577260dd454'] = 'paywithiyzico Payment Gateway for PrestaShop'; +$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_00dc35033910278a465e32a0dfdc50c5'] = 'Pay with iyzico Payment Module'; +$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_575be6e215e11004057500f6508e4f74'] = 'Pay with iyzico Payment Gateway for PrestaShop'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_6f74a2f771f9b8422e24de0f1e5552b2'] = 'Your order has been canceled. Please try again. - basket Items Not Match'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_868478716c083f38439fb9865bfad3f7'] = 'Your payment was made but your order could not be created. Please enter it with the site administrator.'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_8f88271ce67ff89c1a9e057c64ac8b1c'] = '3D Error'; @@ -19,38 +19,24 @@ $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_92d4773a9f32fc3333cb8238471cf763'] = 'You have to enable the cURL extension on your server to install this module'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cdbe2f170711683cb6624cf9c509cc99'] = 'This module is not available in your country'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_f4f70727dc34561dfde1a3c529b6205c'] = 'Settings'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_45268bdcc9ffe3a5807e75085e768efb'] = 'API Type'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_2e5e61c17add3609c6786a4c9ce1a279'] = 'API Key'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_5eb6bb157528b365f84c27bb4784031b'] = 'Secret Key'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_7a7926523a1bb06ec3373b3ebc482e65'] = 'Payment Text'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_23839755e143e06fdd0f4d848bb02ebe'] = 'Display Form'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_24d323e6f470b88f397b5acfb5bee475'] = 'Overlay Script Position'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_2e7aef81e8f267669342202b86b953f1'] = 'Bottom Left'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cf917b5704a132696a6d5dcbdb3ec2fc'] = 'Bottom Right'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_6534a09f754b938683b2d81f4b1490ef'] = 'Hidden'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_c9cc8cce247e49bae79f15173ce97354'] = 'Save'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_62d3e6f706cd08753269d1e7cb82acc0'] = 'Contract approval is required for the payment form to be active.'; $_MODULE['<{paywithiyzico}prestashop>callback_6a42b5c65308d870ac1ea113c9ee5fd0'] = 'Token Not Found'; $_MODULE['<{paywithiyzico}prestashop>callback_e7e914b797ae5c9f8efc09f5b4817e6b'] = 'Order Not Found'; $_MODULE['<{paywithiyzico}prestashop>callback_6f74a2f771f9b8422e24de0f1e5552b2'] = 'Your order has been canceled. Please try again. - basket Items Not Match'; $_MODULE['<{paywithiyzico}prestashop>callback_8f88271ce67ff89c1a9e057c64ac8b1c'] = '3D Error'; $_MODULE['<{paywithiyzico}prestashop>callback_d25cd344b961a34184b1bb6ffa80710b'] = 'General Error'; -$_MODULE['<{paywithiyzico}prestashop>callback_8f09da02ab72ea112fafefed99f3eb11'] = 'Payment by installment'; $_MODULE['<{paywithiyzico}prestashop>callback_514c4aed82cae5530481b9a6e40915d8'] = 'Installment Shopping'; $_MODULE['<{paywithiyzico}prestashop>callback_3d6596ea416c6c6521f523aa41ee12b0'] = 'Installment Option: '; +$_MODULE['<{paywithiyzico}prestashop>callback_8f09da02ab72ea112fafefed99f3eb11'] = 'Payment by installment'; $_MODULE['<{paywithiyzico}prestashop>callback_1ceebcbe9b57cd93212e4ca8945a894d'] = 'Commission Amount: '; $_MODULE['<{paywithiyzico}prestashop>callback_868478716c083f38439fb9865bfad3f7'] = 'Your payment was made but your order could not be created. Please enter it with the site administrator.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_66b914a3d0878daed70f10d165196200'] = 'An error occured. Please contact the merchant to have more informations'; -$_MODULE['<{paywithiyzico}prestashop>redirect_c453a4b8e8d98e82f35b67f433e3b4da'] = 'Payment'; -$_MODULE['<{paywithiyzico}prestashop>redirect_902b0d55fddef6f8d651fe1035b7d4bd'] = 'Error'; -$_MODULE['<{paywithiyzico}prestashop>validation_e61b0be95b713b117d27dbd19d75f69a'] = 'An error occurred while processing payment'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_bddd470742bc2329733e489ed05a8ba1'] = 'Your order is complete. '; -$_MODULE['<{paywithiyzico}prestashop>confirmation_b2f40690858b404ed10e62bdf422c704'] = 'Amount'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_e5b8f00cb48fe623703902d21ed16f6f'] = 'Installment Fee'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_63d5049791d9d79d86e9a108b0a999ca'] = 'Reference'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_19c419a8a4f1cd621853376a930a2e24'] = 'An email has been sent with this information.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_ca7e41a658753c87973936d7ce2429a8'] = 'If you have questions, comments or concerns, please contact our'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_cd430c2eb4b87fb3b49320bd21af074e'] = 'expert customer support team.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_7569ab9b5973795ce8c9fc870d38d8e1'] = 'Your order on %s has not been accepted.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_caa4088f1d295cf8ce8e358eb975ab32'] = 'Please, try to order again.'; -$_MODULE['<{paywithiyzico}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'An error occurred'; \ No newline at end of file +$_MODULE['<{paywithiyzico}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'An error occurred'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_bddd470742bc2329733e489ed05a8ba1'] = 'Your order is complete.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_b2f40690858b404ed10e62bdf422c704'] = 'Amount'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_e5b8f00cb48fe623703902d21ed16f6f'] = 'Installment Fee'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_63d5049791d9d79d86e9a108b0a999ca'] = 'Reference'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_19c419a8a4f1cd621853376a930a2e24'] = 'An email has been sent with this information.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_ca7e41a658753c87973936d7ce2429a8'] = 'If you have questions, comments or concerns, please contact our.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_cd430c2eb4b87fb3b49320bd21af074e'] = 'expert customer support team.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_7569ab9b5973795ce8c9fc870d38d8e1'] = 'Your order on %s has not been accepted.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_caa4088f1d295cf8ce8e358eb975ab32'] = 'Please, try to order again.'; diff --git a/paywithiyzico/translations/tr.php b/paywithiyzico/translations/tr.php index e727ea5..b150e4b 100644 --- a/paywithiyzico/translations/tr.php +++ b/paywithiyzico/translations/tr.php @@ -2,8 +2,8 @@ global $_MODULE; $_MODULE = array(); -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_eb22f094ae2dc17aff069b4080593681'] = 'paywithiyzico Ödeme Modülü'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cb326e4910117145c5ddf577260dd454'] = 'PrestaShop için paywithiyzico Ödeme Geçidi'; +$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_00dc35033910278a465e32a0dfdc50c5'] = 'iyzico ile öde Ödeme Modülü'; +$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_575be6e215e11004057500f6508e4f74'] = 'PrestaShop için iyzico ile öde Ödeme Geçidi'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_6f74a2f771f9b8422e24de0f1e5552b2'] = 'Siparişinizde oluşan hata sebebi ile ödemeniz iptal edilmiştir. Lütfen tekrar deneyiniz.'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_868478716c083f38439fb9865bfad3f7'] = 'Ödemeniz alındı fakat siparişiniz oluşturulamadı. Lütfen site yöneticisi ile iletişime geçiniz.'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_8f88271ce67ff89c1a9e057c64ac8b1c'] = '3D Hatası oluştu.'; @@ -19,38 +19,24 @@ $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_92d4773a9f32fc3333cb8238471cf763'] = 'paywithiyzico Ödeme modülünü kurmak için cURL yüklü veya aktif olması gerekmektedir.'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cdbe2f170711683cb6624cf9c509cc99'] = 'paywithiyzico Ödeme modülü ülkenize destek vermemektedir. Lütfen iletişime geçiniz.'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_f4f70727dc34561dfde1a3c529b6205c'] = 'Ayarlar'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_45268bdcc9ffe3a5807e75085e768efb'] = 'API Türü:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_2e5e61c17add3609c6786a4c9ce1a279'] = 'API Anahtarı:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_5eb6bb157528b365f84c27bb4784031b'] = 'Güvenlik Anahtarı:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_7a7926523a1bb06ec3373b3ebc482e65'] = 'Ödeme Metni:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_23839755e143e06fdd0f4d848bb02ebe'] = 'Form Görünümü:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_24d323e6f470b88f397b5acfb5bee475'] = 'Overlay Script Görünüm:'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_2e7aef81e8f267669342202b86b953f1'] = 'Alt Sol'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_cf917b5704a132696a6d5dcbdb3ec2fc'] = 'Alt Sağ'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_6534a09f754b938683b2d81f4b1490ef'] = 'Gizle'; $_MODULE['<{paywithiyzico}prestashop>paywithiyzico_c9cc8cce247e49bae79f15173ce97354'] = 'Kaydet'; -$_MODULE['<{paywithiyzico}prestashop>paywithiyzico_62d3e6f706cd08753269d1e7cb82acc0'] = 'Ödeme formunun aktif olması için sözleşme onayı gereklidir.'; $_MODULE['<{paywithiyzico}prestashop>callback_6a42b5c65308d870ac1ea113c9ee5fd0'] = 'Token Değeri Bulunamadı'; $_MODULE['<{paywithiyzico}prestashop>callback_e7e914b797ae5c9f8efc09f5b4817e6b'] = 'Sipariş Bulunamadı'; $_MODULE['<{paywithiyzico}prestashop>callback_6f74a2f771f9b8422e24de0f1e5552b2'] = 'Siparişinizde oluşan hata sebebi ile ödemeniz iptal edilmiştir. Lütfen tekrar deneyiniz.'; $_MODULE['<{paywithiyzico}prestashop>callback_8f88271ce67ff89c1a9e057c64ac8b1c'] = '3D Hatası'; $_MODULE['<{paywithiyzico}prestashop>callback_d25cd344b961a34184b1bb6ffa80710b'] = 'Genel Hata'; -$_MODULE['<{paywithiyzico}prestashop>callback_8f09da02ab72ea112fafefed99f3eb11'] = 'Taksit ile ödenmiştir.'; $_MODULE['<{paywithiyzico}prestashop>callback_514c4aed82cae5530481b9a6e40915d8'] = 'Taksitli Alışveriş'; $_MODULE['<{paywithiyzico}prestashop>callback_3d6596ea416c6c6521f523aa41ee12b0'] = 'Taksit Seçeneği:'; +$_MODULE['<{paywithiyzico}prestashop>callback_8f09da02ab72ea112fafefed99f3eb11'] = 'Taksit ile ödenmiştir.'; $_MODULE['<{paywithiyzico}prestashop>callback_1ceebcbe9b57cd93212e4ca8945a894d'] = 'Komisyon Tutarı:'; $_MODULE['<{paywithiyzico}prestashop>callback_868478716c083f38439fb9865bfad3f7'] = 'Ödemeniz alındı fakat siparişiniz oluşturulamadı. Lütfen site yöneticisi ile iletişime geçiniz.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_66b914a3d0878daed70f10d165196200'] = 'Bir hata oluştu. Daha fazla bilgi için lütfen satıcıyla iletişime geçin.'; -$_MODULE['<{paywithiyzico}prestashop>redirect_c453a4b8e8d98e82f35b67f433e3b4da'] = 'Ödeme'; -$_MODULE['<{paywithiyzico}prestashop>redirect_902b0d55fddef6f8d651fe1035b7d4bd'] = 'Hata'; -$_MODULE['<{paywithiyzico}prestashop>validation_e61b0be95b713b117d27dbd19d75f69a'] = 'Ödeme yapılırken bir hata oluştu'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_bddd470742bc2329733e489ed05a8ba1'] = 'Siparişiniz Tamamlandı.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_b2f40690858b404ed10e62bdf422c704'] = 'Ücret'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_e5b8f00cb48fe623703902d21ed16f6f'] = 'Taksit Ücreti'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_63d5049791d9d79d86e9a108b0a999ca'] = 'Referans'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_19c419a8a4f1cd621853376a930a2e24'] = 'Bu bilgi ile bir e-posta gönderildi.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_ca7e41a658753c87973936d7ce2429a8'] = 'Sorularınız, yorumlarınız veya endişeleriniz varsa lütfen bizimle iletişime geçin'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_cd430c2eb4b87fb3b49320bd21af074e'] = 'uzman müşteri destek ekibi.'; -$_MODULE['<{paywithiyzico}prestashop>confirmation_7569ab9b5973795ce8c9fc870d38d8e1'] = '%s üzerindeki siparişiniz kabul edilmedi. '; -$_MODULE['<{paywithiyzico}prestashop>confirmation_caa4088f1d295cf8ce8e358eb975ab32'] = 'Lütfen, tekrar deneyiniz.'; -$_MODULE['<{paywithiyzico}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'Bir hata oluştu'; \ No newline at end of file +$_MODULE['<{paywithiyzico}prestashop>error_a25c753ee3e4be15ec0daa5a40deb7b8'] = 'Bir hata oluştu'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_bddd470742bc2329733e489ed05a8ba1'] = 'Siparişiniz tamamlandı.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_b2f40690858b404ed10e62bdf422c704'] = 'Ücret'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_e5b8f00cb48fe623703902d21ed16f6f'] = 'Taksit Tutarı'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_63d5049791d9d79d86e9a108b0a999ca'] = 'Referans'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_19c419a8a4f1cd621853376a930a2e24'] = 'Bu bilgi ile bir e-posta gönderildi.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_ca7e41a658753c87973936d7ce2429a8'] = 'Sorularınız, yorumlarınız veya endişeleriniz varsa lütfen bizimle iletişime geçin.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_cd430c2eb4b87fb3b49320bd21af074e'] = 'uzman müşteri destek ekibi.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_7569ab9b5973795ce8c9fc870d38d8e1'] = '%s üzerindeki siparişiniz kabul edilmedi.'; +$_MODULE['<{paywithiyzico}prestashop>confirmationpwi_caa4088f1d295cf8ce8e358eb975ab32'] = 'Lütfen, tekrar deneyiniz.'; diff --git a/paywithiyzico/views/img/cards.png b/paywithiyzico/views/img/cards.png deleted file mode 100644 index ee4d2b5..0000000 Binary files a/paywithiyzico/views/img/cards.png and /dev/null differ diff --git a/paywithiyzico/views/img/pay_with_iyzico.png b/paywithiyzico/views/img/pay_with_iyzico.png new file mode 100755 index 0000000..f649db6 Binary files /dev/null and b/paywithiyzico/views/img/pay_with_iyzico.png differ diff --git a/paywithiyzico/views/img/pay_with_iyzico_en.png b/paywithiyzico/views/img/pay_with_iyzico_en.png new file mode 100644 index 0000000..45a3da5 Binary files /dev/null and b/paywithiyzico/views/img/pay_with_iyzico_en.png differ diff --git a/paywithiyzico/views/templates/admin/template_1.tpl b/paywithiyzico/views/templates/admin/template_1.tpl index 407f108..63c3892 100644 --- a/paywithiyzico/views/templates/admin/template_1.tpl +++ b/paywithiyzico/views/templates/admin/template_1.tpl @@ -27,394 +27,27 @@
- - - paywithiyzico - - - + + iyzico ile Ode@ + + + + + + + + + + + + + + + + + - - - - - -

V: 1.0.1

+

V: {$payWithIyzicoVersion}

Hemen Başla !

diff --git a/paywithiyzico/views/templates/front/paywithiyzico.tpl b/paywithiyzico/views/templates/front/paywithiyzico.tpl index 930216b..dba35fa 100644 --- a/paywithiyzico/views/templates/front/paywithiyzico.tpl +++ b/paywithiyzico/views/templates/front/paywithiyzico.tpl @@ -30,6 +30,16 @@

{$error}

{/if} +
+

{$pwi_description_first}
+ {$pwi_description_second}

+
+
+
+
+

iyzico

+
+
-

{$contract_text}

-
@@ -62,12 +70,20 @@ text-align: center; } +img[src*="paywithiyzico"] { + width: 20%; +} + .iyziCards p { text-align:center; font-weight: bold; } -.loading{width:40px;height:40px;background-color:#4ec8f1;margin:100px auto;-webkit-animation:sk-rotateplane 1.2s infinite ease-in-out;animation:sk-rotateplane 1.2s infinite ease-in-out}@-webkit-keyframes sk-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}100%{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes sk-rotateplane{0%{transform:perspective(120px) rotateX(0) rotateY(0);-webkit-transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0);-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}100%{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}.brand{margin:auto}.brand p{color:#16a2c5;text-align:center;margin-top:-100px} +#checkout-payment-step label { + text-align: left; +} + +.loading{width:40px;height:40px;background-color:#1E64FF;margin:100px auto;-webkit-animation:sk-rotateplane 1.2s infinite ease-in-out;animation:sk-rotateplane 1.2s infinite ease-in-out}@-webkit-keyframes sk-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}100%{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes sk-rotateplane{0%{transform:perspective(120px) rotateX(0) rotateY(0);-webkit-transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0);-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}100%{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}.brand{margin:auto}.brand p{color:#1E64FF;text-align:center;margin-top:-100px}