POST /v1/payments/verify
reference can be any of:
- the checkout
idyou got when you created the checkout (best for plugins: you already stored it against the order); - the payment
referencefrom thecheckout.paidwebhook; - for a customer’s payment into a virtual account: your order
referenceon a dynamic account, or thetransaction_reffrom theaccount.fundedwebhook (see below); - for a payout you sent with
POST /v1/payments/send: either thetransaction_refit returned, or your ownreferenceyou sent with it. Use your own reference when the send timed out and you never got atransaction_ref.
Response: a paid checkout
Response: a payout
Payout status
Treat any status other than
success as not paid.
What the not-paid statuses mean for a payout:
cancelledis how a failed payout reads: the amount and fee are back in your wallet. A payout reversed after it succeeded readscancelledtoo; then the amount is back but the fee is kept.failedis only a scheduled payout that found too little in the wallet when it was due. Nothing was debited.- The
transfer.failedwebhook carriesdata.statusfailed, while Verify answerscancelledfor the same payout.
Response: customer payments into virtual accounts
Verify a customer’s payment by your order reference (thereference you gave a dynamic account) or by the transaction_ref from account.funded:
If several transfers were made into an order’s account, the order reference finds the first; each one’s
transaction_ref finds that one.
An order whose account nothing has been paid into answers 400 payment not found with data.code order_unpaid and data.status pending (the account is still open) or expired:
Response: not found
A reference that is not one of your payments answers400:
reference (see Handling timeouts).
One of your checkouts that exists but has not been paid answers with the same message and data.code checkout_unpaid, plus data.status pending (the payer can still pay) or expired:
something went wrong, please contact support) does not mean “not found”. Verify again before you act on it.
Fulfil an order safely
1
Receive checkout.paid
Check the signature, store the event, answer
200.2
Verify
Call
POST /v1/payments/verify with the checkout id you stored against the order.3
Compare
Require
status = success, checkout_id = your stored id, and currency (case-insensitive) and the amount to match the order. With fee_bearer customer (the default) you are credited the full checkout amount; with merchant you are credited amount less fee.4
Fulfil once
Mark the order paid in the same database transaction as a unique record of the checkout id, so a repeated webhook can never fulfil twice.

