Option 1: Express Middleware (Node.js / TypeScript)
Install the Express middleware package:Option 2: Fastify Plugin
Install the Fastify package:Option 3: Standalone Go Reverse Proxy
For backends written in Python, Go, Rust, or Java, run the Go reverse proxy in front of your upstream service:Making a Paid Call with the Client SDK
Autonomous clients use@stellar-x402/client to handle 402 responses, sign authorization entries within defined budget limits, and retry the request automatically: