Dexter Ships First x402 SDK Integration with Stripe Machine Payments
Accept AI agent payments via Stripe in 3 lines of code. First x402 SDK to integrate Stripe machine payments. Payments land in your Stripe Dashboard.
Dexter Ships First x402 SDK Integration with Stripe Machine Payments
FOR IMMEDIATE RELEASE
@dexterai/x402 v1.7.0 — Accept AI Agent Payments via Stripe in 3 Lines of Code
The first SDK to integrate Stripe's new machine payments. Payments land in your Stripe Dashboard.
The News
FEBRUARY 11, 2026 — Dexter, the leading x402 payment infrastructure provider, today announces the first production SDK integration with Stripe's new machine payments feature — less than 24 hours after Stripe's announcement.
@dexterai/x402 v1.7.0 introduces stripePayTo, a one-line adapter that connects any Express, Hono, or Node.js API to Stripe's machine payment infrastructure. Agent payments settle as USD in the merchant's Stripe Dashboard with full reporting, taxes, and refunds — no crypto knowledge required.
This is the first x402 SDK to integrate Stripe machine payments.
Why This Matters
Yesterday, Stripe announced machine payments — a way for AI agents to pay businesses directly using x402 and USDC on Base. This is the first time a major payment processor has adopted the x402 protocol.
The problem: Stripe's own integration requires 6 package imports, a 40-line deposit address function, manual scheme registration, and only works with the Hono framework. It's roughly 80 lines of boilerplate before you can accept your first agent payment.
Dexter collapsed that into 3 lines.
The Integration
Before (Stripe's docs)
import Stripe from "stripe";
import { paymentMiddleware } from "@x402/hono";
import { x402ResourceServer, HTTPFacilitatorClient }
from "@x402/core/server";
import { ExactEvmScheme } from "@x402/evm/exact/server";
import { Hono } from "hono";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const facilitator = new HTTPFacilitatorClient({
url: process.env.FACILITATOR_URL
});
async function createPayToAddress(ctx) {
// ... 40+ more lines ...
}
app.use(paymentMiddleware({ ... }, new x402ResourceServer(
facilitator).register("eip155:84532",
new ExactEvmScheme())));
After (with @dexterai/x402)
import { x402Middleware, stripePayTo }
from '@dexterai/x402/server';
app.use('/api/data', x402Middleware({
amount: '0.01',
payTo: stripePayTo(process.env.STRIPE_SECRET_KEY),
}));
That's the entire integration. Three lines. The SDK handles PaymentIntent creation, deposit address resolution, network configuration, and facilitator routing automatically.
How It Works
- Agent requests a paid endpoint —
GET /api/data - Middleware creates a Stripe PaymentIntent — generates a unique USDC deposit address on Base
- Returns HTTP 402 — with x402 payment requirements including the deposit address
- Agent signs a USDC transfer — using any x402 client or Stripe's
purlCLI - Dexter facilitator settles on-chain — verifies and executes the Base transaction
- Stripe auto-captures the payment — USDC arrives at the deposit address, Stripe captures as USD
- Content returned to agent — HTTP 200 with the paid resource
The merchant sees the payment in their Stripe Dashboard. Reporting, taxes, refunds, and multi-currency payouts work exactly like any other Stripe payment.
What Developers Get
| Feature | Details |
|---|---|
| One-line Stripe setup | stripePayTo(process.env.STRIPE_SECRET_KEY) |
| Auto-configuration | Network defaults to Base, facilitator to x402.dexter.cash |
| Express + Hono | Works with existing Express middleware (not just Hono) |
| Client SDK included | Agents use wrapFetch or React hooks to pay automatically |
| Access passes | Combine Stripe settlement with time-limited JWT passes |
| Dynamic pricing | Per-token LLM pricing settled through Stripe |
| Microtransactions | As low as $0.01 per request |
The Bigger Picture
Stripe has millions of merchants. Those merchants now have a path to accept AI agent payments — but they need an SDK to make it practical. Dexter's SDK is the bridge:
- For Stripe merchants: Add machine payments to an existing API without learning crypto
- For AI agents: Pay any Stripe-powered endpoint using
@dexterai/x402/client - For the x402 ecosystem: Stripe's adoption validates the protocol at massive scale
Stripe processes over $1 trillion annually. x402 is now part of that stack. Dexter makes it accessible.
Available Now
- SDK:
npm install @dexterai/x402 stripe - Version: 1.7.0
- Demo: dexter.cash/stripe
- Stripe Docs: docs.stripe.com/payments/machine
- npm: @dexterai/x402
About Dexter
Dexter is building the payment infrastructure for the AI economy. With millions of x402 settlements processed, Dexter operates the most-used x402 facilitator and the most complete SDK for machine-to-machine payments.
- Dexter Facilitator: x402 payment settlement for Solana, Base, and 6+ EVM chains
- Dexter SDK: Full-stack x402 — server middleware, client, React hooks, dynamic pricing, access passes
- Dexter MCP: 70+ AI tools via Model Context Protocol
- Dexter Marketplace: Discover and monetize AI services
$DEXTER | dexter.cash | @dexteraisol
Resources
- SDK: npmjs.com/package/@dexterai/x402
- Demo: dexter.cash/stripe
- GitHub: github.com/Dexter-DAO/dexter-x402-sdk
- Stripe Machine Payments: docs.stripe.com/payments/machine
- x402 Protocol: x402.org
- Twitter: @dexteraisol
- Telegram: t.me/dexterdao
First to integrate. Simplest to use. Payments land in Stripe.