subscription-integration

Implement Dodo Payments subscription billing with checkout sessions and webhook-driven entitlement updates.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/irchamaji/agents --skill subscription-integration-irchamaji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subscription-integration
Source: https://github.com/irchamaji/agents/tree/main/skills/subscription-integration
Command: npx skills add https://github.com/irchamaji/agents --skill subscription-integration-irchamaji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you implement reliable subscription billing so customers can start trials, upgrade or downgrade plans, and have entitlements updated automatically.

Core Features & Use Cases

  • Create subscription checkout sessions with configurable plans, quantities, and optional trial periods for new customers.
  • Handle subscription lifecycle via webhooks to grant access, sync state, log renewals, and revoke access when a subscription is cancelled or expired.
  • Support plan changes and on-demand/usage-based charging for upgrade/downgrade flows and metered billing patterns.

Quick Start

Use the subscription-integration skill to generate a Dodo Payments integration plan that includes checkout session creation and webhook handlers for active, renewed, cancelled, on_hold, plan_changed, and expired events.

Frequently Asked Questions about subscription-integration

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

FAQPage Schema
How do I handle subscription billing webhooks to update customer entitlements?

To implement subscription trials, you create checkout sessions with configurable plans, quantities, and optional trial periods for new customers. The integration processes webhook events to automatically update the subscription status and grant access when the trial starts.

Does Dodo Payments support usage-based charging and plan upgrades?

Yes, Dodo Payments supports usage-based charging and plan upgrades through subscription billing workflows. You can handle upgrade and downgrade flows alongside on-demand metered billing patterns by processing plan_changed webhook events to adjust entitlements accordingly.

What's the best way to manage subscription state persistence for SaaS backend integrations?

The best way to manage subscription state persistence for SaaS backend integrations is by using webhook-driven entitlement updates. Processing events like on_hold, cancelled, and expired allows your system to sync subscription status and maintain accurate access control records.

How do I create checkout sessions with trial periods for subscription products?

You create checkout sessions with trial periods by defining subscription products and passing trial and subscription data to the Dodo Payments checkout API. This generates a checkout link that initializes the subscription and applies the configured trial period for new customers.

What subscription lifecycle events should I process to revoke access?

To revoke access, you should process the cancelled and expired subscription lifecycle webhook events. Processing these events updates the customer subscription status to inactive, which triggers the automatic revocation of plan entitlements and restricts access.