From 997a6ad5ea5cc97f5d41b22a1ca32a8458563bbf Mon Sep 17 00:00:00 2001 From: "hng.atuan@gmail.com" Date: Fri, 6 Sep 2024 15:52:11 +0700 Subject: [PATCH] fix-issue-192 - reorder function call --- Helpers/PaymentValidation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Helpers/PaymentValidation.php b/Helpers/PaymentValidation.php index c0795e8c..8816947e 100644 --- a/Helpers/PaymentValidation.php +++ b/Helpers/PaymentValidation.php @@ -265,7 +265,6 @@ public function processOrder(Order $order, AlmaPayment $almaPayment): void $payment = $order->getPayment(); $this->addTransactionToPayment($payment, $order, $almaPayment); $this->paymentProcessor->registerCaptureNotification($payment, $payment->getBaseAmountAuthorized()); - $this->orderHelper->notify($order->getId()); // TODO : Paylater / PnX $order = $this->addCommentToOrder($order, __('First instalment captured successfully'), $newStatus); @@ -275,6 +274,8 @@ public function processOrder(Order $order, AlmaPayment $almaPayment): void } $this->orderHelper->save($order); $this->inactiveQuoteById($order->getQuoteId()); + + $this->orderHelper->notify($order->getId()); } /**