#MuttakinHasib-subscriptions
1 messages · Page 1 of 1 (latest)
Hello! Your question right now is a bit vague - what specifically are you having issues with?
We have a monthly subscription plan. We want users to be able to renew their subscription when the monthly subscription expires. For this reason I want to create an API so that users can renew their subscription. How do I implement this API with nodejs?
@tribal copper
Well if the Subscription has already been cancelled, then you need to create a new Subscription (we don't allow you to restart them once they've been cancelled)
@tribal copper If they do not cancel the subscription after it expires, will it auto charge?
Backing up here - what specifically do you mean by "Expire"? Our API has no concept of subscription expiration, so I'm not quite sure what you mean here
like subscription period
Once a subscription is at the end of the period it would just renew though - is that what you're referring to?
For example, I select a 1 month premium plan for $10 to use a service and it expires after 1 month and I have to renew for another month with $10.
The way our subscriptions work, we'd just auto-renew the subscription after one month and charge them another $10 automatically - there's no additional action you'd need to take
If their credit card expired?
If their credit card is expired we'd attempt payment, but it would fail - the subscription would transition into a "past_due" state at that point - you'd just have your customer come back to provide a new payment method and update the subscription to use that
Then you can not charge them, and I will not get the payment from the user. What can I do for this situation
That's what I explained - you'd bring your customer back online to collect new payment method information from them and you'd update the Customer/Subscription in Stripe so we'll use the new information to charge them
I'd recommend reading this specific section in our docs: https://stripe.com/docs/billing/subscriptions/overview#build-your-own-handling-for-recurring-charge-failures
I added a button ‘’manage your billing information.’’
👍 awesome! that's exactly what you need
I need to head out, but @torn zenith can help with any of your other questions
Thank you, @tribal copper