Skip to content

Commit

Permalink
Merge pull request #11 from mspay/fix/delivery_with_cost_issue
Browse files Browse the repository at this point in the history
Fix the wrong delivery cost issue when free delivery after threshold applied
  • Loading branch information
Ivan Klimchuk authored Jan 14, 2022
2 parents d731ab0 + 76f8e02 commit 2b33b4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

define('PKG_NAME', 'mspWebPay');
define('PKG_NAME_LOWER', strtolower(PKG_NAME));
define('PKG_VERSION', '2.3.0');
define('PKG_VERSION', '2.3.1');
define('PKG_RELEASE', 'stable');

define('PKG_SUPPORTS_PHP', '7.2');
Expand Down
2 changes: 1 addition & 1 deletion core/components/mspwebpay/WebPay.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function getPaymentLink(msOrder $order)
'wsb_cancel_return_url' => $this->config['return_url'] . '?action=cancel',
'wsb_notify_url' => $this->config['return_url'] . '?action=notify',
'wsb_shipping_name' => $delivery->get('name'),
'wsb_shipping_price' => $delivery->get('price'),
'wsb_shipping_price' => $order->get('delivery_cost'),
'wsb_email' => $user->get('email')
];

Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This file shows the changes in recent releases of mspWebPay.

mspWebPay 2.3.1-stable (Jan 14, 2022)
- Fix issue with delivery cost, when it always fetched from original delivery, instead of order value.

mspWebPay 2.3.0-stable (Oct 12, 2021)
- Added confirmation mode for ability delay redirect to payment page until confirmation order by the operator

Expand Down

0 comments on commit 2b33b4e

Please sign in to comment.