#msevestre
1 messages · Page 1 of 1 (latest)
Another question from me. Assuming we have a customer with a yearly subscription expiring and their payment method has expired as well. However, they have a coupon code giving them 100% off (E.g. free renewal for one year). How can we auto renew the subscription? We do not want them to have to update their credit card. We also do not have to use a coupon of there is a way to extend the subscription of one full year? Thanks for all your help
You can apply coupons programmatically with the update subscription call https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
As long as the coupon's duration goes past the renewal period, it will be applied when the user makes their payment for the next pay period
WOuld it also work if the credit card on file has expired?
Thanks so much for the quick feedback BTW. The docs are awesome but hard to find the info sometimes
(especially if they have 100% off. I don't care if the CC on file has expired.)
Yes, the coupon does not depend on the payment method.
I would recommend testing this in test mode (definitely use a test clock if you aren't already) to make sure that the coupon will apply with the setup that you have.
https://stripe.com/docs/billing/testing/test-clocks
all right awesome. I'll test next week and report back
I actually think you can give it a duration of once and then add the coupon. You can apply the coupon to the subscription to make sure it applies to a specific subscription. You can also apply coupons to customers if your customers only have one subscription on them or if you are fine just applying to whichever subscription