sk_live_...).
1
Create a checkout session
From your backend, call The response (
POST /v1/checkouts with your secret key. The response
includes a url to send the customer to.201 Created) contains the session and its hosted url:2
Redirect the customer to the hosted page
Send the customer to In a Node/Express backend you can redirect right after creating the session:
session.url. From a server you typically issue an HTTP
redirect; from a button you can link directly.3
Customer pays on the hosted page
The customer completes the payment on
checkout.meru.com. On success they are
redirected to your successUrl; on cancel, to your cancelUrl.4
Confirm the payment by polling
Poll
GET /checkouts/{id} from your backend until status is terminal. Treat
succeeded as paid. This endpoint is public (keyed by the opaque session id) and
does not require your secret key.Next steps
Create a session
Every field accepted by
POST /v1/checkouts.Payment status
The full status lifecycle and the
qr object.Payment methods
Crypto exchanges vs QR Bolivia.
Embed (iframe)
Embed the checkout instead of redirecting.