WEBHOOK
payment.attempt_failed
{
  "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"
      }
    }
  }
}

Body

application/json

Event triggered when a payment attempted has failed.

id
string

Unique identifier for the event.

type
enum<string>

Type of event being emitted.

Available options:
payment.attempt_failed
data
object

Contains detailed information about the payment. Contains detailed information about the successful payment.