x402 Payment Protocol Demo

HTTP 402 on Push Chain

Payments are processed automatically using server-side private key

Ready

✓ Seamless mode: Payments will be processed automatically

API Response

No response yet. Click "Make Request" to start.

Payment Successful

No payment processed yet.

Request Headers

No headers sent yet

How x402Axios works

  1. Initial Request: Tries to access resource (no payment)
  2. 402 Response: Server responds with payment requirements
  3. Automatic Payment: SDK processes payment via facilitator
  4. Retry with Proof: Request retried with payment proof header
  5. Success: Protected resource delivered after verification