跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Stripe Billing Master

Plugin 已验证
97

Expert Stripe billing system for money-safe webhook handlers, refund/dispute lifecycle, credit audit trails, and idempotency on server-side event processing. PROACTIVELY activate for: (1) ANY Stripe webhook handler (charge.*, invoice.*, customer.subscription.*, charge.dispute.*), (2) Credit/balance mutations that must be audit-logged, (3) Refund delta computation from previous_attributes.amount_refunded, (4) Dispute state machine (past_due hold / restore), (5) Idempotency key strategy (Idempotency-Key header > body > server UUID), (6) Stripe list-API pagination with starting_after cursor, (7) Plan resolution from Stripe price IDs with safety fallback, (8) Postgres text_pattern_ops indexes for LIKE-prefix lookups, (9) Exhaustive switch/branch on Stripe enums via satisfies Record<Union, T>, (10) Daily credit-balance reconciliation crons, (11) Credit-pack vs subscription refund differentiation, (12) Money-safe email descriptions that never claim 'free' on safety-fallback paths. Provides: full webhook idempotency checklist, refund-delta priority order, dispute-hold durable checkpoint pattern, credit_transactions audit-row invariants, allowlist default-deny for external enums, and reconciliation cron design. Complements (does NOT replace) the official stripe plugin's test-cards / explain-error / stripe-best-practices skills.

AI 摘要

This plugin provides detailed patterns and best practices for handling Stripe webhooks, managing refunds and disputes, maintaining credit audit trails, and ensuring idempotency. It includes code examples for common scenarios and emphasizes security and data integrity.

安装

请先添加 Marketplace

/plugin marketplace add josiahsiegel/claude-plugin-marketplace
/plugin install stripe-billing-master@claude-plugin-marketplace
27 days ago
33 stars
MIT
更新于 5 days ago
查看源代码