diff --git a/Helper/Webhook/OfferClosedWebhookHandler.php b/Helper/Webhook/OfferClosedWebhookHandler.php index ca9f8a796..9695736d7 100644 --- a/Helper/Webhook/OfferClosedWebhookHandler.php +++ b/Helper/Webhook/OfferClosedWebhookHandler.php @@ -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); }