Skip to content

Commit

Permalink
* Plugin was tested on Prestashop v8.2.0.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
miroslavs committed Oct 18, 2024
1 parent 1fb38b5 commit 8e74610
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>nuvei</name>
<displayName><![CDATA[Nuvei]]></displayName>
<version><![CDATA[2.0.0]]></version>
<version><![CDATA[2.0.1]]></version>
<description><![CDATA[Accepts payments by Nuvei.]]></description>
<author><![CDATA[Nuvei]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
6 changes: 5 additions & 1 deletion controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions nuvei_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions views/templates/front/checkout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
background: lightpink;
padding: 10px;
display: none;
margin-bottom: 5px;
}
#nuvei_error_msg {
Expand Down

0 comments on commit 8e74610

Please sign in to comment.