Skip to main content
POST /api/checkout/pay does not exist in the reviewed app. Do not use older examples describing a public, server-funded settlement trigger or automatic CCTP checkout.

Supported checkout flow

  1. Create an invoice through payment initialization or a merchant payment link.
  2. Open the returned /checkout/{reference} URL. A bare /checkout or /pay URL is not a valid invoice checkout.
  3. The customer reviews the frozen recipient, USDC amount and network, then authorizes payment with their own wallet.
  4. The checkout submits transaction evidence to POST /api/payments/verify-onchain. The server reads the configured chain and checks the proof before recording success.
  5. Read payment verification. Top-level status: true means the query succeeded; payment success is data.status === 'SUCCESS'.
The customer pays directly to the merchant wallet; FlareHQ never holds checkout funds. Creating an invoice, displaying a QR code or calling a verification route does not authorize spending from a shared platform wallet.

Evidence and retries

Reconcile the transaction receipt, exact token/recipient/amount, recipient credit and matching payment row before retrying an uncertain payment. Do not create a second transfer because a browser timed out. A previously settled row returns alreadySettled without proving a newly supplied hash, and its verification POST can retry a pending or failed platform fee. Use GET/read-only inspection unless that fee retry is explicitly authorized. Cross-invoice replay tests must use a different unpaid invoice, not the already paid reference. Checkout rendering and settlement evidence can be checked read-only. No payment or replay is performed by this reference, and a browser signer still needs explicit approval. See mainnet availability and the consolidated checkout reference.