Owner: Dev Team | Last Updated: 2026-02-21 | Status: Current
Handling incoming webhooks from external services.
POST /webhook/stripe
Note: This endpoint is excluded from CSRF verification to accept requests from Stripe.
Stripe signs each webhook request. Verification via:
STRIPE_WEBHOOK_SECRET=whsec_...
app/Http/Controllers/Web/StripeWebhookController.php
| Event | Action |
|---|---|
payment_intent.succeeded |
Payment confirmation, Order update |
payment_intent.payment_failed |
Failed payment handling |
charge.refunded |
Refund handling |
https://your-domain.com/webhook/stripe.envFor local testing use the Stripe CLI:
stripe listen --forward-to localhost:8000/webhook/stripe
| File | Purpose |
|---|---|
routes/webhook.php |
Webhook route |
app/Http/Controllers/Web/StripeWebhookController.php |
Handler |
app/External/Stripe/StripeService.php |
Stripe SDK wrapper |
| Date | Author | Change |
|---|---|---|
| 2026-02-21 | Documentation Team | Initial creation |
Prev: Channel Manager API | Next: Error Codes | Up: API Reference