Home/Knowledge Base/Integrating Digital Payment Gateways in Nepal: eSewa, Khalti, ConnectIPS & Fonepay
Fintech & Payments
Fintech & Payments·7 min guide·Updated September 2026·🇳🇵 Verified for Nepal

Integrating Digital Payment Gateways in Nepal: eSewa, Khalti, ConnectIPS & Fonepay

A technical and operational guide to integrating digital payment gateways in Nepal. Learn how to handle checkout redirection, webhook signatures, idempotency, and automated ledger reconciliation.

Local Practice Note: Written and maintained by CodeXPal product engineers and business analysts in Kathmandu. This guide reflects current Nepalese legal, banking, and commercial procedures.

Step-by-Step Implementation Guide

1

Understand the Payment Rails in Nepal

Nepal offers digital wallets (eSewa, Khalti), interbank clearing networks (ConnectIPS / NCHL), and national QR switches (Fonepay, NepalPay). Selecting the right combination depends on whether your customers are retail mobile users or B2B enterprise payers.

2

Merchant Onboarding & API Credentials

Submit your business PAN/VAT, OCR certificate, corporate bank account details, and director KYC to gateway merchant portals. You will receive Merchant IDs, Secret Keys, and UAT Sandbox testing credentials.

3

Implementing Secure Payment Initiation

Generate unique order IDs and digital signatures on your backend (Python FastAPI or Node.js) using HMAC-SHA256. Never expose your Secret API Key in the frontend client code.

4

Webhook Verification & Server-to-Server Confirmation

When a user finishes paying on eSewa or Khalti, the provider sends a webhook callback to your server. Always make an independent server-to-server inquiry request to confirm that the amount and payment status are legitimately marked "PAID" before dispatching orders.

5

Automated Reconciliation into Your Ledger

Each gateway deducts a Merchant Discount Rate (MDR) fee (typically 1.5% to 2.5%). Use an automated accounting suite like KhataIN to credit customer receivables while allocating the gateway fee to payment processing expenses.

Frequently Asked Questions (Nepal Context)

Q: Can an individual without a registered business get a payment gateway in Nepal?

Most licensed payment service providers in Nepal require a registered business PAN/VAT and corporate bank account to activate automated merchant checkout APIs.

Q: What is the settlement timeline for eSewa, Khalti, and ConnectIPS?

Standard merchant settlements occur on a T+1 business day basis directly into your linked Nepali commercial bank account.