Skip to main content

Supported Gateways

GatewayRegionSetup
RazorpayIndiaKey ID + Secret
StripeInternationalSecret Key + Webhook Secret
PayPalAlternativeClient ID + Secret

Setup

Configure payment gateways in Admin → Settings → Payment Gateways or via environment variables:

Razorpay (Indian Payments)

  • RAZORPAY_KEY_ID — Your Razorpay Key ID
  • RAZORPAY_KEY_SECRET — Your Razorpay Key Secret

Stripe (International Payments)

  • STRIPE_SECRET_KEY — Your Stripe Secret Key
  • STRIPE_WEBHOOK_SECRET — Webhook signing secret

PayPal (Alternative)

  • PAYPAL_CLIENT_ID — Your PayPal Client ID
  • PAYPAL_CLIENT_SECRET — Your PayPal Client Secret

Payment Flow

  1. Student adds courses to cart and proceeds to checkout
  2. System detects country and selects appropriate gateway
  3. Student completes payment via the selected gateway
  4. Webhook/verification confirms payment
  5. Post-payment handler:
    • Updates order status to “Paid”
    • Creates enrollments (expands bundles/programs)
    • Generates invoice (for INR orders)
    • Sends receipt email
    • Clears cart