Skip to content

Commit

Permalink
Merge branch 'main' into fix-bad-storelocal-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriBouteille authored Sep 25, 2024
2 parents 3b54b17 + 1db12b8 commit 055749e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Helper/Webhook/OfferClosedWebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ public function handleWebhook(MagentoOrder $order, Notification $notification, s
}

// Move the order from PAYMENT_REVIEW to NEW, so that it can be cancelled
if (!$order->canCancel() && $this->configHelper->getNotificationsCanCancel($order->getStoreId())) {
if (!$order->isCanceled()
&& !$order->canCancel()
&& $this->configHelper->getNotificationsCanCancel($order->getStoreId())
) {
$order->setState(MagentoOrder::STATE_NEW);
}

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.8.0
9.8.1
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "adyen/module-payment",
"description": "Official Magento2 Plugin to connect to Payment Service Provider Adyen.",
"type": "magento2-module",
"version": "9.8.0",
"version": "9.8.1",
"license": "MIT",
"repositories": [
{
Expand Down

0 comments on commit 055749e

Please sign in to comment.