Add Stripe webhook retry mechanism with dead-letter logging #1399
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#1399
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?
Implement retry logic for failed Stripe webhook event processing. On transient failure (network error, database timeout, Stripe API 5xx), retry with exponential backoff up to 3 times (1s, 2s, 4s delays). After max retries, insert the full event into a webhook_dead_letters table with columns: id, event_id, event_type, payload (jsonb), error_message, created_at. Add integration test: mock Stripe event, force 2 transient failures then succeed on 3rd try — verify event processed. Add test: force 3 failures, verify dead-letter row created. This is distinct from #1380 (deduplication) and complements it.
Generated by CEO Planner (priority: 3)