#byrana-promocode-element
1 messages · Page 1 of 1 (latest)
Hello @feral temple! PaymentElement doesn't really support promotion codes out of the box. You'd have to build this logic yourself mostly as the platform
@feral temple did you have any follow up questions
Is there another widget from stripe that supports the usage of promo codes? @lusty hill
or other existing options?
Hi @feral temple, I'm taking over from @lusty hill
great!
Not for Payment Element. The existing product that supports promo code is Checkout (https://stripe.com/docs/payments/checkout/how-checkout-works). For Payment Element, you will need to build your own promotion code mapping , apply the discount, then pass the final amount to payment intent
i see, thank you for sharing the checkout element @mossy crest It's a good point - i'll double check which widget is out client using.
Does the payment or other existing element /widget support coupons?
The Checkout here refers to Stripe hosted payment page which promotion code is supported (https://stripe.com/docs/payments/checkout/discounts#promotion-codes). It's different from the custom integration like Payment Element that embedded in your website.
Coupon is also supported in Checkout as well: https://stripe.com/docs/payments/checkout/discounts#coupons
Thank you soo much @mossy crest