Skip to content

Commit

Permalink
fix: subscription creation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Dec 6, 2024
1 parent 084433d commit c0e1986
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions web/app/dashboard/pricing/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c0e1986

Please sign in to comment.