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.
invoice.paid), updating user balances (customer.subscription.updated), or handling failures (charge.failed).*"This package lets us safely and scalably handle Stripe webhooks—critical for payments, subscriptions, and compliance—without reinventing the wheel. It:
Cost: Free (MIT license), with minimal ongoing maintenance. ROI: Faster feature delivery for payments/subscriptions, lower debugging overhead, and compliance-ready logs."*
*"This package solves three key pain points for Stripe webhooks in Laravel:
hash_hmac checks) and rejects invalid requests.webhook_calls for debugging.How to Use It:
Route::stripeWebhooks().config/stripe-webhooks.php to handle specific Stripe events (e.g., charge.succeeded).ProcessStripeWebhookJob.Trade-offs:
webhook_calls) for logging.Alternatives:
Recommendation: Use this for any Stripe-dependent feature (payments, subscriptions, payouts). It’s battle-tested (500+ stars) and maintained by Spatie, a trusted Laravel package provider."*
How can I help you explore Laravel packages today?