The zero-to-settle flow: from no x402 code to a real settled payment on Base L2, in three steps.
Developers integrating x402 usually stitch together verification, settlement and error-handling from scratch, with no unified way to prove the wiring works before going live. This flow fixes that: a spec-correct sample payload, a two-stage verification against the real facilitator, and a real 0.001 USDC settlement with an on-chain receipt you can paste into your PR.
A fresh TransferWithAuthorization (EIP-712, USDC on Base L2) signed with a throwaway
test key. Same struct, domain and envelope a real paying agent produces.
Paste-ready verify command:
Stage A checks the EIP-712 signature alone. Stage B adds the on-chain truth: nonce replay and
live USDC balance. The throwaway wallet fails Stage B honestly — that categorized refusal
(INSUFFICIENT_FUNDS) is exactly what your integration must handle.
One click settles a real 0.001 USDC from AgentPay’s funded test wallet to the AgentPay treasury — through the same verify/settle machinery every paying agent uses. You get the tx hash and explorer link. Rate-limited: 6/hour, 2 per IP. Costs you nothing.
| Endpoint | Method | What it does |
|---|---|---|
/facilitator/integrate/sample | GET | Mock EIP-712 v2 payment + paste-ready curl |
/facilitator/integrate/verify-demo | POST | Runs a payment through both verify depths |
/facilitator/integrate/live-settle | POST | Real 0.001 USDC settle, tx receipt |
/facilitator/integrate/stats | GET | Successful test settlements per hour |