Stripe Setup Guide
Follow these steps to configure Stripe payments for your pricing plans.
Setup Required
The pricing plans are currently not configured. You need to create products in your Stripe dashboard first.
Step 1: Create Products in Stripe
Log into your Stripe Dashboard and create the following products:
Starter Plan
- • Price: $5/month
- • Billing: Recurring monthly
- • Currency: USD
Pro Plan
- • Price: $20/month
- • Billing: Recurring monthly
- • Currency: USD
Business Plan
- • Price: $50/month
- • Billing: Recurring monthly
- • Currency: USD
Enterprise Plan
- • Price: $350/month
- • Billing: Recurring monthly
- • Currency: USD
Step 2: Copy Price IDs
After creating each product, copy the Price ID (starts with price_
) from each product.
Update routes.py
Replace the None
values in the price_map with your actual Stripe Price IDs:
price_map = {
'price_starter': 'price_1234567890abcdef', # Your Starter Price ID
'price_pro': 'price_0987654321fedcba', # Your Pro Price ID
'price_business': 'price_abcdef1234567890', # Your Business Price ID
'price_enterprise': 'price_fedcba0987654321' # Your Enterprise Price ID
}
Step 3: Test Payments
Use Stripe's test mode with these test card numbers:
- Successful payment:
4242 4242 4242 4242
- Declined payment:
4000 0000 0000 0002
- Expires: Any future date
- CVC: Any 3 digits