#addyPaladin-coupon

1 messages · Page 1 of 1 (latest)

fading bobcat
#

hello! can you share more on what you mean by validating the Stripe coupon?

#

hello, can you share more on what you mean by validating the Stripe coupon?

willow aspen
#

I am using API integration and I want to validate Stripe coupon upon user input

#

Through stripe elements in React js

flat talon
#

Hi @willow aspen I'm taking over

willow aspen
#

Ok @flat talon

flat talon
#

Is your customer using the coupon in a Checkout page?

willow aspen
#

I want to add a field like this one. Can stripe elements do this?

flat talon
#

Ah, you are talking about promo code, it's different from coupon.

#

Promo code can be used in Billings and Checkout. Are you going to apply promo code in any of these two?

willow aspen
#

Yeah sorry promo code

#

For a payment method I have achieved it but for promo codes I cant

flat talon
#

There's no dedicated API to validate a promo code, but you can call this API (https://stripe.com/docs/api/subscriptions/update?lang=cli#update_subscription-promotion_code) to apply a promo code to subscription, and you will get an invalid_request_error if the given promo code is invalid.

willow aspen
#

Ok thank you