Skip to content

Commit

Permalink
Merge pull request #115 from vippsas/publication-2.2.17
Browse files Browse the repository at this point in the history
VIPPS-391: State vs status for cancelled orders
  • Loading branch information
voleye authored Aug 30, 2021
2 parents 4388612 + f9270fc commit 998b6bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/TransactionProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private function cancelOrder($order): void
{
if ($order->getState() === Order::STATE_NEW) {
$this->orderManagement->cancel($order->getEntityId());
} else {
} elseif ($order->getState() === Order::STATE_PAYMENT_REVIEW) {
$connection = $this->resourceConnection->getConnection();
try {
$connection->beginTransaction();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "magento2-module",
"description": "Vipps Payment Method",
"license": "proprietary",
"version": "2.2.16",
"version": "2.2.17",
"require": {
"magento/framework": "101.0.*",
"magento/module-sales": "101.0.*",
Expand Down

0 comments on commit 998b6bb

Please sign in to comment.