Add Stripe webhook processing failure logging and alerting #483
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_failurestable 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)