Describe your bug or feature request.

When validating/submitting a payment gateway form, e.g. Capture, Void, Refund, if an exception occurs that is a PaymentGatewayException, the exception is handled gracefully, dispatching a Failed Payment Event, and setting the form state error.

For any other exception/throwable, a WSOD occurs.

We should handle this more gracefully.

We can't dispatch the same event, as we don't have that specific exception, but we can catch the throwable, log it, and set the error on the form state.

Issue fork commerce-3572686

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tomtech created an issue. See original summary.

tomtech’s picture

Status: Active » Needs review

  • 7cbb7c00 committed on 3.x
    fix: #3572686 Only PaymentGatewayExceptions on the PaymentGatewayForm...
jsacksick’s picture

Status: Needs review » Fixed

Looks good to me! Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.