#doplex
1 messages · Page 1 of 1 (latest)
when the user cancels his subscription
How is this happening, exactly?
The cancelled status and deleted event should happen at the ~same time
If you use cancel_at or cancel_at_period_end you'd get a subscription updated event when that change is made, but not a deleted event until it actually cancelled
Ok thank you, so I should store the cancel_at_period_end information on my side and handle the case when the event should occur ? I have another question, for the change of subscription to a lower offer, how is the process going? For example I change from a subscription of 10 dollars to 5 dollars, the user receives a refund on a pro rata basis ?
You don't need to store the cancel at period end, it will happen automatically, but you can log it if you want to have that available
You can read about upgrades/downgrades and prorations here:
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
https://stripe.com/docs/billing/subscriptions/prorations#disable-prorations