billing-integration-safety

Validate webhook signatures and process billing events idempotently.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill billing-integration-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: billing-integration-safety
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/billing-integration-safety
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill billing-integration-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Billing integrations frequently suffer from duplicate webhook deliveries, out-of-order events, and state drift between the billing provider and your database. This Skill provides a robust framework for secure webhook handling, idempotent processing, and auditable billing state.

Core Features & Use Cases

  • Webhook signature verification and secure delivery to prevent tampered events.
  • Idempotent event processing with deduplication to avoid double activations or charges.
  • Atomic, auditable updates to local subscription state and an immutable billing audit trail.
  • Grace-period and dunning workflow integration to manage failed payments without abrupt access loss.
  • End-to-end reconciliation between provider state and local state, with periodic checks.

Quick Start

Configure a Stripe webhook endpoint that validates signatures and processes events idempotently in a transactional workflow.

Frequently Asked Questions about billing-integration-safety

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

FAQPage Schema
How do I handle duplicate Stripe webhooks and prevent double charges?

To handle duplicate Stripe webhooks, apply idempotent event processing with deduplication. This validates webhook signatures and ensures each billing event processes exactly once, preventing double activations or charges during out-of-order deliveries.

What is webhook signature verification for billing integrations?

Webhook signature verification validates secure delivery to prevent tampered events. By cryptographically checking event payloads, it ensures billing updates and subscription state changes originate from the actual provider.

How do I sync subscription state between Stripe and my database?

To sync subscription state between Stripe and your database, use transactional DB updates alongside an immutable billing audit trail. This applies atomic, audutable updates to local state and performs end-to-end reconciliation with periodic checks.

Does this billing integration approach support grace-period dunning workflows?

Yes, this billing integration approach supports grace-period dunning workflows. It manages failed payments without abrupt access loss by integrating dunning logic directly into the subscription state synchronization process.

Why does state drift occur between my billing provider and local database?

State drift occurs between your billing provider and local database due to out-of-order webhook events and duplicate deliveries. Without idempotent processing and end-to-end reconciliation, local subscription state fails to match the provider.