Skip to content

Python toolkit for simulating SaaS subscriptions and analyzing business metrics using the Razorpay API in test mode

Notifications You must be signed in to change notification settings

0xarun/razorpay-saas-metrics-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Razorpay SaaS Metrics Dashboard ๐Ÿ“Š

A Python toolkit for simulating SaaS subscriptions and tracking business metrics using Razorpay API in test mode.

Features

  • 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

Installation

git clone https://github.com/0xarun/razorpay-saas-metrics-dashboard.git
cd razorpay-saas-metrics-dashboard
pip install requests

Setup

Add your Razorpay test credentials to both Python files:

RAZORPAY_KEY_ID = "your_test_key_id"
RAZORPAY_KEY_SECRET = "your_test_key_secret"

Usage

  1. Create subscriptions:

    python simulate-plans-razorpay.py
  2. Capture payment manually:

    • Go to Razorpay Test Dashboard โ†’ Subscriptions
    • See Created Subscriptions
    • Click "Start Subscription" on the created subscription
  3. View metrics:

    python python-razorpay.py

Sample Output

๐Ÿ“Š SaaS Metrics Dashboard (Razorpay)
----------------------------------------
MRR: โ‚น99.0
Active Customers: 1
Churned Customers: 0
Total Revenue: โ‚น99.0
CLTV: โ‚น99.0
Churn Rate (%): 0.0
----------------------------------------

About

Python toolkit for simulating SaaS subscriptions and analyzing business metrics using the Razorpay API in test mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages