Add an event for payment failures during checkout

Created on 30 November 2023, 12 months ago
Updated 1 December 2023, 12 months ago

Problem/Motivation

It's hard to track information about failed payments. This issue will add an event that is triggered when a PaymentGatewayException is thrown. It allows contrib modules to get information about the failure.

This issue is split off from Add logging for payment failures during checkout Fixed

Proposed resolution

When a PaymentGatewayException is thrown, trigger a Drupal\commerce_payment\Event\FailedPaymentEvent.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Fixed

Version

2.0

Component

Payment

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

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