stripe-subscription-architecture

Community

End-to-end Stripe subscription modeling for SaaS.

Authormarquesfelip
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Designs and implements end-to-end Stripe subscription architectures for SaaS products.

Core Features & Use Cases

  • Understand Stripe's object model (Customer, Subscription, Invoice, Price) and map it to a local database schema to support reliable billing state without API calls.
  • Provide a complete database schema for plans, prices, subscriptions, and related entities, enabling offline reconciliation and robust tenant isolation.
  • Implement a safe subscription creation flow: create/retrieve Stripe Customer, attach and set default payment methods, create Subscription with Pricing, handle SCA, and persist state.
  • Support idempotent recovery and tenant lookup to prevent duplicate customers and ensure recoverability if identifiers are lost.
  • Configure trials, trial durations, and billing behaviors, including 3DS workflows and missing-payment-method handling.
  • Example implementation in Go illustrating Stripe integration and error handling (as provided in the guide).

Quick Start

Follow these steps to design and implement a Stripe-based SaaS subscription workflow end-to-end.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: stripe-subscription-architecture
Download link: https://github.com/marquesfelip/agents-and-skills/archive/main.zip#stripe-subscription-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.