#Zhili
1 messages ยท Page 1 of 1 (latest)
Hello! Yep, sounds like you want "once", and if you create the Coupon in the Dashboard you don't have to create it via the API.
The important thing is to test what you're working on in test mode to make sure it works the way you expect.
e.g. I created a product on dashboard that charges $10.00 per month, but I would like users to pay me only $2.00 immediately for first month's access, then back to $10.00 starting from the second month.
Yep, you can do that. ๐
Thank you. If I am trying to make it either a coupon code that needs to be manually input by an user, or make it "internal"/automatically applied upon checkout, is "ID" the exact string for the code?
That's the internal ID generated for the Coupon. If you want an externally-facing code your customers put in you want to create a Promotion Code for that coupon.
I see. May I understand it as ID serves a similar purpose as the generated API ID upon creation of a coupon code?
If i am specifically trying to apply this as an internal coupon and the coupon parameter of a stripe.Subscription.create function, how is coupon defined? Should it simply be:
subscription = stripe.Subscription.create( # [PLACEHOLDER] lines of other params coupon="u04ixMuL", )
Yes, that's right
I just refined & tested the code and the discounts applied well. Thank you for both of you! If I have other questions that are irrelavent to the ones mentioned above, should I continue here or start a new thread?
Best to start a new thread for any new issues
Thank you!