#yogeshwari
1 messages · Page 1 of 1 (latest)
hello! what promo code validation are you referring to? can you give me an example of how you're expecting it to behave?
I have apply promo code when user is updating subscription
Ex: users update 99 plan to 199 plan then I want to add promo code on update subscription api call
okay, what's the issue when you add a promo code?
- I have 4 stripe products 1)PREMIUM_MONTH, 2)PREMIUM, 3)PRO_MONTH, 4)PRO
- I create two coupons
- "TESTCOUPON" for PRO & PREMIUM plans - Created Promocode "ABC"
- "WRONG" for PRO_MONTH & PREMIUM_MONTH plans - Created Promocode "XYZ"
- User have PRO_MONTH plan and he want to upgrade to 'PRO' plan
- Then user apply "XYZ" promocode for PRO plan, So ideally its Invalid promocode for this PRO plan but not giving any error while i call stripe->subscriptions->update() api and I pass "XYZ" promocode 'ID(Stripe promo code id)'.
can you provide the rquest id where you provided the promo code and expected it to error?
nothing in there lists the request id[0]? it'd look like req_xxx
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
please paste the request id here
req_4P3ZIKn8PylGzG