Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Stripe Billing setup guide for SaaS subscriptions, free trials, usage-based billing meters, proration, customer portal and webhooks.
91% 95%+5 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
19 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Stripe Billing turns products and prices into subscriptions that renew, prorate, invoice and retry failed payments. This skill covers the server-side flow with the Node SDK: Checkout for sign-up, Billing Meters for usage, webhooks as the source of truth, and the customer portal for self-service.
Important change: the legacy usage-record API (subscriptionItems.createUsageRecord, prices with usage_type: "metered" and no meter, aggregate_usage, billing_thresholds) was removed in API version 2025-03-31.basil. Usage is now reported as meter events against a meter that the price references. Code written for createUsageRecord fails on current API versions.
npm install stripe
Keep the key in the environment (STRIPE_SECRET_KEY, sk_test_... while developing; restricted keys in production).
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
// Create product + price
const product = await stripe.products.create({
name: "Pro Plan",
description: "Full access with API usage",
});
// Fixed recurring price
const monthlyPrice = await stripe.prices.create({
product: product.id,
unit_amount: 2900, // $29.00
currency: "usd",
recurring: { interval: "month" },
});
// Meter: what to count and how to aggregate it per billing period
const meter = await stripe.billing.meters.create({
display_name: "API calls",
event_name: "api_call",
Next to this one in the catalogue, plus popular skills in the same category.