Flash Checkout
Flash Checkout pays an invoice for the exact amount. The merchant signs the invoice once, and the payer pays it with several tokens in one transaction.
On this page
Merchant signs the invoice $500 USDC
Signature, deadlines, caps and fee check out
Payer pays part in the invoice token $200 USDC
Payer sends the second token, at most their limit 0.1505 WETH
The adapter delivers the exact remainder and returns unspent input to the payer $301 USDC
The merchant receives exactly the invoice $500 USDC
The fee is paid $1 USDC
SETTLEDOne transaction. The merchant received the exact amount.
Creating and paying an invoice
Flash Checkout is for merchants, freelancers and projects that invoice in a specific token and need to receive the full amount.
- Freelancer invoice: The designer invoices $2,000 USDC and receives exactly $2,000 USDC, whichever token the client pays with.
- Order in a shop: The shop sends a payment link for each order and the order counts as paid when the invoice settles.
- Partner’s bill in two tokens: Project pays a service invoice partly with WETH and partly with USDC, as the invoice in two steps.
- Sign: The merchant signs the invoice offchain and shares the link to the payer.
- Pay: The payer approves the token each step spends, up to the step’s maximum, and pays the invoice.
- Check: The contract checks the deadlines, the invoice, the signatures and steps.
- Settle: The steps deliver the amount to the merchant.
If the payment cannot cover the invoice, the entire transaction reverts.
The payer covers the fee
0.20% of the invoice (feeBps 20) is paid by the payer on top. So the merchant receives the full amount. Fees above the payer’s maxFee reverts the payment. Governance votes might change it.
- Invoice
- $500 USDC
- Fee, 500 × 20 / 10,000
- $1 USDC
- Legs deliver
- $501 USDC
- Paid with
- $200 USDC and 0.1505 WETH
- Merchant receives
- $500 USDC
- Transactions
- 1
This payment combines a direct USDC transfer with a WETH swap to cover the rest.
Invoice rules and payment failures
- Tokens: The token needs the registry’s
SETTLEMENTflag and a swap step inputCHECKOUT_SOURCE. - The invoice: Any wallet can pay it and the money always goes to the merchant. Reusing all five fields produces the same invoice, so change
invoiceIdordeadlinefor a second payment. - Match a payment on the
digestinCheckoutPaid(hashInvoice(inv)) - If a payment stops, the payer pays only gas.