payment.failed event is sent when a payment attempt fails and the transaction reaches a final, non-recoverable state.
After this event is emitted, the payment will not continue processing.
Example Payload
Data Fields
Unique identifier for the payment transaction.
Final payment status. Always
failed for this event.Payment amount expressed in the major currency unit (for example, USD).
Human-readable explanation describing why the payment failed.
Handling the Event
Use this event to:- Update the payment record to a failed state
- Synchronize failure status across systems
- Record failure details for auditing or analysis
- Determine next steps based on your application logic

