From 7267949168df8a3752912410df3b86bf780fe646 Mon Sep 17 00:00:00 2001 From: Fabian Gerke <124085586+FabianGerke@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:55:03 +0200 Subject: [PATCH 1/2] chore: add logging for payment method id change --- resources/lang/en/Debug.properties | 1 + src/Services/CheckoutService.php | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/resources/lang/en/Debug.properties b/resources/lang/en/Debug.properties index 0e1e73cca..9ddd1f0d8 100644 --- a/resources/lang/en/Debug.properties +++ b/resources/lang/en/Debug.properties @@ -32,6 +32,7 @@ CheckoutController_emptyBasket = "Basket is empty. Redirect to homepage." ; CheckoutService CheckoutService_paymentPrepared = "Payment prepared." CheckoutService_preparePaymentFailed = "Error while preparing payment." +CheckoutService_paymentNotValid = "Payment method is not valid anymore." ; ConfirmationController ConfirmationController_cannotFindOrder = "Cannot find order." diff --git a/src/Services/CheckoutService.php b/src/Services/CheckoutService.php index bd6f482c4..1da4168ef 100644 --- a/src/Services/CheckoutService.php +++ b/src/Services/CheckoutService.php @@ -422,6 +422,16 @@ public function getMethodOfPaymentId() if ($methodOfPaymentID === null || !$methodOfPaymentValid) { $methodOfPayment = array_shift($methodOfPaymentList); + + $this->getLogger(self::class)->warning( + "IO::Debug.CheckoutService_paymentNotValid", + [ + "methodOfPaymentID" => $methodOfPaymentID, + "newPaymentMethod" => $methodOfPayment, + "methodOfPaymentList" => $methodOfPaymentList + ] + ); + if (!is_null($methodOfPayment)) { $methodOfPaymentID = $methodOfPayment->id; } From f9f8529204793cb4e449fd6898bec6999497a886 Mon Sep 17 00:00:00 2001 From: Fabian Gerke <124085586+FabianGerke@users.noreply.github.com> Date: Tue, 11 Aug 2026 12:56:00 +0200 Subject: [PATCH 2/2] Update CheckoutService.php --- src/Services/CheckoutService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/CheckoutService.php b/src/Services/CheckoutService.php index 1da4168ef..2f4868f74 100644 --- a/src/Services/CheckoutService.php +++ b/src/Services/CheckoutService.php @@ -423,7 +423,7 @@ public function getMethodOfPaymentId() if ($methodOfPaymentID === null || !$methodOfPaymentValid) { $methodOfPayment = array_shift($methodOfPaymentList); - $this->getLogger(self::class)->warning( + $this->getLogger(self::class)->info( "IO::Debug.CheckoutService_paymentNotValid", [ "methodOfPaymentID" => $methodOfPaymentID,