Skip to content

The Open Source DocuSign Alternative.

fix: add mode to checkout session

Mythie89102bd22192
diff --git a/packages/ee/server-only/stripe/get-checkout-session.ts b/packages/ee/server-only/stripe/get-checkout-session.ts
index a99ecd5f9..fd15d538a 100644
--- a/packages/ee/server-only/stripe/get-checkout-session.ts
+++ b/packages/ee/server-only/stripe/get-checkout-session.ts
@@ -17,6 +17,7 @@ export const getCheckoutSession = async ({
const session = await stripe.checkout.sessions.create({
customer: customerId,
+ mode: 'subscription',
line_items: [
{
price: priceId,