fix: add mode to checkout session

This commit is contained in:
Mythie
2023-10-19 12:27:01 +11:00
parent b7950cf042
commit 89102bd221

View File

@ -17,6 +17,7 @@ export const getCheckoutSession = async ({
const session = await stripe.checkout.sessions.create({ const session = await stripe.checkout.sessions.create({
customer: customerId, customer: customerId,
mode: 'subscription',
line_items: [ line_items: [
{ {
price: priceId, price: priceId,