Skip to main content
Before you mark an order paid and ship anything, confirm the payment with Platnova from your server. A webhook tells you something happened; verification proves it.

POST /v1/payments/verify

reference can be any of:
  • the checkout id you got when you created the checkout (best for plugins: you already stored it against the order);
  • the payment reference from the checkout.paid webhook;
  • for a customer’s payment into a virtual account: your order reference on a dynamic account, or the transaction_ref from the account.funded webhook (see below);
  • for a payout you sent with POST /v1/payments/send: either the transaction_ref it returned, or your own reference you sent with it. Use your own reference when the send timed out and you never got a transaction_ref.
Verification only ever finds your own business’s payments, and it keeps working after the checkout itself has expired.

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:
  • cancelled is how a failed payout reads: the amount and fee are back in your wallet. A payout reversed after it succeeded reads cancelled too; then the amount is back but the fee is kept.
  • failed is only a scheduled payout that found too little in the wallet when it was due. Nothing was debited.
  • The transfer.failed webhook carries data.status failed, while Verify answers cancelled for the same payout.

Response: customer payments into virtual accounts

Verify a customer’s payment by your order reference (the reference 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:
Only your own business’s references are found.

Response: not found

A reference that is not one of your payments answers 400:
For a payout this means it was never created, so it is safe to resend it with the same 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:
Any other error (for example 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.