I think the problem you are running into is that the SubscriptionCancelled event uses the UpdateActiveSubscription class. The handle method saves the changes if the event is an instance of SubscriptionCancelled. In essence, it changes the plan for the user. If you look in Cashier Subscription class, you can see a cancelled, onGracePeriod and valid methods that may help you. These method are available in Subscription.php by extensions of the class.
Nov 28, 2016
3
Level 7
Run listener on SubscriptionCancelled Event
Does anyone know how to run an event when a subscription is actually cancelled and past the subscription ends_at time?
I created my own event listener that runs on
laravel/spark/events/subscription/subscriptionCancelled
However I found that it is running when someone changes there plan from paid to free and does not allow for the remaining subscription time to pass.
Any thoughts on how to do this?
Please or to participate in this conversation.