stripe-webhooks

Process Stripe webhook events with idempotent refunds and atomic NeonSql transactions.

5|1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/Tristan578/project-forge --skill stripe-webhooks-tristan578
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-webhooks
Source: https://github.com/Tristan578/project-forge/tree/main/.claude/skills/stripe-webhooks
Command: npx skills add https://github.com/Tristan578/project-forge --skill stripe-webhooks-tristan578

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stripe webhook handling often suffers from duplicate events, inconsistent database state, and out-of-order updates, leading to incorrect billing and revenue leakage.

Core Features & Use Cases

  • Idempotent refunds across webhook events to prevent double credits.
  • Atomic updates using CTEs to ensure consistent refunds and balance changes.
  • Correct transaction ordering with neonSql to preserve ledger integrity during multi-step webhook processing.
  • Token-based billing patterns for secure and auditable billing workflows.
  • Auto-loads when editing billing code to streamline integration.

Quick Start

Configure Stripe webhooks to apply idempotent refunds and atomic updates, and load the Stripe webhook patterns into your billing workflow.

Frequently Asked Questions about stripe-webhooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle duplicate Stripe webhook events to prevent double refunds?

Apply idempotency guards to Stripe webhook processing so duplicate events trigger identical results without double credits. This prevents duplicate refunds and ensures consistent database state across repeated webhook deliveries.

Why does out-of-order webhook processing cause race conditions in billing databases?

Out-of-order webhook updates cause race conditions by applying database changes concurrently without strict sequencing. Enforcing ordered NeonSql transactions preserves ledger integrity and prevents inconsistent balance updates during multi-step webhook processing.

What is the best way to update balances atomically when processing Stripe charges?

The best way to update balances atomically is by using CTE-based atomic updates. This ensures consistent refunds and balance changes within a single database operation, preventing race conditions during Stripe charge processing.

How do I set up token-based billing patterns for Stripe webhooks?

Set up token-based billing by configuring Stripe webhooks to process token billing events with idempotent refunds and atomic updates. Load these patterns into your billing workflow to enable secure and auditable billing operations.

Can I use NeonSql ordered transactions for multi-step webhook processing?

Yes, you can use NeonSql to enforce ordered transactions for multi-step webhook processing. This preserves ledger integrity by ensuring sequential execution of database updates, preventing race conditions across concurrent webhook events.