Stripe Payments Integration

Integrate Stripe payment processing — checkout sessions, subscriptions, webhooks, customer portal, and billing logic. Generates type-safe server code with proper error handling and idempotency.

This skill helps you build payment flows with Stripe. It generates checkout integrations, subscription billing with proration, webhook handlers with signature verification, customer portal setup, and handles edge cases like failed payments, refunds, and invoice disputes.

stripe payments subscriptions billing saas

When to use

Use when adding payments to your app, setting up subscription billing, handling Stripe webhooks, implementing free trials, or migrating between Stripe pricing models.

Examples

Subscription billing

Set up monthly/annual subscription plans

Implement Stripe subscription billing with 3 plan tiers, monthly/annual toggle, free trial, and proper webhook handling

Webhook handler

Create robust Stripe webhook processing

Build a Stripe webhook handler that processes payment_intent.succeeded, subscription events, and invoice.payment_failed with idempotency