Describe your bug or feature request.
EditForm's catch dispatches PaymentEvents::PAYMENT_FAILURE with the original exception (#3405381: Add an event for payment failures during checkout); AddForm's catch only logs + re-throws generic → integrators can't react to AVS/CVV declines at method creation.
Add the same dispatch to AddForm for parity.
Issue fork commerce-3618777
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 #2
zaporylieMaybe error is somewhere else -
/modules/payment/src/PluginForm/PaymentMethodAddForm.phprethrows decline exception with generic error message and feeds it with previous exception as context rather than current one.Comment #4
zaporylieComment #6
jsacksick commented