zabarah
2 months ago
130
2
Laravel

Laravel/Cashier Stripe Webhook on Failed Subscription

Posted 2 months ago by zabarah

Hey All,

I am trying to implement the following function once cashier receives the cancelled subscription webhook from stripe, but I dont understand where to put it.

if($user->subscription('team')){
     $user->team->members()->detach();
}

I found the webhook functions in the [email protected], but it wasn't super clear to me where the cancelled subscription function was.

If anyone can shed some light for me that would be awesome.

Please sign in or create an account to participate in this conversation.