From b9658c1f3f987ab497a3ac28a8c06590390856b9 Mon Sep 17 00:00:00 2001 From: vinoth Date: Tue, 12 Mar 2024 11:45:24 +0530 Subject: [PATCH] hotfix/PP-11349: set waiting after gateway creation. --- .../Classes/PayrexxPaymentGatewayBase.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GXModules/Payrexx/PayrexxPaymentGateway/Classes/PayrexxPaymentGatewayBase.inc.php b/GXModules/Payrexx/PayrexxPaymentGateway/Classes/PayrexxPaymentGatewayBase.inc.php index bba7171..17c634a 100755 --- a/GXModules/Payrexx/PayrexxPaymentGateway/Classes/PayrexxPaymentGatewayBase.inc.php +++ b/GXModules/Payrexx/PayrexxPaymentGateway/Classes/PayrexxPaymentGatewayBase.inc.php @@ -21,6 +21,7 @@ use Payrexx\PayrexxPaymentGateway\Classes\Controller\PayrexxPaymentController; use Payrexx\PayrexxPaymentGateway\Classes\Service\OrderService; use Payrexx\Models\Response\Transaction; +use Exception; /** * Class PayrexxPaymentGatewayBase. @@ -275,6 +276,13 @@ public function payment_action() } catch (\Payrexx\PayrexxException $e) { return false; } + try { + $orderservice = new OrderService(); + $orderservice->handleTransactionStatus( + $orderId, + Transaction::WAITING + ); + } catch(Exception $e) {} $payrexxPaymentUrl = str_replace( '?', $_SESSION['language_code'] . '/?',