Skip to content

Stripe Rail

Overview

The Stripe rail supports card payments and payments to Stripe-connected merchants. Best for: SaaS subscriptions, Cloudflare invoices, and merchants accepting Stripe.

Setup

STRIPE_SECRET_KEY=sk_live_...

Usage

const result = await executeAgentPayment(signed, {
recipient: 'cloudflare.com/billing',
amount: 50,
rail: 'stripe',
railOptions: {
paymentMethodId: 'pm_...',
customerId: 'cus_...',
},
})

Full documentation in Sprint 3. See Adapter: ACP (Stripe) for agent commerce protocol integration.