import Stripe from 'stripe'; if (!process.env.STRIPE_SECRET_KEY) { console.warn('STRIPE_SECRET_KEY is not set — checkout will fail until you add it to .env'); } export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY ?? '', { apiVersion: '2024-06-20', });