Skip to content

Commit

Permalink
RATESWSX-313: fix removed parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Sep 13, 2024
1 parent 6733ab0 commit eafa4b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit eafa4b5

Please sign in to comment.