Level 18
Use webhooks for supported and non-supported Stripe events (https://laravel.com/docs/9.x/billing#handling-stripe-webhooks) and database notifications (https://laravel.com/docs/9.x/notifications#database-notifications).
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is it possible to send a notification to the user when their subscription is created, and invoice paid or failed?
I wish to do this via database notifications, as I already have a few running, and would like to have all notifs in one area of the website design.
$stripe_id = $event->payload['data']['object']['customer'];
User::where('stripe_id', $stripe_id)->notify(
new SubscriptionCreated('Hello from the otherside')
);
That's what I have in my WebhookListener's handle.
Please or to participate in this conversation.