SDK & Tools
[01]◆ Tools
The Primer Validator inspects any x402 endpoint — not just our own. Useful for testing your integration, debugging payment flows, education, and manual pre-agent checks.
primer.systems/validate →Generate custom x402 paywall endpoints for testing agent payment flows. Configure the network, amount, and recipient to create a paywall URL that returns 402 Payment Required.
Look up and examine Google AP2 Intent Mandates submitted via MultiClaw to ascertain an agent's spending permissions. New mandates may also be posted directly.
ap2.primer.systems →[02]{} SDK
npm install @primersystems/x402 @x402/express
Use official @x402 middleware with Primer facilitator:
import { paymentMiddleware } from '@x402/express' import { primerFacilitator } from '@primersystems/x402' const routes = { '/api/premium': { price: '$0.01', network: 'eip155:8453', // Base payTo: '0xYourAddress' } } app.use(paymentMiddleware(routes, { facilitator: primerFacilitator() }))
pip install primer-x402 x402
Use official x402 middleware with Primer facilitator:
from x402 import payment_middleware from primer_x402 import primer_facilitator_sync routes = { '/api/premium': { 'price': '$0.01', 'network': 'eip155:8453', # Base 'payTo': '0xYourAddress' } } facilitator = primer_facilitator_sync() app.add_middleware(payment_middleware(routes, facilitator=facilitator))