Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions api/create-checkout-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
throw new Error('STRIPE_SECRET_KEY environment variable is not set');
}

const stripe = new Stripe(stripeSecretKey, {
apiVersion: '2025-07-30.basil',
});
const stripe = new Stripe(stripeSecretKey);

// Map planId to Stripe price IDs based on period
const priceIdMap: Record<string, Record<string, string>> = {
Expand Down
4 changes: 1 addition & 3 deletions api/create-portal-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
throw new Error('STRIPE_SECRET_KEY environment variable is not set');
}

const stripe = new Stripe(stripeSecretKey, {
apiVersion: '2025-07-30.basil',
});
const stripe = new Stripe(stripeSecretKey);

// Find the Stripe customer by email
const existingCustomers = await stripe.customers.list({
Expand Down
Loading
Loading