#DY
1 messages · Page 1 of 1 (latest)
hi! I'd start by reading through https://stripe.com/docs/billing/subscriptions/coupons
Thanks! Read this. I can apply coupon when user starts subscription. And am I correct, that when subscription renews, I will receive a webhook with event invoice.created and in handler of this webhook event add applying coupon to this created invoice?
hmm, you don't need to add it manually really
you'd add the coupon when creating the subscription and based on the duration you have on the coupon, it can apply for mutliple invoices/billing cycles
Yes, but user's amount of tokens is system (which used for discount) can be changed, it can be increased or it can be zero, so I need to check and find a appropriate coupon for each invoice
And it looks like I always need to create a new coupon for each new invoice to control this behaviour
Hi there 👋 I"m jumping in as my teammate needed to step away. Please let me know if there are any unanswered questions that I can help with.