From eafa4b5ebc993882a757ed7ce99fe64cdbbf2e11 Mon Sep 17 00:00:00 2001 From: Frederik Rommel Date: Fri, 13 Sep 2024 18:42:43 +0200 Subject: [PATCH] RATESWSX-313: fix removed parameter --- .../Checkout/SalesChannel/HandlePaymentMethodRoute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Checkout/SalesChannel/HandlePaymentMethodRoute.php b/src/Components/Checkout/SalesChannel/HandlePaymentMethodRoute.php index aedd2124..eba2f1c3 100644 --- a/src/Components/Checkout/SalesChannel/HandlePaymentMethodRoute.php +++ b/src/Components/Checkout/SalesChannel/HandlePaymentMethodRoute.php @@ -45,9 +45,9 @@ public function load(Request $request, SalesChannelContext $context): HandlePaym } $paymentHandlerIdentifier = null; - if ($request->request->getBoolean('updatePayment')) { - $orderId = $request->request->get('orderId'); + $orderId = $request->request->get('orderId'); + if (is_string($orderId)) { $order = $this->orderRepository->search(CriteriaHelper::getCriteriaForOrder($orderId), $context->getContext())->first(); if ($order instanceof OrderEntity && ($transaction = $order->getTransactions()->last()) instanceof OrderTransactionEntity) { $paymentHandlerIdentifier = $transaction->getPaymentMethod()->getHandlerIdentifier();