#Glutch
1 messages ยท Page 1 of 1 (latest)
Hello ๐
So there are two ways you can handle cancellation on your end.
1/ When your customer attempts to cancel the sub mid-month then you set cancel_at_period_end property rather than cancelling the subscription immediately. This would allow you to re-activate the subscription without much hassle.
https://stripe.com/docs/billing/subscriptions/cancel#reactivating-canceled-subscriptions
2/ The other option would be to start a new subscription from scratch and add trial days till the end of billing period
@pliant sage Thank you! I'll look into this ๐
NP! ๐ Good luck
Quick question, sorry
Does status: 'canceled', change to something else when it's completely "over"?
canceled + time has passed billing cycle
I don't think it changes the status once its cancelled.
cancelled is a terminal state
okey, so the correct method is to listen for status = canceled && date.now > billing_end_time
so the status is not cancelled if the sub is canceled but still active for a couple of days?
the status i "canceled" while being active confirmed (edit: i was wrong)
if you set cancel_at_period_end to true then it stays active till the end of current period and then transitions to cancelled
https://stripe.com/docs/api/subscriptions/object#subscription_object-cancel_at_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
NP! ๐