Skip to main content

How It Works

The platform automatically detects a visitor’s country and shows appropriate pricing.

Country Detection

  1. Reads the x-vercel-ip-country header (Vercel deployments)
  2. Falls back to cf-ipcountry header (Cloudflare)
  3. Defaults to IN (India) if no header detected

Price Resolution

When displaying a price:
  1. Check the region_pricing table for the student’s country
  2. If found → use the regional price/multiplier
  3. If not found → use the course’s base price and currency

Configuring Regional Pricing

  1. In the admin Courses or Programs table, click the globe icon (🌐)
  2. In the dialog, add country-specific pricing:
FieldDescription
Country CodeISO 2-letter code (e.g., US, IN, GB)
CurrencyCurrency to display (USD, INR, GBP)
PriceFixed price for this region

Payment Gateway Selection

The gateway is automatically selected based on the student’s country:
RegionGatewayCurrency
IndiaRazorpayINR
InternationalStripeUSD / local
AlternativePayPalUSD