Supported Gateways
| Gateway | Region | Setup |
|---|---|---|
| Razorpay | India | Key ID + Secret |
| Stripe | International | Secret Key + Webhook Secret |
| PayPal | Alternative | Client ID + Secret |
Setup
Configure payment gateways in Admin → Settings → Payment Gateways or via environment variables:Razorpay (Indian Payments)
RAZORPAY_KEY_ID— Your Razorpay Key IDRAZORPAY_KEY_SECRET— Your Razorpay Key Secret
Stripe (International Payments)
STRIPE_SECRET_KEY— Your Stripe Secret KeySTRIPE_WEBHOOK_SECRET— Webhook signing secret
PayPal (Alternative)
PAYPAL_CLIENT_ID— Your PayPal Client IDPAYPAL_CLIENT_SECRET— Your PayPal Client Secret
Payment Flow
- Student adds courses to cart and proceeds to checkout
- System detects country and selects appropriate gateway
- Student completes payment via the selected gateway
- Webhook/verification confirms payment
- Post-payment handler:
- Updates order status to “Paid”
- Creates enrollments (expands bundles/programs)
- Generates invoice (for INR orders)
- Sends receipt email
- Clears cart