This is the moment everything else leads to: a verified user with a funded, card-backed wallet taps to pay, and ClearBox settles the transaction faster than the underlying blockchain could confirm. It corresponds to the tap-to-pay settlement sequence your team works from.Documentation Index
Fetch the complete documentation index at: https://docs.clear-box.io/llms.txt
Use this file to discover all available pages before exploring further.
Flow at a glance
Network routes the authorization
The merchant POS and card network route an authorization request to ClearBox.
Mirror ledger validates the balance
ClearBox validates the wallet’s available balance against the amount and places a hold.
Real-time authorization
When the authorization request reaches ClearBox, it does not wait for the blockchain. It checks the mirror ledger — a continuously reconciled view of the wallet’s available balance — and answers the network’s question: “does this card have $15.00 available?” If the balance covers the amount, ClearBox places a hold for $15.00 and returns an approval. The terminal shows success and the customer walks away. This typically completes in around 0.2 seconds, which avoids the multi-minute wait that on-chain confirmation would require at the counter.Asynchronous settlement
After approval, ClearBox settles the underlying value:- An async webhook records that the card was charged $15.00.
- ClearBox burns the equivalent stablecoin from the smart-contract wallet.
- The on-chain settlement is reconciled against the mirror ledger.
- The app balance updates (for example, from 85.00).
Handling declines
If the mirror balance does not cover the amount, ClearBox declines the authorization and the terminal shows a decline — exactly as a fiat card would. No hold is placed and no stablecoin is burned.Observability
Subscribe to settlement webhooks to keep your systems in sync:| Event | When it fires |
|---|---|
transaction.authorized | An authorization was approved and a hold placed. |
transaction.declined | An authorization was declined. |
transaction.settled | The on-chain settlement completed. |
Reference
- The mirror ledger — concepts/the-mirror-ledger
- ClearSwap & ClearDEX — settlement/clearswap-and-cleardex