A Python toolkit for simulating SaaS subscriptions and tracking business metrics using Razorpay API in test mode.
- Create test customers and subscription plans
- Simulate subscription payments via Razorpay dashboard
- Track MRR, active customers, and total revenue
- Calculate churn rate and customer lifetime value
git clone https://github.com/0xarun/razorpay-saas-metrics-dashboard.git
cd razorpay-saas-metrics-dashboard
pip install requests
Add your Razorpay test credentials to both Python files:
RAZORPAY_KEY_ID = "your_test_key_id"
RAZORPAY_KEY_SECRET = "your_test_key_secret"
-
Create subscriptions:
python simulate-plans-razorpay.py
-
Capture payment manually:
- Go to Razorpay Test Dashboard โ Subscriptions
- See Created Subscriptions
- Click "Start Subscription" on the created subscription
-
View metrics:
python python-razorpay.py
๐ SaaS Metrics Dashboard (Razorpay)
----------------------------------------
MRR: โน99.0
Active Customers: 1
Churned Customers: 0
Total Revenue: โน99.0
CLTV: โน99.0
Churn Rate (%): 0.0
----------------------------------------