Skip to main content
The hosted checkout is built on three public endpoints. Use them yourself to keep the payer in your app: show the coins, create an order for the one they pick, display its address and amount, and follow its status.
These endpoints need no API key, but the API doesn’t allow cross-origin browser requests. Call them from your server and pass the result to your page.
1

Show the choices

2

Create an order for the payer's choice

refundAddress is optional but recommended: it’s where over- and underpayments go back. It must be a valid address on that network.The 201 response is the order:
Show depositAddress, expectedAmountDisplay and a countdown to expiresAt. A QR code of the address helps on mobile.
3

Follow the payment

Poll every few seconds while the payer is on the page:
  • receivedAmount grows as transfers arrive; each one appears in deposits with its txHash.
  • remainingAmountDisplay is what’s still missing if they underpaid.
  • status moves to Confirming, then a final status. See Payment statuses.
Polling is for the payer’s screen. Fulfil the purchase from the webhook, not from polling.

Errors