#__rob1986__
1 messages · Page 1 of 1 (latest)
is canceled 'customer.subscription.paused'?
and renew 'customer.subscription.resumed'?
and when it comes to an end with the user having canceled it and we are at the end of the billing period 'customer.subscription.deleted' ?
Hello, pausing and resuming are actually separate things. I will double check but I don't think the Customer Portal can do them
If you have the portal to cancel the subscription at period end, you will see a customer.subscription.updated event when the user says they want to cancel and another one when they want to resume
And a customer.subscription.deleted event when the end of the cycle comes and the subscription is actually cancelled
i assume i look for a status or something in the updated event to tell me what it is they did?
Yes, the subscription will have cancel_at_period_end set to true or false and you can tell if that field is what the event is about if you check the event's previous_attributes hash
Also we have a tool called test clocks that will help you here https://stripe.com/docs/billing/testing/test-clocks
You can use them to simulate time passing without having to wait. We will send out the same events for that simulation so you can use them to see what the events look like and test your integration reacting to them
That is for a different thing that the Customer Portal does not use https://stripe.com/docs/billing/subscriptions/subscription-schedules