Promotion code by default stripe
Hey,
I would like to add a promotion code by default on the stripe subscription :
How to do it ?
I would like to add a promotion code by default on the stripe subscription :
How to do it ?
// Create a subscription for the organization
const result = await authClient.subscription.upgrade({
plan: name,
referenceId: activeOrg.id,
annual: isYearly,
successUrl: `/orgs/${activeOrg.slug}/settings/billing/success`,
cancelUrl: `/orgs/${activeOrg.slug}/settings/billing`,
});