Start free. Add your domain when you're ready.
Completely free. Start accepting payments in seconds. Offer refund protection to your users.
import { createPaymentMiddleware } from '@openfacilitator/sdk';
const paymentMiddleware = createPaymentMiddleware({
getRequirements: () => ({
scheme: 'exact',
network: 'base',
maxAmountRequired: '1000000',
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
payTo: '0xYourAddress',
}),
refundProtection: {
apiKey: process.env.REFUND_API_KEY,
},
});
app.post('/api/resource', paymentMiddleware, async (req, res) => {
// Payment verified & settled automatically
res.json({ success: true });
});x402 is an open standard for web payments. The facilitator handles the blockchain stuff.
Point your x402 client at the free endpoint. One line of config.
User signs a payment with their wallet. No gas fees for users.
We verify and submit the transaction. Funds go directly to your wallet.
Get your volume tracked on x402 leaderboards, professional branding at pay.yourdomain.com, and full control.
Get your domain — $5/moEverything you need to monetize your app or API.
Shareable URLs that accept payments. Works for humans (clean UI) and AI agents (x402 protocol) — same link.
Get notified instantly when payments complete. Automate fulfillment, unlock content, or trigger any workflow.
Differentiate yourself in the x402 ecosystem. When your API fails after payment, automatically refund your users. Build trust and reduce support burden.
Set up refund protectionWe've partnered with trusted x402 marketplaces like x402.jobs to give your facilitator access to discoverable, verified endpoints out of the box. Your agents can find paid APIs programmatically.
GET /discovery/resourcesView Hundreds of verified x402-enabled APIs with payment requirements. No auth needed. See the docs →
Show up in x402scan. Build trust with your users.
Want full control? It's open source. View on GitHub →
Four endpoints. That's all you need.
/supportedReturns supported networks and tokens
/discovery/resourcesDiscover x402-enabled APIs from trusted marketplaces
/verifyVerify a payment signature is valid
/settleSubmit the transaction to the blockchain