subscription-billing

Implement recurring payment and subscription management with Stripe Billing.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill subscription-billing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subscription-billing
Source: https://github.com/engineers-hub-ltd-in-house-project/eh-skills/tree/main/skills/payment/subscription-billing
Command: npx skills add https://github.com/engineers-hub-ltd-in-house-project/eh-skills --skill subscription-billing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the implementation of recurring payment systems using Stripe Billing, handling complex scenarios like plan management, prorations, trials, and cancellations.

Core Features & Use Cases

  • Subscription Management: Design and implement subscription plans, including monthly and yearly billing cycles.
  • Proration Handling: Automatically calculate and apply charges for plan upgrades, downgrades, or mid-cycle changes.
  • Trial Periods & Grace Periods: Manage free trials and grace periods for failed payments to ensure a smooth user experience.
  • Webhook Integration: Synchronize application state with Stripe's billing events via webhooks.
  • Use Case: A SaaS company needs to implement a tiered subscription model with monthly and annual options, including a 14-day free trial. This Skill provides the necessary patterns to set up Stripe Checkout, handle subscription updates, and manage payment failures gracefully.

Quick Start

Use the subscription-billing skill to create a Stripe checkout session for the 'pro' plan on a monthly interval with a 7-day trial.

Frequently Asked Questions about subscription-billing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle Stripe billing proration when customers change subscription plans mid-cycle?

Stripe billing proration automatically calculates and applies adjusted charges for mid-cycle plan upgrades or downgrades. This Skill implements the necessary patterns to manage these proration calculations and synchronize the updated invoice amounts with your application state.

What is the best way to manage recurring payments and trial periods using Stripe?

Managing recurring payments with Stripe requires defining billing cycles and configuring trial periods. This Skill provides patterns to set up checkout sessions, handle free trial expirations, and manage grace periods for failed payment attempts to ensure a smooth user experience.

How do I synchronize application state with Stripe subscription lifecycle events via webhooks?

Synchronizing application state with Stripe requires processing webhook events for subscription updates, invoice processing, and cancellations. This Skill handles webhook integration to capture billing lifecycle events and maintain accurate local subscription records.

Can I use this to implement a tiered SaaS subscription model with monthly and annual billing cycles?

Yes, this Skill supports designing and implementing tiered subscription models with both monthly and yearly billing intervals. It covers plan definition, price management, and Stripe Checkout integration for SaaS companies needing flexible billing options.

Why do I need webhook handling for Stripe subscription management and what events are processed?

Webhook handling is required to receive and process Stripe invoice events and subscription lifecycle updates in real-time. This Skill processes checkout sessions, subscription updates, and payment failure events to keep your application synchronized with Stripe Billing.

Does this Skill handle grace periods for failed recurring payments in Stripe?

Yes, this Skill manages grace periods for failed recurring payments to prevent immediate service cancellation. It configures retry logic and updates application access rights based on Stripe's billing failure events and subscription status changes.