This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set your secret key. Remember to switch to your live secret key in production. | |
# See your keys here: https://dashboard.stripe.com/apikeys | |
import stripe | |
stripe.api_key = "{{TEST_SECRET_KEY}}" | |
# === PLAN B: $10.99 base + $1.00/10GB overage after 100GB === | |
# Create Product for Plan B | |
product = stripe.Product.create( | |
name="SuperStream Metered Usage Plan", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set your secret key. Remember to switch to your live secret key in production. | |
# See your keys here: https://dashboard.stripe.com/apikeys | |
import stripe | |
stripe.api_key = "{{TEST_SECRET_KEY}}" | |
# === PLAN A: Fixed $24.99/month for unlimited usage === | |
# Create Product for PLAN A | |
product = stripe.Product.create( | |
name="SuperStream Unlimited", | |
active=True, |