payment.failed
The checkout closed after the customer’s last attempt failed. data
is the payment. A checkout that expires with nothing paid and no
failed attempt sends payment.abandoned instead.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" keyed with the endpoint secret>. After a secret roll with an overlap there is one v1= per secret; accept the request if any matches.
Example
t=1727788800,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdThe event id, the same as id in the body. Use it to ignore repeats.
Example
evt_01M3XXB7W2K9QF3N8D4H6J1T5RRequest Body
Section titled “Request Body”object
The event id. The same event always has the same id, however often it is sent.
Example
evt_01M3XXB7W2K9QF3N8D4H6J1T5Rpayment.refunded is reserved: it is accepted in events (so an
endpoint that already lists it keeps working) but it is not part of
“every event” and is not sent until refunds are available.
The object, as it was when the event happened.
object
channel is the method that paid: null until the payment
succeeds, never the method of an attempt that failed.
fee, charged_amount and net are exact once the payment has
succeeded: the price of the method that paid. Before that they are a
quote, and nothing has been charged: the price of the method the
customer last chose, or, before they choose, the highest across the
methods offered (what the customer pays at most).
object
Example
pay_01M3XX8PCBFA5VZ3PQZQ0S78BPExample
order_1042pending: waiting for the customer. processing: the payment network
has the payment and has not confirmed it. succeeded: paid. failed: the
checkout closed after the last attempt failed. abandoned: the
checkout closed with nothing tried. refunded and
partially_refunded are reserved for refunds, which are not yet
available.
The amount you asked for, in kobo.
Example
500000Our fee, in kobo. Each method’s price is fixed when the payment is created; once succeeded this is the paying method’s fee, before that a quote (see above).
Example
7500merchant: the fee comes out of amount. customer: the fee is added to what the customer pays.
What the customer pays, in kobo. amount, plus fee when the customer bears it. A quote until the payment succeeds.
Example
500000What you receive, in kobo. A quote until the payment succeeds.
Example
492500The methods the checkout offers.
object
Example
cus_01M3XX8ERVFY9A1FAQ2EGHYZWTExample
ada@example.comExample
Ada ObiWhat you sent. {} if you sent nothing.
object
The payment link this payment came through, if any.
Why the last attempt failed, in words you can show the customer. null once succeeded.
Example
Your bank declined the card: insufficient funds.How the payment was made, safe to show. Only the fields that apply are present.
object
Card brand: visa, mastercard or verve.
Example
visaExample
4081Example
12Example
2030Example
Nablr Test BankExample
adaWhen the checkout closes.
The settlement (stl_…) that paid this out, once settled.
Responses
Section titled “Responses”Any 2xx marks the delivery delivered.