From c6ce184f8089282216af3375f56b9f2bfe4fbb30 Mon Sep 17 00:00:00 2001 From: Sarfaraz Bheda Date: Wed, 28 Feb 2024 13:47:12 +0530 Subject: [PATCH] Fixed issue for order status pre-authorized state configuration --- Helper/Webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Webhook.php b/Helper/Webhook.php index ce8c3009c..51570155e 100644 --- a/Helper/Webhook.php +++ b/Helper/Webhook.php @@ -46,7 +46,7 @@ class Webhook * Indicative matrix for possible states to enter after given event */ const STATE_TRANSITION_MATRIX = [ - 'payment_pre_authorized' => [Order::STATE_NEW, PreAuthorized::STATE_ADYEN_AUTHORIZED], + 'payment_pre_authorized' => [PreAuthorized::STATE_ADYEN_AUTHORIZED, Order::STATE_NEW], 'payment_authorized' => [Order::STATE_PROCESSING] ];