#addyPaladin-coupon
1 messages · Page 1 of 1 (latest)
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?
I am using API integration and I want to validate Stripe coupon upon user input
Through stripe elements in React js
Hi @willow aspen I'm taking over
Ok @flat talon
Is your customer using the coupon in a Checkout page?
No I have implemented my own system
I want to add a field like this one. Can stripe elements do this?
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?
Yeah sorry promo code
For a payment method I have achieved it but for promo codes I cant
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thank you