NeedsRedirectException not handled by PaymentCheckoutController

Created on 4 April 2024, about 1 year ago
Updated 17 May 2024, about 1 year ago

Describe your bug or feature request.

When I try to make a payment with the commerce_sermepa module, there is a redirection using NeedsRedirectException that never happens due to PaymentCheckoutController class does not handle the exception. THen, the redirection is considered an error and it never happens.

If a bug, provide steps to reproduce it from a clean install.

Have commerce configured to handle payments with commerce Sermepa as the payment gateway.

With a custom module place the order as completed during in the commerce_order.place.post_transition event.

Then make a purchase and that error will appear.

Proposed resolution

WHen the exception is a NeedsRedirectException, throw it anyway so the redirection happens.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Payment

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024