Stripe Webhook Idempotency
Implements robust, idempotent Stripe webhook processing to prevent duplicate event execution and ensure payment reliability.
This skill provides comprehensive guidance and implementation patterns for handling Stripe's at-least-once delivery guarantee. It helps developers establish a 'processed_events' tracking system, implement atomic database transactions to prevent data corruption during crashes, and manage the deduplication of 'thin events' during API migrations. By following these patterns, you can prevent critical errors like double-charging customers or double-provisioning subscriptions while ensuring that missed events are recovered through automated reconciliation crons.
Características Principales
01Standardized SQL schema for tracking processed Stripe event IDs
02Outbound idempotency key implementation for Stripe API calls
03Deduplication logic for Stripe 'thin events' migration
043 GitHub stars
05Atomic event recording patterns to prevent double-processing
06Scheduled reconciliation cron jobs for missed event recovery
Casos de Uso
01Preventing double-charging or double-provisioning when Stripe retries a webhook
02Migrating from legacy snapshot events to Stripe's modern thin events safely
03Building high-reliability payment backends with automated event reconciliation