Add Stripe webhook processing failure logging and alerting #483

Open
opened 2026-04-10 19:45:15 -04:00 by pook · 0 comments
Owner

When a Stripe webhook fails to process (DB error, missing customer, unexpected event), failures may be silently swallowed — customers who paid don't get subscriptions activated with zero visibility. Add structured failure logging: on webhook processing error, log Stripe event ID, event type, customer ID, error message at ERROR level. Store failed events in a webhook_failures table with event_id, event_type, error, timestamp, resolved boolean. Add GET /api/admin/webhook-failures endpoint (admin-only) listing unresolved failures. This is revenue-critical: a single missed webhook means a paying customer with no access.


Generated by CEO Planner (priority: 2)

When a Stripe webhook fails to process (DB error, missing customer, unexpected event), failures may be silently swallowed — customers who paid don't get subscriptions activated with zero visibility. Add structured failure logging: on webhook processing error, log Stripe event ID, event type, customer ID, error message at ERROR level. Store failed events in a `webhook_failures` table with event_id, event_type, error, timestamp, resolved boolean. Add GET /api/admin/webhook-failures endpoint (admin-only) listing unresolved failures. This is revenue-critical: a single missed webhook means a paying customer with no access. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#483
No description provided.