v3

Unified Checkout

One call gives you a link. Send the customer there and we handle the rest.

Unified Checkout is a page we host and you link to. You say what the trade is; we take the customer through paying, verification and delivery, and send them back to you when it is done.

It is the least work of the three ways to integrate: no UI to build, no state to keep, and nothing to change when a payment method or a verification step does.

The example checkout is not configured on this deployment.

What you build

your backend          POST /api/v3/checkouts   →  { url, orderId }
your frontend         redirect to url          →  the customer pays here
your backend          webhook order_completed  →  you fulfil

One call, one redirect, and a webhook endpoint. Nothing else is required of you: the page owns every screen between the redirect and the outcome.

Buy or sell follows from the currencies you name — fiat in and crypto out is a buy, the other way round is a sell. There is no direction field, and a same-kind pair is refused rather than guessed at.

What it needs from you

  • An api-key, from the console.
  • Optionally, the customer, asserted by your own identifier in a User-Identifier header. That header is a delegation credential rather than a label: see user identifiers. With it the order is created at once. Without it the customer signs in or registers on our page, and the order is created when they confirm there.
  • Where the value goes, when you name the customer: a wallet address on a buy, a payout account on a sell, because the order is created at once. When you do not, the customer picks it on the page; on a buy you may still pass the wallet.

If your own app sends a sell's coins, as a wallet app does, see sell from your own app.

If you frame the page

The page is built to be navigated to. Framing it is possible only where our frame-ancestors names your origin, and then the frame must delegate the camera, or identity verification stalls without an error:

<iframe src="…" allow="camera; microphone"></iframe>

The liveness check runs inside the verification provider's own frame, nested in ours; a browser refuses the camera to a nested frame unless every frame above it allows it. Nothing on our side can grant that for you.

A link carrying only your api-key also works — the page mints the trade once the customer fills it in. It is how the example above is built, and it is useful for a demo or a "buy crypto" button that names no amount.

Not for real traffic, though. It puts your api-key in the customer's address bar, gives you no order id until they have finished deciding, and leaves you nothing to reconcile against meanwhile. The API call costs one request and gives you all three.