Stripe Subscription Engine

    1

    Complete Next.js & Stripe billing engine with per-seat proration, secure webhooks, and multi-tenant member management.

    Free

    6 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    stripe-subscription-engine

    Example session with this skill installed

    Set up a subscription billing system with per-seat pricing and a Stripe webhook handler for my Next.js app.

    • Read your context and instructions
    • Compiled the stripe-subscription-engine

    I've installed the Stripe Subscription Engine.

    • Created /api/stripe/webhook with idempotency & signature verification.
    • Implemented /api/stripe/checkout for seat-based pricing.
    • Added /lib/seats.ts to sync Stripe quantities when members are added.
    • Generated Prisma schema updates.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    🔴 Stripe Billing is a Universal Pain. Save 2–4 Days of Manual Setup.

    Implementing subscription billing, seats, proration, and secure webhook event handling is one of the most tedious tasks for any SaaS founder. This production-ready skill drops a complete, secure subscription engine right into your Next.js application.

    Why Buy This Skill?

    • Signature-Verified Webhooks: Fully configured signature checking using Stripe cryptography.
    • Idempotency Protection: Webhook event deduplication lookup to prevent processing the same transaction event twice.
    • Automatic Seat Syncing & Proration: Updates Stripe quantities instantly when members are added/removed.
    • Dunning Banner & Emails: Bounces failed payment attempts, tags org as PAST_DUE, and notifies users via console-logged or Resend email alerts.
    • SQLite / PostgreSQL Compatible: Out-of-the-box support for local SQLite development and cloud PostgreSQL (Supabase/Neon) production.

    Get your SaaS billing configured, tested, and running in minutes instead of days.

    • Requires React App Router and Prisma.
    • Uses in-memory rate limiting (needs Redis for multi-instance scaling).
    • Fixed to per-seat and flat-rate billing models only.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    6 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    • Free with an Agensi account

    Requires

    Resend
    Node.js

    Permissions

    Terminal / Shell
    Browser
    Network Access
    Environment Variables

    Allowed Hosts

    api.resend.com
    Listed4 months ago
    Updated15 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a pre-configured architecture for Next.js and Stripe, automating complex logic like seat-based proration, secure webhook verification, and dunning management to save developers days of manual coding.

    Yes, this skill is designed to work with both local SQLite for development and PostgreSQL providers like Supabase or Neon for production, making it versatile for different hosting environments.

    The skill includes signature-verified webhook handling and built-in idempotency checks, which prevent duplicate transactions and ensure that Stripe events are processed only once and only from legitimate sources.

    The purchase includes the complete skill logic, a pre-defined database schema for multi-tenant billing, a set of secure API routes for webhooks, and a member management system that automatically syncs with Stripe quantities.

    No, this skill is built as a modular billing engine for Next.js applications; simply follow the integration guide to connect your Stripe API keys and your chosen database to get started.

    While specifically optimized for Next.js and TypeScript environments, the logic follows standard Stripe and Node.js patterns, making it compatible with most modern AI agents capable of deploying or managing full-stack JavaScript components.

    New in APIs & Backend

    Free