Stripe Payments & Credit Billing

•
3
•

Integrates Stripe subscriptions and credit-based usage metering into Next.js applications using Drizzle ORM.

The Payments skill provides a comprehensive foundation for monetizing applications through Stripe. It automates the setup of multi-tier subscription plans (Free, Pro, Team), manages credit-based billing with a persistent transaction ledger, and configures essential API routes for checkout sessions and billing portals. Designed for high-velocity development, it includes secure webhook handling and a pre-configured Docker environment for the Stripe CLI, allowing developers to test the entire payment lifecycle locally before deployment.

Key Features

01Local development environment setup using Stripe CLI via Docker Compose.
02Drizzle ORM database schemas for subscriptions and credit-based transaction history.
03Credit-based usage metering system with a persistent database ledger for transactions.
04Complete Stripe subscription lifecycle management including Free, Pro, and Team tiers.
05Automated API route generation for Stripe Checkout, Billing Portal, and Webhooks.
063 GitHub stars

Use Cases

01Building a SaaS platform with monthly subscription tiers and automated billing.
02Implementing a credit-based 'pay-as-you-go' model for AI or compute-heavy operations.
03Setting up a secure, scalable Stripe webhook architecture for production apps.