Skip to content

Commit

Permalink
PAYOSWXP-158: Fix check for redirectUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
momocode-de committed Dec 18, 2024
1 parent ce81b1f commit 9a668e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storefront/Controller/GenericExpressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public function redirectAction(SalesChannelContext $context, string $paymentMeth
return $this->forwardToRoute('frontend.checkout.confirm.page');
}

if (!\array_key_exists('redirecturl', $response)) {
if (!isset($response['redirectUrl'])) {
throw new RuntimeException('generic express checkout: No redirect URL has been given for payment method id ' . $paymentMethodId);
}

return new RedirectResponse($response['redirecturl']);
return new RedirectResponse($response['redirectUrl']);
}

#[Route(
Expand Down

0 comments on commit 9a668e1

Please sign in to comment.