monetization-and-billing

Solid

Implementing Stripe billing, subscription management, tiered access control, and payment infrastructure for SaaS platforms. Use when integrating Stripe Checkout, Subscriptions, Webhooks, Customer Portal, or metered billing. Also use when implementing tier-based feature gating (free vs paid), upgrade/ downgrade flows, trial periods, invoice handling, region-specific payment methods (PIX, Boleto, SEPA, ACH), or any payment-related backend logic. Use when designing Supabase schemas for billing state, RLS policies that check subscription tier, or webhook handlers that sync Stripe state to your database. Even if the user just mentions "pricing", "plans", "paywall", "subscription", or "monetization", use this skill. Never assume Stripe behavior — verify against current Stripe docs.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Monetization and Billing ## Fail-Fast Rule If any payment operation fails, **return a structured error and do not grant access**. Never optimistically grant paid features before payment confirmation. Never silently ignore webhook failures. A missed webhook = a user who paid but has no access, or a user who canceled but keeps access. ## Cardinal Rule **Stripe is the single source of truth for billing state.** Your database is a cache of Stripe's state, synchronized via webhooks. Never make billing decisions based solely on local database state without webhook confirmation. Never store raw credit card numbers or sensitive payment data locally. ## Architecture: {{PROJECT_NAME}} Billing Stack ``` ┌─────────────────┐ ┌──────────────┐ ┌─────────────┐ │ Frontend (React)│────▶│ Supabase Auth │────▶│ Supabase DB │ │ Vercel │ │ + RLS │ │ billing_* │ └────────┬────────┘ └──────────────┘ └──────┬──────┘ │ │ │ Checkout Session │ RLS checks ▼ │ tier column ┌─────────────────┐ ┌──────────────┐ │ │ Stripe Checkout │────▶│ Stripe │───────────┘ │ (hosted page) │ │ Webhooks │ sync via └─────────────────┘ │ → Backend │ webhook handler └──────────────┘ ``` ### Component Responsibilities - **Frontend**: Creates Checkout Sessions via Backend API,...

Details

Author
Canhada-Labs
Repository
Canhada-Labs/ceo-orchestration
Created
4 weeks ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category