#yogeshwari
1 messages · Page 1 of 1 (latest)
Depend on exactly what you mean, you'd need to control this limitation in your own implementation
Can you describe the scenario that happens here that you're trying to deal with?
The screen shot you provided appears to be showing a proration with discounts so I'm not clear on what happened or how that applies to what you've asked
I just want to restrict the user while upgrading subscription
If user already successfully applied promotion code first time and then again user try to upgrade with promotion code same then need to restrict
One time user promotion code create for user wise
One promotion code - For one time user for specific product
If user try to purchase same plan with promotion code then need to restrict user to applying promotion code.
If you're doing this through your own UI, you'll likely want to record somewhere that the coupon has already been used, if you want it to be used once only
you can configure a coupon to restrict times it can be used, but this is global not per customer
https://stripe.com/docs/api/coupons/create?lang=curl#create_coupon-max_redemptions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.