#pleasant-customerportal-promotioncode
1 messages · Page 1 of 1 (latest)
pleasant-customerportal-promotioncode
hello?
Hello
i am trying to allow users add promotional codes in their customer portal, i cant find any way to do this, its for a subscription
session = await stripe.billingPortal.sessions.create({ customer: user.stripeCustomerId, return_url: '', }); this is how i create the portal session
did you configure PromotionCode as an option in https://dashboard.stripe.com/settings/billing/portal?
there is no option for promotioncode
there is
i cant find it, under ?
it's solely during the flow of changing your Subscription
there isn't a way to add a PromotionCode only
hmm i dont really get the flow of changing your subscription? my app only has one subscription
We do not support just adding a PromotionCode to an existing Subscription on its own. We only allow this when letting you change your Subscription's underlying Price or Quantity I think
gotten! await stripe.subscriptions.update(user.stripeSubscriptionId, { coupon: promoCode.coupon.id, }); i think this is a valid option but it is only valid via api
yes that's correct
alright thanks