diff --git a/Model/TransactionProcessor.php b/Model/TransactionProcessor.php index 73deddd..6ac00c9 100644 --- a/Model/TransactionProcessor.php +++ b/Model/TransactionProcessor.php @@ -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(); diff --git a/composer.json b/composer.json index 173d1d3..13d205c 100644 --- a/composer.json +++ b/composer.json @@ -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.*",