#paige-elements-promotioncode

1 messages · Page 1 of 1 (latest)

slender sedgeBOT
pulsar wagon
#

paige-elements-promotioncode

#

@silver widget you need to build this yourself. We don't have any UI element for collecting/entering a code for a PromotionCode today because this is not compatible with PaymentIntents.
So you mostly do your own UI element, validation and do the math for the discount and lower the amount on the PaymentIntent

silver widget
#

Got it. Thank you for clarifying. To be clear, PaymentIntent doesn't support either subscriptions nor one time purchase promo codes at this time?

pulsar wagon
#

that's kinda looking at it wrong. A Subscription will create an Invoice that will create a PaymentIntent for you
So if you are using Billing/Subscriptions then it does support Coupon/PromotionCode yes, but we don't have a UI element for it. Not unless you use Checkout: https://stripe.com/docs/payments/checkout

silver widget
#

Okay got it, thank you for your help 🙂

pulsar wagon
#

sure thing!