billing-subscriptions

Official

Manage SaaS billing and subscriptions.

AuthorNextSpark-js
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a robust, multi-provider system for managing all aspects of SaaS billing, subscriptions, payments, and usage tracking, ensuring a seamless revenue stream for your application.

Core Features & Use Cases

  • Multi-Provider Support: Integrates with Stripe and Polar.sh, with a flexible Gateway Factory pattern for easy addition of new providers.
  • Subscription Management: Handles plan creation, upgrades, downgrades, cancellations, and renewals.
  • Payment Processing: Integrates with Stripe for secure payment collection and customer portal access.
  • Usage-Based Billing: Tracks and meters feature usage for flexible pricing models.
  • Webhook Handling: Securely processes events from payment providers to keep subscription status up-to-date.
  • Use Case: Implement a tiered subscription model where users can choose between a free, pro, or enterprise plan, with features and limits dynamically enforced based on their selected plan.

Quick Start

Use the billing-subscriptions skill to create a checkout session for the 'pro' plan with a monthly billing interval.

Dependency Matrix

Required Modules

stripe@polar-sh/sdk@polar-sh/nextjs@polar-sh/better-auth

Components

scriptsreferences

💻 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: billing-subscriptions
Download link: https://github.com/NextSpark-js/nextspark/archive/main.zip#billing-subscriptions

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.