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: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:
receivedAmountgrows as transfers arrive; each one appears indepositswith itstxHash.remainingAmountDisplayis what’s still missing if they underpaid.statusmoves toConfirming, then a final status. See Payment statuses.