Skip to main content
This page gets you set up quickly as a merchant (server) or a buyer (client). Choose your language and framework below to get started.

Servers (Merchants)

Express

Quickstart for building an x402-enabled server with Express.

Hono

Quickstart for building an x402-enabled server with Hono.

NextJS

NextJS server quickstart is coming soon.

Clients (Buyers)

Axios

Quickstart for building an x402 client with Axios.

Fetch

Quickstart for building an x402 client with Fetch.

Facilitator

All PayAI starter templates include @payai/facilitator, which automatically connects to the PayAI facilitator at https://facilitator.payai.network. No manual URL configuration needed.
The facilitator works immediately on the free tier. When you’re ready for production, set PAYAI_API_KEY_ID and PAYAI_API_KEY_SECRET environment variables to authenticate — see Facilitator Pricing. The PayAI facilitator supports the following endpoints:
  • /supported - see which networks and schemes are supported
  • /verify - verify that a payment is valid
  • /settle - settle the payment
  • /discovery/resources - view the bazaar, a marketplace of merchants
Read the reference for more information on the facilitator endpoints and responses.

Supported networks

The PayAI facilitator supports x402 on the following networks:

Need help?

Join our Community

Have questions or want to connect with other developers? Join our Discord server.