Validate a payment
Validate a customer's payment credential before serving a paid operation.
POST
/gateway/payments/{id}/validateRequired permission: Gateway → Write.
Path parameters
idstringRequiredPayment ID returned by Create a payment. Use the same ID for status checks, challenge retrieval and credential validation.
Body parameters
credentialstringRequiredThe full value of the customer's payment
Authorizationheader. Send it in the JSON body; the request's bearer header contains your Nodana API key.
Use the original payment ID as {id} in the path. The payment retains its protocol. Send the customer's credential in the JSON body; the bearer header contains your Nodana API key.
Errors
| Status | Code | What to do |
|---|---|---|
400 | invalid_payment_credential | Forward the full payment credential for the matching payment. |
401 | unauthorized | Check your API key and gateway permissions. |
404 | gateway_payment_not_found | Use a payment ID created in the key's account. |
410 | payment_expired | Request a new payment if the unpaid challenge has expired. |
To retrieve the original challenge, use Get payment challenge.
See Accept payments for the complete integration flow and Error handling for other errors.