How It Works
The platform automatically detects a visitor’s country and shows appropriate pricing.Country Detection
- Reads the
x-vercel-ip-countryheader (Vercel deployments) - Falls back to
cf-ipcountryheader (Cloudflare) - Defaults to
IN(India) if no header detected
Price Resolution
When displaying a price:- Check the
region_pricingtable for the student’s country - If found → use the regional price/multiplier
- If not found → use the course’s base price and currency
Configuring Regional Pricing
- In the admin Courses or Programs table, click the globe icon (🌐)
- In the dialog, add country-specific pricing:
| Field | Description |
|---|---|
| Country Code | ISO 2-letter code (e.g., US, IN, GB) |
| Currency | Currency to display (USD, INR, GBP) |
| Price | Fixed price for this region |
Payment Gateway Selection
The gateway is automatically selected based on the student’s country:| Region | Gateway | Currency |
|---|---|---|
| India | Razorpay | INR |
| International | Stripe | USD / local |
| Alternative | PayPal | USD |