#Zhili

1 messages ยท Page 1 of 1 (latest)

graceful mossBOT
balmy briar
#

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.

reef hinge
#

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.

balmy briar
#

Yep, you can do that. ๐Ÿ™‚

reef hinge
#

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?

balmy briar
#

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.

graceful mossBOT
reef hinge
# balmy briar That's the internal ID generated for the Coupon. If you want an externally-faci...

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", )

mint rose
#

Yes, that's right

reef hinge
#

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?

mint rose
#

Best to start a new thread for any new issues

reef hinge
#

Thank you!

mint rose
#

Our pleasure - good luck with the rest of your work!

#

Oh sorry zhili

#

I misread

#

if you have questions right now we can talk here

#

I mistakenly though you meant hypothetical future questions

#

@reef hinge you can ask in here ๐Ÿ™‚