OPEN X402 PAYMENT INFRASTRUCTURE
x402PaySDKPayments that move at internet speed.
Create a reference. Let any wallet sign. Settle USDC on-chain. x402 PaySDK gives apps and merchants one non-custodial path from link or QR to verified payment.
x402pay://x402.pwp.sh/receive/0x71…a3?ref=pay_4f2 BASE · USDC0x8d7…41cCLEAR TRUST BOUNDARIES
One protocol. Three focused SDKs.
Each package does one job and stays inside its own security boundary.
Pay SDK
Wallet-native payer flowResolve requirements, verify signed offers, request EIP-712 authorization, and submit payment.
Receive SDK
References, not custodyCreate portable PaymentRef records for QR codes, links, apps, and APIs.
Merchant SDK
Backend payment operationsOnboard merchants, verify receipts, process notifications, refund, and reconcile.
SCHEMA IS THE PROTOCOL
From a reference to chain truth.
The gateway coordinates verification and settlement without ever holding payer keys or funds.
import { pay } from 'x402-paysdk/pay';
const settlement = await pay({
refUrl,
paymentId: crypto.randomUUID(),
wallet
}); 8453 / 0x8d7…41cBUILT TO FAIL CLOSED
Security is part of the payment path.
Signed context, payTo ownership proof, bounded RPC, SSRF-safe notifications, key rotation, and chain-backed verification are production gates, not optional add-ons.
Build the shortest path to on-chain payment.
Start with a payer, receiver, or merchant integration and keep the wallet in control.
Read the documentation