Promotion code by default stripe

Hey,

I would like to add a promotion code by default on the stripe subscription :

      // 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`,
      });


How to do it ?
Was this page helpful?