post
https://cloud.zenoz.ai/v1/payment_intents//confirm
Confirm a payment intent to authorize the payment. This can be done from your server or from your checkout page.
From your server: authenticate with a dashboard session token or a merchant secret key. The body is optional. To pay with a card collected by hosted fields, send the tok_ token from createToken() as payment_method.token.
From your checkout page: monarch-zenoz.js sends X-Publishable-Key, an Idempotency-Key header and a body of { client_secret, token }. The page's Origin must be on the key's allowed origins. The response contains only browser-safe fields, with no metadata or transaction ID.
An intent can be confirmed successfully once. Errors on the checkout-page path:
- 404: the
client_secretis wrong or missing, or the intent belongs to another merchant. - 400
CLIENT_SECRET_EXPIRED: the client secret has expired. - 400
INVALID_TOKEN: the token was used already, has expired, or belongs to a different intent. - 409
INTENT_INVALID_STATE: the intent is no longer awaiting confirmation.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…