Skip to main content

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

ItemValue
Module Slugpayments
Integration TypeMulti-Gateway Payment System
Supported GatewaysStripe, PayPal, Razorpay, Instamojo, CashFree, PayU, Flutterwave, Offline
Config FieldsGateway-specific API credentials

Installation & Setup

Step 1: Download Payment Module

Download the Payment Gateway Integration Module (v1.0.0) package.


Step 2: Upload Module

  1. Login to the Admin Panel
  2. Navigate to Settings → External App
  3. Upload the module .zip file
  4. Enable the module

🔐 Step 3: Configure Payment Gateways

After enabling the module, configure your preferred payment providers.


💳 Stripe Configuration

How to Get Keys

  1. Go to https://dashboard.stripe.com
  2. Login / Sign up
  3. Navigate to Developers → API Keys

Copy:

  • Publishable Key → STRIPE_KEY
  • Secret Key → STRIPE_SECRET

💳 PayPal Configuration

How to Get Keys

  1. Go to https://developer.paypal.com
  2. Navigate to My Apps & Credentials
  3. Create an app

Copy:

  • Client ID → PAYPAL_CLIENT_ID
  • Secret → PAYPAL_CLIENT_SECRET

💳 Razorpay Configuration

How to Get Keys

  1. Go to https://dashboard.razorpay.com
  2. Navigate to Settings → API Keys

Copy:

  • Key ID → RAZORPAY_KEY
  • Key Secret → RAZORPAY_SECRET

💳 Instamojo Configuration

How to Get Keys

  1. Go to https://www.instamojo.com
  2. 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

  1. Go to https://merchant.cashfree.com
  2. Navigate to Developers → API Keys

Copy:

  • App ID → CASHFREE_APP_ID
  • Secret Key → CASHFREE_SECRET_KEY

💳 PayU Configuration

How to Get Keys

  1. Go to https://www.payu.in
  2. Navigate to Merchant Dashboard

Copy:

  • Merchant Key → PAYU_MERCHANT_KEY
  • Merchant Salt → PAYU_MERCHANT_SALT

💳 Flutterwave Configuration

How to Get Keys

  1. Go to https://dashboard.flutterwave.com
  2. 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

FeatureDescription
Multi-Gateway SupportSupports 8 payment providers
One-Click CheckoutFast and seamless checkout
SubscriptionsRecurring billing via Stripe
Coupons & TaxFlexible pricing system
Order ManagementFull admin dashboard
Teacher EarningsEarnings & withdrawal tracking
Auto EnrollmentInstant access after payment
Offline PaymentsManual approval system
RTL SupportFull 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