How x402 works (four steps)
- User visits: the browser requests a protected page.
- Server responds with 402 + payment instructions: the site states payment is required and includes the checkout details.
- Payment happens: the user pays once, typically with USDC via an exchange or wallet.
- Access unlocks: successful payment unlocks the content automatically.