Skip to content
Dashboard

Stripe is now generally available on the Marketplace and v0

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',
})

Ready to deploy?