1 min read


You can now connect your production Stripe account to Vercel and start accepting real payments. The integration securely provisions your API keys as environment variables and supports both sandbox and live modes.
Test your payment flows in sandbox, then move to production without manually exchanging or managing keys. Built in collaboration with Stripe, the new key management APIs make it possible to reduce setup friction while strengthening security from day one.
This unlocks real production use cases like:
Live ecommerce: Accept real payments and manage checkout flows for production storefronts
Production SaaS billing: Charge customers for subscriptions, usage, and invoices from day one
Shipping to real users: Move from sandbox to production without re-wiring your integration
import Stripe from "stripe"
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY)
const session = await stripe.checkout.sessions.create({ ui_mode: 'embedded', redirect_on_completion: 'never', line_items: [ { price_data: { currency: "usd", product_data: { name: "T-Shirt" }, unit_amount: 40_00, }, quantity: 1, }, ], mode: 'payment', })Get started today with this example to build your first online simple store using Vercel and Stripe. See the documentation to learn more.