Skip to main content

x402 Payments

HTTP has had a status code for payments since 1997: 402 Payment Required. Nobody used it because there was no standard way to actually pay. x402 makes it real: a resource declares a price; the client pays in USDC on-chain by signing a payment payload; the server verifies and settles it, all inside ordinary HTTP requests. Payzor implements this natively.

The flow

What a 402 looks like

maxAmountRequired is in USDC base units (6 decimals): 10000 = $0.01.

Where you’ll find it in Payzor

Why businesses care

  • No Payzor account needed on the payer side. Any wallet works.
  • No chargebacks. Settlement is final.
  • One code path for humans and agents alike: it’s just HTTP.
The demo route settles against the public CDP facilitator on Base Sepolia. For production, configure your own treasury address (X402_PAY_TO) and network via environment variables provided by your Payzor operator.