Skip to main content
A client pays a 1,200 USDC invoice with USDT on Ethereum, DAI on Arbitrum or USDC on Stellar, and it is stamped paid.A client pays a 1,200 USDC invoice with USDT on Ethereum, DAI on Arbitrum or USDC on Stellar, and it is stamped paid.
Hosted checkout Funding intents Webhooks

The idea

You bill 1,200 USDC. Your client’s treasury holds USDT on Ethereum. Instead of a thread of emails about which network, which address and whether the memo matters, your invoice has a Pay button. The client pays with what they hold, and you get exactly 1,200 USDC and a webhook.

How it plays out

1

You send the invoice

Your invoice page shows the amount and a Pay button. Nothing is created yet.
2

The client clicks Pay

Only now does your server create the funding intent, with the invoice number as its reference, and send the client to the hosted checkout.
3

The invoice stamps itself

funding.credited marks the invoice paid. Your accounting can read the same credit from your ledger.

The code

Make it your own

  • Partial payments are fine. A client who sends part of the total moves the intent to PARTIALLY_FUNDED, and it waits for the rest before it expires.
  • Long invoices, many lines. Put line items in metadata (up to 50 keys) or keep them in your own system and use the reference to join.
  • Show it in your books. Every credit in your ledger links back to its funding intent, and so to the invoice.

Good to know

  • An intent takes payment for 24 hours at most, which is why it is created when the client clicks Pay, not when the invoice is sent.
  • A client paying from an exchange may need help if a refund is ever due, because exchanges credit their customers by memo. See Refunds.
  • Payment links, on the roadmap, will make sharing a pay link simpler still.