Skip to main content
The 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

string
Unique identifier for the payment transaction.
string
Final payment status. Always failed for this event.
float
Payment amount expressed in the major currency unit (for example, USD).
string
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