By the Profile Nepal team, Kathmandu · Published · 6 min read
Customers in Nepal are used to paying with a wallet or straight from their bank account. If your website can take that payment while they are still on the page, you do not have to wait for a bank deposit slip or a screenshot on WhatsApp.
This guide explains how the three common options work on a website: eSewa, Khalti and ConnectIPS. It covers becoming a merchant, testing, going live, and the checks that stop a fake "payment successful" from turning into a shipped order. Everything here comes from each provider's own developer documentation, read on 24 November 2026.
The short answer
- Become a merchant with the provider: eSewa and Khalti through their merchant teams, ConnectIPS through your bank, which registers you with Nepal Clearing House (NCHL).
- Build and test in the provider's test environment.
- On every payment, your server must confirm it with the provider's verification API before you mark the order as paid.
- Go live with the production keys. Khalti limits payments to NPR 200 until its KYC is done.
How a gateway payment works
All three follow the same pattern:
- The customer clicks "Pay with eSewa", "Pay with Khalti" or "Pay with ConnectIPS" at checkout.
- Your website sends the amount and a unique order number to the provider and redirects the customer to the provider's payment page.
- The customer logs in to their wallet or bank there and confirms the payment.
- The provider sends the customer back to your website's success or failure page.
- Your server asks the provider to confirm the payment and only then marks the order as paid.
Step 5 is the one people skip, and it is the important one. The return to your success page passes through the customer's browser, so on its own it proves nothing. eSewa's documentation tells merchants to send a verification request after every successful payment "for filtering potential fraudulent transactions", and Khalti's says the merchant must call its lookup API to get the status of the transaction.
eSewa
eSewa's online payment product is called ePay. Its documentation is aimed at business houses and organisations that want to add online payments.
- Becoming a merchant: eSewa lists merchant@esewa.com.np for business enquiries and merchant.operation@esewa.com.np for integration support.
- How the request is protected: each payment request is signed with an HMAC-SHA256 signature over the total amount, your unique transaction ID and your product code, using the secret key eSewa gives you.
- Testing: eSewa publishes test credentials, so you can build and try the whole flow before going live.
- If the customer does not come back: eSewa says that if you do not receive a response within five minutes, use its status check API to confirm the payment, then update the order.
- Ready-made plugins: eSewa's documentation includes WooCommerce, PrestaShop and Magento.
Khalti
Khalti's current gateway is called KPG-2 Web Checkout. Besides the Khalti wallet, its checkout supports e-banking and debit or credit cards once your integration is live.
- Becoming a merchant: sign up as a merchant on Khalti. For testing there is a separate sandbox at dev.khalti.com, with test Khalti IDs, a test MPIN and a test OTP listed in the docs.
- How the payment starts: your server sends Khalti the order ID, the amount in paisa (Rs 100 is 10000) and a return URL. Khalti returns a payment ID (pidx) and a payment URL to send the customer to.
- Confirming the payment: after the customer returns, call Khalti's lookup API from your server with the pidx. It reports whether the payment is completed, pending, initiated, refunded, expired or cancelled. Khalti's own gotchas page warns that this call must come from your server, not the browser.
- Going live: replace the sandbox address and keys with the live ones from your merchant dashboard. Even then, you cannot receive more than NPR 200 per transaction until you complete Khalti's KYC form and contact its merchant team.
- Refunds and reports: the merchant dashboard shows transactions, lets you issue refunds and download reports, and you can transfer the collected balance to a bank account.
- Ready-made options: plugins for WooCommerce and WHMCS, and SDKs for Android, Flutter and iOS.
ConnectIPS
ConnectIPS takes the payment directly from the customer's bank account. It is run by Nepal Clearing House Ltd (NCHL), and the way in is through your bank.
- Becoming a merchant: NCHL registers merchants for the connectIPS gateway at the request of the merchant's bank, then issues a Merchant ID and an Application ID. Start by asking the bank that holds your business account.
- How the request is protected: each transaction carries a token generated from the transaction details and a private key provided by NCHL.
- Amounts: like Khalti, ConnectIPS expects the amount in paisa.
- Confirming the payment: as with the wallets, check the transaction with NCHL from your server before you treat the order as paid.
Which one should you offer?
Each gateway is a separate merchant agreement and a separate integration, so you do not have to add all three at once. Start with the one your customers already ask for, then add the others. Offering a wallet and a bank option together covers customers who keep their money in either place.
Keep a manual option too, such as bank transfer or cash on delivery, for customers who would rather not pay online.
Security checklist before you go live
- Secret keys stay on the server. Never put them in JavaScript, in the page source or in a public code repository. Khalti says a leaked key should be regenerated from the merchant dashboard.
- Verify every payment from your server with the provider's verification or lookup API.
- Check the amount. Compare the amount the provider confirms with the order total in your own database, not with anything sent back through the browser.
- Use a unique order ID for every attempt, and never mark the same payment as paid twice.
- Handle every status: pending, cancelled and expired payments should leave the order unpaid and let the customer try again.
- Serve the whole checkout over HTTPS.
- Test the failures, not only the success: a cancelled payment, a closed browser and a payment that stays pending.
Ready-made shop or custom website?
If your shop runs on WooCommerce, both eSewa and Khalti list plugins, which is the quickest route; you still need your own merchant accounts and keys. A custom website, or a booking or school-fee system, needs the integration written against each provider's API, including the server-side verification above.
Frequently asked questions
Do I need a registered business to accept eSewa or Khalti payments?
Plan on it. eSewa's developer documentation is written for business houses and organisations, Khalti asks merchants to complete a KYC form before it removes its test limits, and ConnectIPS merchants are registered through a bank. Ask each provider for its current document list before you start.
How much do eSewa, Khalti and ConnectIPS charge?
Their developer documentation does not publish merchant fees; fees are agreed in the merchant contract. Ask each provider for a written rate before you sign, and include it in your product prices or checkout totals.
Can I test payments before I have a live merchant account?
Yes. eSewa publishes test credentials for its ePay system, and Khalti has a sandbox at dev.khalti.com with test Khalti IDs. In Khalti's sandbox, e-banking and card payments are not available; they are enabled after a successful integration.
Why does Khalti say the amount must be less than 200?
Khalti's documentation says that even after integration you cannot receive more than NPR 200 per transaction until you fill in its KYC form and contact its merchant team to remove the limit.
Want payments added to your website? Read about our e-commerce website development in Nepal, or ask for a free quote. We reply within one business day.