OC-0069: Stripe Subscription Manager — Cancel/refund subscriptions, manage products and prices via the Stripe API.
Cancel or refund subscriptions, list products and prices through the Stripe API.
# List active subscriptions
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py list-subscriptions
# Cancel a subscription immediately
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py cancel sub_1234 --immediate
# Refund the latest invoice on a subscription
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py refund sub_1234
# List all products
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py list-products
# Create a product
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py create-product "Pro Plan"
# List prices
python3 skills/cloud/commerce/payments/stripe-subscriptions/scripts/manage.py list-prices
list-subscriptionsLists subscriptions from your Stripe account.
--status: Filter by status (active, canceled, past_due, etc.)--limit: Number of results (default: 10)cancelCancels a subscription.
subscription_id: Stripe subscription ID (required)--immediate: Cancel immediately instead of at period end (flag)refundRefunds the latest invoice on a subscription.
subscription_id: Stripe subscription ID (required)--amount: Partial refund amount in cents (optional, full refund by default)list-productsLists products in your Stripe account.
--limit: Number of results (default: 10)create-productCreates a new product.
name: Product name (required)--description: Product descriptionlist-pricesLists prices.
--product: Filter by product ID--limit: Number of results (default: 10)| Variable | Required | Description |
|---|---|---|
STRIPE_SECRET_KEY | Yes | Stripe secret API key |