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
One Flash Checkout, leg by leg
  1. Merchant signs the invoice $500 USDC

  2. Signature, deadlines, caps and fee check out

  3. Payer pays part in the invoice token $200 USDC

  4. Payer sends the second token, at most their limit 0.1505 WETH

  5. The adapter delivers the exact remainder and returns unspent input to the payer $301 USDC

  6. The merchant receives exactly the invoice $500 USDC

  7. 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.
  1. Sign: The merchant signs the invoice offchain and shares the link to the payer.
  2. Pay: The payer approves the token each step spends, up to the step’s maximum, and pays the invoice.
  3. Check: The contract checks the deadlines, the invoice, the signatures and steps.
  4. 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.

Checkout, worked outSETTLED
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 SETTLEMENT flag and a swap step input CHECKOUT_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 invoiceId or deadline for a second payment.
  • Match a payment on the digest in CheckoutPaid (hashInvoice(inv))
  • If a payment stops, the payer pays only gas.