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
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
Comment #3
tomtech commentedComment #5
jsacksick commentedLooks good to me! Merged!