#armaan - payment request discounts

1 messages · Page 1 of 1 (latest)

muted sand
#

Hi there. One moment

#

So how/when are you applying discount?

#

Do you have your own field on the same page that the element is rendered?

void relic
#

Yes the Promo code is on the same page as the element. Users 1) add promo code, 2) click "Apply" which checks validity of the code and modifies the payment intent on the backend if it does and then 3) users can complete their payment

#

They are siblings in the same React component at the moment - CheckoutForm has PaymentElement and PromoCode components as it's children. CheckoutForm is where we handle payment with confirmPayment

muted sand
void relic
#

Incredible! Thank you for your help