stripe-agent
Automate Stripe Billing and Subscription Management
Managing Stripe billing manually is time-consuming and error-prone. This skill automates product setup, subscription lifecycle management, checkout sessions, and webhook processing with support for dual test and live environments.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"stripe-agent" ์ฌ์ฉ ์ค์ ๋๋ค. Audit the Stripe configuration and check if all required environment variables are present
์์ ๊ฒฐ๊ณผ:
- Stripe Configuration Audit Results:
- Status: Healthy
- Environment Variables: All 12 required variables present
- Products: 3 products found (Starter, Professional, Elite)
- Prices: 6 prices configured (monthly and annual for each tier)
- Webhooks: Test webhook configured, Live webhook pending setup
- Recommendation: Add STRIPE_LIVE_WEBHOOK_SECRET to production environment
"stripe-agent" ์ฌ์ฉ ์ค์ ๋๋ค. Create a checkout session for john@example.com subscribing to Professional tier monthly
์์ ๊ฒฐ๊ณผ:
- Checkout session created successfully
- Customer: cus_ABC123 (john@example.com)
- Price: Professional Monthly - $895.00 AUD
- Checkout URL: https://checkout.stripe.com/c/pay/cs_test_xyz789
- Session expires in 24 hours
- Workspace will be upgraded upon successful payment
"stripe-agent" ์ฌ์ฉ ์ค์ ๋๋ค. List all active subscriptions for customer cus_ABC123
์์ ๊ฒฐ๊ณผ:
- Active Subscriptions for cus_ABC123:
- Subscription ID: sub_123456
- Tier: Professional
- Billing: Monthly ($895.00 AUD)
- Status: Active
- Current period: 2026-01-15 to 2026-02-15
- Next invoice: 2026-02-15
๋ณด์ ๊ฐ์ฌ
๋ฎ์ ์ํThis skill provides legitimate Stripe payment integration functionality. Static analyzer flagged 102 potential issues, but manual review confirms these are false positives from documentation patterns and markdown code blocks. The skill properly uses environment variables for API credentials and follows Stripe integration best practices. Network access is legitimate for Stripe API communication.
๋ฎ์ ์ํ ๋ฌธ์ (2)
์ํ ์์ธ
๐ ๋คํธ์ํฌ ์ ๊ทผ (2)
๐ ํ๊ฒฝ ๋ณ์ (1)
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
SaaS Subscription Setup
Set up complete subscription billing for a SaaS product with multiple pricing tiers, automated checkout, and webhook-driven subscription activation.
Billing System Audit
Audit existing Stripe configuration to verify all products, prices, and webhooks are properly configured across test and live environments.
Subscription Lifecycle Management
Handle customer subscription upgrades, downgrades, and cancellations with proper proration and database synchronization.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Create three Stripe products: Starter at $495/month, Professional at $895/month, and Elite at $1,295/month. Include both monthly and annual pricing with annual discount.
Create a Stripe checkout session for user email@example.com subscribing to the Professional tier with monthly billing. Use workspace ID ws_123 and redirect to /dashboard on success.
Upgrade subscription sub_abc123 from Starter to Professional tier with proration. Update the workspace tier in the database after successful upgrade.
Generate a billing report for the current month showing total revenue, revenue by tier, active subscriptions, new subscriptions, churned subscriptions, and MRR.
๋ชจ๋ฒ ์ฌ๋ก
- Always use separate test and live API keys and configure them properly in environment variables to avoid mixing test and production data
- Implement webhook signature verification using webhook secrets to ensure incoming webhook events are genuine Stripe requests
- Store subscription and customer data in your database synchronized with Stripe to enable fast queries without repeated API calls
ํผํ๊ธฐ
- Avoid hardcoding API keys or price IDs directly in code instead of using environment variables and configuration management
- Do not process subscription changes without webhook confirmation as payments may fail or require additional authentication steps
- Never skip webhook signature verification as this exposes your billing system to forged webhook attacks and data manipulation