What problem does it solve? Building payment and billing systems involves complex decisions around providers, pricing models, subscription lifecycles, and webhook reliability, and mistakes lead to lost revenue, duplicate charges, or PCI violations. ## Core Features & Use Cases - Provider & Pricing Guidance: Decision trees and comparison tables for choosing between Stripe, Paddle, and LemonSqueezy, plus pricing models like flat-rate, per-seat, tiered, and metered billing. - Implementation Patterns: Production-ready TypeScript code for Checkout Sessions, Payment Intents, subscription creation/upgrades/cancellation, metered usage reporting, refunds, and the Stripe Customer Portal. - Webhook Reliability: A complete webhook handler pattern with signature verification, idempotency via stored event IDs, and a table of must-handle events like invoice.payment_failed. - Use Case: A developer adding subscriptions to a SaaS app can follow the subscription lifecycle diagram, copy the setup code with trial periods, configure webhook handling with the Stripe CLI for local testing, and verify launch readiness with the pre-delivery checklist. ## Quick Start Ask the AI to implement a Stripe subscription checkout flow with webhook handling for a Next.js SaaS app.