Body
application/json
{
"Example": {
"summary": "Example of a payment attempt failed event",
"value": {
"id": "evt_81239839123",
"type": "payment.attempt_failed",
"data": {
"id": "pay_123123123",
"status": "draft",
"amount": 300,
"currency": "ZAR",
"country": "ZA",
"external_reference": "order_id_2331120",
"payment_method_details": {
"type": "card",
"card": {
"type": "credit",
"scheme": "mastercard",
"bin": "527346",
"last4": "3333"
}
},
"last_payment_error": {
"error_code": "card_declined",
"decline_code": "generic_decline",
"message": "The request attempted to process a payment, but an error occurred during card processing.",
"timestamp": "2025-01-30T10:56:08.727Z"
},
"metadata": {
"order_id": "o_b5MuE6le7p9W5Ufsf8tQk"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}
}
}
Event triggered when a payment attempted has failed.
Unique identifier for the event.
Type of event being emitted.
payment.attempt_failed
Contains detailed information about the payment. Contains detailed information about the successful payment.
Show child attributes
Was this page helpful?
{
"Example": {
"summary": "Example of a payment attempt failed event",
"value": {
"id": "evt_81239839123",
"type": "payment.attempt_failed",
"data": {
"id": "pay_123123123",
"status": "draft",
"amount": 300,
"currency": "ZAR",
"country": "ZA",
"external_reference": "order_id_2331120",
"payment_method_details": {
"type": "card",
"card": {
"type": "credit",
"scheme": "mastercard",
"bin": "527346",
"last4": "3333"
}
},
"last_payment_error": {
"error_code": "card_declined",
"decline_code": "generic_decline",
"message": "The request attempted to process a payment, but an error occurred during card processing.",
"timestamp": "2025-01-30T10:56:08.727Z"
},
"metadata": {
"order_id": "o_b5MuE6le7p9W5Ufsf8tQk"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}
}
}