diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a4c5b4..4b800a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,26 @@ # Nuvei Checkout plugin for Prestashop Changelog +# 2.0.1 +``` + * Plugin was tested on Prestashop v8.2.0. + * The maximum supported version was changed. + * When a not approved DMN come, for Auth or Sale transaction, try only once to find the Order. + * Added small margin under the plugin messages on Simply Connect page. +``` + # 2.0.0 ``` - * This version of the plugin was tested and works on Prestashop v8.1.* only. + * This version of the plugin was tested and works on Prestashop v8.1.*. * Fix the problem who prevents the merchant to add Nuvei Payment plan to the product in Prestasho v8.1.*. * Fix the problem where the client can combine ordinary product with Nuvei Rebilling product. * In case the plugin cancel to add a product to the Cart, and there is error, show first error message. * Removed old commened parts of code. - * Removed an hook not working in Prestashop 8.1.*. + * Removed a hook not working in Prestashop 8.1.* an up. ``` # 1.2.2 ``` + * This version of the plugin was tested and works on Prestashop up to v8.0.*. * Added Tag SDK URL for test cases. * Add option to mask/unmask user details in the log. * Fixed typos in the plugin settings. diff --git a/config.xml b/config.xml index 392d7ef..ed9eb15 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ nuvei - + diff --git a/controllers/front/payment.php b/controllers/front/payment.php index 267e6db..d909217 100644 --- a/controllers/front/payment.php +++ b/controllers/front/payment.php @@ -995,6 +995,10 @@ private function dmnSaleAuth($merchant_unique_id, $req_status) $max_tries = 'yes' == Configuration::get('SC_TEST_MODE') ? 10 : 4; $order_id = false; + if ('approved' != strtolower($req_status)) { + $max_tries = 0; + } + do { $tries++; $order_id = Order::getIdByCartId($merchant_unique_id); @@ -1028,7 +1032,7 @@ private function dmnSaleAuth($merchant_unique_id, $req_status) // the order was not found if(!$order_id) { // exit, do not create order for Declined transaction - if(strtolower($this->getRequestStatus()) != 'approved') { + if(strtolower($req_status) != 'approved') { $msg = 'Not Approved DMN for not existing order - stop process.'; $this->module->createLog(Tools::getValue('TransactionID'), $msg); diff --git a/nuvei_checkout.php b/nuvei_checkout.php index 1a6e927..8862089 100644 --- a/nuvei_checkout.php +++ b/nuvei_checkout.php @@ -12,10 +12,10 @@ class Nuvei_Checkout extends PaymentModule public $author = 'Nuvei'; public $displayName = 'Nuvei Payments'; // we see this in Prestashop Modules list public $paymentPlanJson = 'nuvei_payment_plans.json'; - public $version = '2.0.0'; + public $version = '2.0.1'; public $ps_versions_compliancy = array( 'min' => '8.1.0', - 'max' => '8.1.7' // _PS_VERSION_ // for curent version - _PS_VERSION_ + 'max' => _PS_VERSION_ // for curent version - _PS_VERSION_ ); public $controllers = array('payment', 'validation'); public $bootstrap = true; diff --git a/views/templates/front/checkout.tpl b/views/templates/front/checkout.tpl index 0099bfc..74640ca 100644 --- a/views/templates/front/checkout.tpl +++ b/views/templates/front/checkout.tpl @@ -17,6 +17,7 @@ background: lightpink; padding: 10px; display: none; + margin-bottom: 5px; } #nuvei_error_msg {