From c0e1986974d7693c4501e3c72b57fcc75f671077 Mon Sep 17 00:00:00 2001 From: Benjamin Shafii Date: Fri, 6 Dec 2024 17:34:33 +0100 Subject: [PATCH] fix: subscription creation --- web/app/dashboard/pricing/actions.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/web/app/dashboard/pricing/actions.ts b/web/app/dashboard/pricing/actions.ts index ffe17cc2..eb0715df 100644 --- a/web/app/dashboard/pricing/actions.ts +++ b/web/app/dashboard/pricing/actions.ts @@ -90,12 +90,7 @@ export async function createMonthlySubscriptionCheckout() { subscription_data: { metadata, }, - invoice_creation: { - enabled: true, - invoice_data: { - metadata, - }, - }, + success_url: success, cancel_url: cancel, allow_promotion_codes: true, @@ -139,12 +134,6 @@ export async function createYearlySession(userId: string) { PRODUCTS.SubscriptionYearly.prices.yearly.trialPeriodDays, metadata, }, - invoice_creation: { - enabled: true, - invoice_data: { - metadata, // Attach invoice-level metadata here - }, - }, }); return session; }