Tadreeb LMS – Payment Gateway Integration
Payment Module
Download
Payment Gateway Integration Module (v1.0.0)
Overview
This module enables a complete payment processing system within the LMS, allowing students to purchase courses, subscriptions, and bundles using multiple global payment providers.
It also provides:
- Order management
- Teacher earnings tracking
- Automated enrollment workflows
Module Information
| Item | Value |
|---|---|
| Module Slug | payments |
| Integration Type | Multi-Gateway Payment System |
| Supported Gateways | Stripe, PayPal, Razorpay, Instamojo, CashFree, PayU, Flutterwave, Offline |
| Config Fields | Gateway-specific API credentials |
Installation & Setup
Step 1: Download Payment Module
Download the Payment Gateway Integration Module (v1.0.0) package.
Step 2: Upload Module
- Login to the Admin Panel
- Navigate to Settings → External App
- Upload the module
.zipfile - Enable the module
🔐 Step 3: Configure Payment Gateways
After enabling the module, configure your preferred payment providers.
💳 Stripe Configuration
How to Get Keys
- Go to https://dashboard.stripe.com
- Login / Sign up
- Navigate to Developers → API Keys
Copy:
- Publishable Key → STRIPE_KEY
- Secret Key → STRIPE_SECRET
💳 PayPal Configuration
How to Get Keys
- Go to https://developer.paypal.com
- Navigate to My Apps & Credentials
- Create an app
Copy:
- Client ID → PAYPAL_CLIENT_ID
- Secret → PAYPAL_CLIENT_SECRET
💳 Razorpay Configuration
How to Get Keys
- Go to https://dashboard.razorpay.com
- Navigate to Settings → API Keys
Copy:
- Key ID → RAZORPAY_KEY
- Key Secret → RAZORPAY_SECRET
💳 Instamojo Configuration
How to Get Keys
- Go to https://www.instamojo.com
- Navigate to Developers → API & Keys
Copy:
- API Key → INSTAMOJO_API_KEY
- Auth Token → INSTAMOJO_AUTH_TOKEN
- API URL → INSTAMOJO_URL
💳 CashFree Configuration
How to Get Keys
- Go to https://merchant.cashfree.com
- Navigate to Developers → API Keys
Copy:
- App ID → CASHFREE_APP_ID
- Secret Key → CASHFREE_SECRET_KEY
💳 PayU Configuration
How to Get Keys
- Go to https://www.payu.in
- Navigate to Merchant Dashboard
Copy:
- Merchant Key → PAYU_MERCHANT_KEY
- Merchant Salt → PAYU_MERCHANT_SALT
💳 Flutterwave Configuration
How to Get Keys
- Go to https://dashboard.flutterwave.com
- Navigate to Settings → API Keys
Copy:
- Public Key → FLW_PUBLIC_KEY
- Secret Key → FLW_SECRET_KEY
🏦 Offline / Bank Transfer
- No API keys required
- Payments are manually approved by admin
Step 4: Save Configuration
After entering credentials:
- Click Save
- System automatically updates
.env
Functionality
When the module is enabled:
- Students can purchase courses and bundles
- Automatic course enrollment after successful payment
- Supports one-time payments and subscriptions (Stripe)
- Admin can manage orders, invoices, and payment status
- Teachers can track earnings and withdrawals
- Supports offline payment workflows
Features & Capabilities
| Feature | Description |
|---|---|
| Multi-Gateway Support | Supports 8 payment providers |
| One-Click Checkout | Fast and seamless checkout |
| Subscriptions | Recurring billing via Stripe |
| Coupons & Tax | Flexible pricing system |
| Order Management | Full admin dashboard |
| Teacher Earnings | Earnings & withdrawal tracking |
| Auto Enrollment | Instant access after payment |
| Offline Payments | Manual approval system |
| RTL Support | Full RTL compatibility |
Environment Synchronization
When settings are saved, the system updates .env automatically:
- STRIPE_KEY, STRIPE_SECRET
- PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET
- RAZORPAY_KEY, RAZORPAY_SECRET
- CASHFREE_APP_ID, CASHFREE_SECRET_KEY
- PAYU_MERCHANT_KEY, PAYU_MERCHANT_SALT
- FLW_PUBLIC_KEY, FLW_SECRET_KEY
- INSTAMOJO_API_KEY, INSTAMOJO_AUTH_TOKEN, INSTAMOJO_URL
Notes
- Always use sandbox/test mode before production
- Stripe is required for subscription-based payments
- Ensure proper configuration before enabling gateway
- Offline payments require manual admin verification