spatie/laravel-stripe-webhooks
Laravel package to handle Stripe webhooks: verifies Stripe signatures, logs valid calls to the database, and dispatches configurable jobs or events per webhook type. Provides the plumbing for receiving and validating webhooks; you implement the business logic.
charge.dispute.created events to flag high-risk transactions.WebhookProfile).*"This package lets us safely and scalably handle Stripe’s real-time payment events—like subscriptions, refunds, or fraud alerts—without building and maintaining custom infrastructure. It’s battle-tested (used by 500+ projects), reduces risk of missed events or security gaps, and integrates seamlessly with our Laravel stack. For example, we could automatically:
invoice.payment_succeeded fires.customer.subscription.deleted.*"This is a drop-in solution for Stripe webhooks in Laravel that handles:
webhook_calls table.Tradeoffs:
Quick Start:
composer require spatie/laravel-stripe-webhooks..env and stripe-webhooks.php.charge.succeeded → HandlePaymentJob).Alternatives: Rolling your own (risky) or using Stripe’s raw SDK (more boilerplate). This is the Laravel-native, production-ready choice."*
How can I help you explore Laravel packages today?