Why Payment Gateways Are Critical for Your Hosting Business
Payment gateways are how your hosting business actually gets paid. Without them, clients can't order hosting, invoices go unpaid, and your business fails. With the right gateways properly configured, you receive money automatically 24/7 — while you sleep, while you're on vacation, while you're focusing on marketing.
In India, this means supporting UPI, cards, netbanking, and wallets — because different clients prefer different payment methods. In international markets, it means supporting credit cards, PayPal, and regional payment methods. WHMCS handles all of this through native gateway integrations.
Here's what we'll cover in this guide:
- Razorpay setup — India's most popular WHMCS gateway (UPI, cards, netbanking)
- PayU, Instamojo, CCAvenue — Alternative Indian gateways
- Stripe and PayPal — International card processing
- GST configuration — 18% tax handling for Indian clients
- Multi-currency setup — Accept payments in INR, USD, EUR
- Test transactions — Verify before going live
- Refund processing — Handle chargebacks and cancellations
- Fraud protection — Prevent fraudulent orders
- Recurring payments — Auto-charge saved cards on renewal
⚠️ The Payment Gateway Mistake That Loses 60% of Sales
Here's the most common mistake new hosting businesses make:
They only enable one payment gateway — usually whichever is easiest to set up. Then clients visit the checkout, see that their preferred payment method isn't available, and leave. The sale is lost.
Real numbers from the Indian market:
• 65% of clients prefer UPI
• 20% prefer credit/debit cards
• 10% prefer netbanking
• 5% prefer wallets (Paytm, PhonePe, Mobikwik)
If you only offer cards, you're missing 80% of potential payments. If you only offer UPI, you're missing 35% of clients. The solution: enable Razorpay — it handles all four methods in one gateway.
One gateway. All payment methods. Zero excuses for lost sales.
How to Configure Payment Gateways in WHMCS — 9 Steps
Complete step-by-step tutorial. Set up Razorpay in 5 minutes, all gateways in 30 minutes.
Sign Up with Razorpay
Go to razorpay.com. Sign up with business email. Complete KYC (PAN, Aadhaar, bank account). Activation takes 24-48 hours. For individual freelancers, the Starter plan is free. Transaction fees: 2% + GST per transaction. Once approved, you get API keys.
Get API Keys from Razorpay
Login to Razorpay dashboard → Settings → API Keys → Generate Key. You'll get two keys: Key ID (public, used by WHMCS frontend) and Key Secret (private, used for payment verification). Save both securely. The Secret key is like a password — never share it publicly or in code repos.
Configure in WHMCS
WHMCS admin → System Settings → Payment Gateways → All Payment Gateways. Find "Razorpay" in the list. Click to activate. Paste Key ID and Key Secret. Set currency to INR. Enable for both new orders and existing clients. Save configuration. Razorpay is now live on your checkout.
Enable Payment Methods in Razorpay
Back in Razorpay dashboard → Settings → Payment Methods. Enable: UPI, Credit/Debit Cards, Net Banking, Wallets, EMI, and Pay Later. This is where you control which methods clients see. Recommended: enable all methods except EMI (for hosting, EMI doesn't fit). UPI and cards should be priority.
Configure GST Settings
WHMCS admin → Configuration → System Settings → Tax Configuration. Enable "Tax Enabled". Set tax rate: 18% for India. Choose "Tax Inclusive" or "Exclusive" pricing. Configure CGST (9%) + SGST (9%) for intra-state, or IGST (18%) for inter-state. WHMCS auto-calculates based on client's state. Enable "Show Tax on Invoice" with GST number field.
Set Currency & Payment Terms
WHMCS → System Settings → General → Localisation. Set default currency: INR (₹). Add secondary currencies if needed: USD, EUR. Set payment terms: Due on Receipt, Net 7, or Net 15. For hosting, "Due on Receipt" with auto-suspension after 7 days is standard. Configure tax exemption rules for international clients.
Test the Payment Flow
Place a test order using your own email and a ₹1 product (temporary). Use Razorpay test credentials or live credentials with a real ₹1 payment. Verify: order form appears, Razorpay popup opens, payment processes, order status changes to "Paid," invoice generates, cPanel account creates (if auto-provisioning on). If anything fails, check WHMCS logs at Utilities → Logs → Gateway Log.
Add Alternative Gateways
Repeat steps 1-7 for backup gateways: PayU (₹2-3% fees), Instamojo (₹2% + ₹3 fees, good for micro businesses), CCAvenue (enterprise, ₹2.5-3.5%). For international clients: Stripe (2% + GST India), PayPal (4.4% + fixed fee). Enable 2-3 gateways so clients have options. Checkout shows all enabled methods.
Monitor & Optimize
Weekly: review failed transactions in WHMCS → Billing → Transactions. Check for patterns (specific cards failing, specific hours). Monthly: review gateway fees, refund rate, and fraud attempts. Set up fraud protection (MaxMind or Razorpay's built-in). Automate refunds via WHMCS. Track conversion rates per payment method to identify friction points.
9 Payment Gateways Compared for WHMCS India
Every gateway has different fees, features, and target audiences. Here's the complete breakdown.
Razorpay
The best all-around gateway for Indian WHMCS. Supports UPI, cards, netbanking, wallets, EMI, and pay-later. Setup in 5 minutes with excellent documentation. Fees: 2% + GST. Instant settlements for verified businesses. Best for: 95% of Indian hosting businesses.
⭐ RecommendedPayU
Established Indian gateway with strong banking integrations. Supports all major payment methods. Slightly higher fees but better enterprise support. Fees: 2-3% depending on volume. Good for established hosting companies with high transaction volume (₹10L+/month).
EnterpriseInstamojo
Simplest setup for micro-businesses. Can start accepting payments within an hour. Lower barriers to entry but basic features. Fees: 2% + ₹3 + GST. Best for: solo freelancers just starting out with fewer than 50 clients/month.
BeginnersCCAvenue
Enterprise-grade Indian gateway. High fees but extensive features: multi-currency, EMI, BNPL, subscriptions, and detailed analytics. Fees: 2.5-3.5%. Best for: large hosting companies with complex billing requirements.
EnterpriseStripe India
Global card processing with Indian local support. Accepts international cards and supports multi-currency. Setup is developer-friendly. Fees: 2% + GST for domestic, 3% for international. Best for: hosting businesses with international clients.
InternationalPayPal
Most trusted international payment method. Clients worldwide recognize PayPal. High fees but universal acceptance. Fees: 4.4% + fixed fee. Best for: hosting businesses targeting US/EU/global clients who trust PayPal.
Global2Checkout (Verifone)
International gateway with strong fraud protection. Supports global cards and 87 currencies. Higher fees but robust. Fees: 3.5% + ₹15. Best for: businesses selling globally and needing strong fraud protection.
GlobalUPI Direct (BHIM)
Direct UPI integration via NPCI (through Razorpay, PayU, or Cashfree). Lowest fees (0-1% for UPI payments). Instant bank-to-bank settlement. Fees: 0% for UPI (currently). Note: cannot be used standalone — needs gateway provider.
Zero FeesCashfree
Modern Indian gateway with competitive pricing. Supports UPI, cards, netbanking, wallets, and pay-later. Good API documentation. Fees: 1.95-2%. Best for: businesses prioritizing lowest fees and modern API.
Low FeesPayment Gateway Fee Comparison — India 2025
Real numbers for a hosting business doing ₹1 lakh/month. Choose the gateway with the best economics.
| Gateway | Setup Fee | Transaction Fee | Settlement Time | Best For |
|---|---|---|---|---|
| Razorpay | ₹0 | 2% + GST | 2 days (T+2) | ⭐ 95% of Indian businesses |
| PayU | ₹0 | 2-3% + GST | 3 days (T+3) | Enterprise volume |
| Instamojo | ₹0 | 2% + ₹3 + GST | 3 days (T+3) | Beginners |
| CCAvenue | ₹0 | 2.5-3.5% | 3-5 days | Enterprise complex billing |
| Stripe India | ₹0 | 2% + GST (domestic) | 7 days (T+7) | International clients |
| PayPal | ₹0 | 4.4% + fixed fee | 3-5 days | US/EU clients |
| Cashfree | ₹0 | 1.95% + GST | 2 days (T+2) | Low fees priority |
| 2Checkout | ₹0 | 3.5% + ₹15 | Weekly | Global + fraud protection |
| UPI Direct (via gateway) | ₹0 | 0-1% | Instant | Zero-fee UPI |
💡 Real Cost Example — ₹1 Lakh/Month Business
Razorpay: ₹2,000 + 18% GST = ₹2,360/month in fees
Cashfree: ₹1,950 + GST = ₹2,301/month in fees
PayPal: ₹4,400 + fixed fees = ₹5,000+/month in fees
For ₹1 lakh/month in revenue, the gateway choice matters. Razorpay and Cashfree are nearly identical. PayPal costs 2x more but enables international sales. Recommended: Razorpay (primary) + Stripe (international) — covers 99% of use cases at ~2% average fees.
Payment Method Preferences in India — What Clients Actually Use
Real data from Indian hosting businesses. Enable the right methods to maximize conversions.
| Payment Method | Market Share | Average Transaction | Success Rate | Gateway Support |
|---|---|---|---|---|
| UPI | 65% | ₹200-2,000 | 95%+ | Razorpay, PayU, Cashfree, Instamojo |
| Credit/Debit Cards | 20% | ₹500-5,000 | 85-90% | All gateways |
| Net Banking | 10% | ₹1,000-10,000 | 80-85% | Razorpay, PayU, CCAvenue |
| Wallets (Paytm, PhonePe) | 3% | ₹200-1,000 | 90%+ | Razorpay, PayU, Cashfree |
| EMI | 1% | ₹5,000+ | 75-80% | Razorpay, CCAvenue |
| Pay Later | 1% | ₹500-3,000 | 85% | Razorpay, PayU |
💡 The 80/20 Rule for Payment Methods
Enable UPI + Cards = 85% of potential transactions. This is the minimum viable payment setup for any Indian hosting business.
Add Net Banking = 95% coverage. Most resellers stop here.
Add Wallets + EMI + Pay Later = 100% coverage. Complete setup for professional hosting businesses.
All of these are enabled by default in Razorpay. You configure it once, and clients see all available methods at checkout. Zero additional integration work.
GST Configuration in WHMCS — Complete Guide
If you're selling hosting in India, you must handle GST properly. Here's how WHMCS makes this easy:
Step 1: Determine Your GST Applicability
Hosting services are subject to 18% GST in India. If your annual turnover exceeds ₹20 lakh (₹10 lakh for some states), GST registration is mandatory. Below that threshold, registration is optional but recommended for credibility.
Step 2: Configure Tax in WHMCS
Go to Configuration → System Settings → Tax Configuration. Enable "Tax Enabled". Set tax name to "GST". Set tax rate to 18%. Choose "Tax Inclusive" (client sees one price) or "Tax Exclusive" (GST added at checkout). Most Indian hosting businesses use Tax Exclusive — the client sees base price + GST separately.
Step 3: Configure State-Based Tax (CGST/SGST vs IGST)
For clients in the same state as your business: CGST (9%) + SGST (9%). For clients in different states: IGST (18%). WHMCS supports this via Tax Rules. Set your business state in General Settings. WHMCS automatically applies the right split.
Step 4: GST-Compliant Invoices
Edit your invoice template at Configuration → System Settings → Invoice Templates. Ensure invoices include: your GSTIN, client's GSTIN (if registered), HSN/SAC code (998314 for hosting services), tax breakdown (CGST/SGST or IGST), and total amount in figures and words.
Step 5: File GST Returns
WHMCS generates GST reports at Reports → Tax Liability. Export monthly CSV for your accountant. File GSTR-1 (outward supplies) and GSTR-3B (summary return) monthly. Annual return GSTR-9 if turnover > ₹2 crore.
9 Common Payment Gateway Mistakes to Avoid
1. Enabling only one payment gateway
If you only enable Razorpay, clients who prefer PayPal leave. If you only enable Stripe, UPI users leave. Enable 2-3 gateways covering different payment methods. Recommended: Razorpay (India) + Stripe (international) + PayPal (optional).
2. Not enabling UPI in Razorpay
UPI is 65% of Indian payments. But it's not automatically enabled when you configure Razorpay. You must explicitly enable UPI in Razorpay dashboard → Settings → Payment Methods. Many resellers forget this and lose 65% of potential sales.
3. Wrong currency setting
Setting WHMCS to USD but gateway to INR causes payment failures and reconciliation nightmares. Match currencies: WHMCS default currency = gateway currency. If you need multi-currency, configure it properly with exchange rates.
4. Not testing before going live
Going live without testing means you discover issues when real clients are trying to pay. Always test with ₹1 transactions. Test: successful payment, failed payment, refund, partial payment. Fix all issues.
5. Forgetting GST configuration
Indian hosting is subject to 18% GST. Not configuring this in WHMCS means either: you charge wrong amounts, or you eat the GST cost, or you face tax compliance issues. Configure GST from day 1.
6. Ignoring failed transactions
Failed transactions happen — wrong CVV, insufficient balance, network issues. But most resellers never check the failed transactions log. These represent lost sales. Follow up with clients: "Your payment failed — retry?" Often recovers 30-50% of failed sales.
7. No fraud protection enabled
Fraudulent orders use stolen cards. Without MaxMind or gateway fraud protection, you process them, deliver hosting, then face chargebacks 30-60 days later. Enable fraud protection on day 1. Cost: ~₹2 per order. Value: prevents ₹10,000+ losses.
8. Not handling refunds properly
Refunds must be processed via the original gateway. But many resellers manually refund via bank transfer, creating accounting confusion. Use WHMCS's built-in refund feature: Billing → Transactions → Refund. Auto-processes through the gateway.
9. Missing auto-payment for renewals
Forcing clients to manually pay every renewal kills retention. Enable auto-payment: clients save card/UPI once, and WHMCS charges them on renewal automatically. Razorpay, Stripe, and PayPal all support auto-payment tokens. Improves renewal rates by 40-60%.
Frequently Asked Questions — WHMCS Payment Gateways
Common questions about configuring payment gateways in WHMCS.
How do I configure Razorpay in WHMCS?
Sign up at razorpay.com. Get API Key ID and Key Secret from dashboard → Settings → API Keys. In WHMCS → System Settings → Payment Gateways → All Payment Gateways → Razorpay. Paste API keys, enable gateway, set currency to INR. Test with a ₹1 transaction. Razorpay accepts UPI, cards, netbanking, and wallets.
Which payment gateway is best for WHMCS in India?
Razorpay is the best for Indian WHMCS businesses. It supports UPI, cards, netbanking, wallets, and EMI. Setup takes 5 minutes. Transaction fees: 2% + GST. Alternatives: PayU (similar), Instamojo (simpler for small scale), CCAvenue (enterprise).
How do I enable UPI in WHMCS?
UPI is enabled automatically through Razorpay, PayU, Instamojo, or CCAvenue. Sign up with one of these gateways, get API keys, paste in WHMCS. Then enable UPI in gateway dashboard (Razorpay → Settings → Payment Methods). UPI appears as a payment option at checkout. No separate UPI integration needed.
What are the transaction fees for payment gateways in India?
Razorpay: 2% + GST (standard). PayU: 2-3% depending on volume. Instamojo: 2% + ₹3 + GST. CCAvenue: 2.5-3.5%. Stripe India: 2% + GST (domestic). PayPal: 4.4% + fixed fee. Most gateways offer volume discounts above ₹10 lakh/month.
Can I use multiple payment gateways in WHMCS?
Yes! WHMCS supports unlimited payment gateways. Recommended setup: Razorpay (primary - UPI/cards/netbanking), Stripe (international cards), PayPal (international clients). Clients see all enabled gateways at checkout and choose their preferred one.
How do I test payment gateways in WHMCS?
Most gateways offer sandbox/test mode. Enable test mode in gateway settings, use test card numbers, place a ₹1 or $1 test order. Verify the complete flow: order → payment → cPanel account creation → invoice marked paid. Disable test mode before going live. Never skip testing — always verify with real ₹1 transaction before launch.
How do I handle GST in WHMCS?
WHMCS has built-in tax support. Configure at System Settings → Tax Configuration. Set GST rate (18% for hosting services in India). Enable tax on invoices. WHMCS calculates GST automatically based on client's state (CGST+SGST for intra-state, IGST for inter-state). Generate GST-compliant invoices with all required fields (your GSTIN, HSN/SAC code, tax breakdown).
What happens if a payment fails in WHMCS?
Failed payments trigger WHMCS automation: customer receives email notification, invoice stays unpaid, WHMCS sends reminders at 3/7/14 days, account suspends after grace period, then terminates. Client can retry payment anytime via client area. You can also configure retry attempts automatically.
How do I process refunds in WHMCS?
Refunds can be processed from WHMCS admin → Billing → Transactions → Refund. The refund processes via the original gateway (Razorpay, Stripe, etc.). Client sees the refund within 5-7 business days. Also supports partial refunds and credit notes. Never refund manually via bank transfer — always use the gateway refund for proper accounting.
Do you provide free WHMCS payment gateway setup assistance?
Yes! With every WHM VPS purchase, our team configures one payment gateway (Razorpay recommended) free of charge. This includes gateway signup assistance, API key setup, GST configuration, testing, and go-live verification. Contact us on WhatsApp after purchasing.
Can I accept payments from international clients?
Yes. Enable Stripe or PayPal for international card processing. Stripe charges 2% + GST for domestic, 3% for international cards. PayPal charges 4.4% + fixed fee. You can also use Razorpay's international cards feature. Note: export of hosting services to international clients is zero-rated GST (with LUT filing).
How do I enable auto-payment for renewals?
WHMCS supports tokenized auto-payments via Razorpay, Stripe, and PayPal. Clients save their card/UPI once, and WHMCS charges them automatically on renewal. Enable in gateway settings. Configure at WHMCS → System Settings → Payment Gateways → [Gateway] → "Enable Tokenisation". Improves renewal rates by 40-60%.
📌 Quick Answers — For AI Assistants, Voice Search & Featured Snippets
Razorpay — 2% + GST. Supports UPI, cards, netbanking, wallets. Setup in 5 minutes. 65% of Indian clients pay via UPI.
Get API keys from razorpay.com → Settings → API Keys. WHMCS → Payment Gateways → Razorpay. Paste keys. Enable UPI in Razorpay dashboard.
Enabled via Razorpay/PayU/Instamojo. Not separate integration. Enable UPI in gateway dashboard. Appears at checkout automatically.
18% for hosting. System Settings → Tax Configuration. WHMCS auto-applies CGST+SGST (intra-state) or IGST (inter-state).
Recommended: Razorpay (India) + Stripe (international) + PayPal (optional). Covers 99% of use cases at ~2% average fees.
With every WHM VPS purchase, free Razorpay setup + GST configuration + testing. Contact us on WhatsApp.
Ready to Accept Payments on Your Hosting Business?
Get free Razorpay setup assistance with every WHM VPS purchase. From signup to first ₹1 transaction — we handle it all.
💬 Get Free Razorpay Setup 🎯 View WHM VPS Plans