AJArjun JhukalWeb developerBook a demo

Guide · 7 min read · · by Arjun Jhukal

How eSewa and Khalti payments work on a website, in plain words

What really happens between "Pay with eSewa" and "Order confirmed" — and the mistakes that cost shops money.

If you sell to people in Nepal, your website needs eSewa and Khalti. Few shoppers here pay online with a card, and many buyers outside Kathmandu valley still prefer cash on delivery. A checkout that only takes cards loses most of your customers before they even try.

This guide explains how wallet payments actually work on a website, step by step, in plain words. You do not need to be technical. By the end you will know what to ask a developer, what you need to prepare, and the three mistakes that quietly cost shops money.

What is a payment gateway?

A payment gateway is the service that moves money from a shopper to your business during an online purchase. In Nepal, the ones most people use are digital wallets — eSewa and Khalti — which people already have on their phones to pay electricity bills and top up mobile data.

Your website does not hold the shopper's money or their PIN. It hands the shopper over to the wallet, the wallet takes the payment, and then the website checks with the wallet that it really happened. That last part is the one that matters, and it is the one cheap integrations skip.

What happens when someone pays, step by step

Say a customer in Butwal is buying a hoodie from a Kathmandu streetwear brand. Here is what happens:

  1. The shopper clicks Pay with eSewa (or Khalti) at checkout.
  2. Your website sends them to the wallet's own page, with the amount and an order number.
  3. They log in to their wallet and approve the payment. Your website never sees their PIN or password.
  4. The wallet sends them back to your website.
  5. Your server asks the wallet directly: did this payment really succeed, and for this amount? Only a yes from the wallet marks the order as paid.
  6. The order is confirmed, stock is reduced, and the owner gets a WhatsApp alert.

Step 5 is called verification. A website that trusts the return link alone can be tricked: someone could copy the "success" address and paste it in without paying. Verification closes that hole. Every store I build — and the eSewa and Khalti payments feature itself — works this way.

From the shopper's side, all of this takes less than a minute. They tap a button, approve the payment in an app they already trust, and land back on your site with an order number. The checks happen quietly in the background. A good integration feels boring to the customer, and boring is exactly what you want when money is involved.

What you need before you start

  • A registered business with PAN (and VAT if it applies to you). The wallets do not open merchant accounts for unregistered sellers.
  • A merchant account with eSewa, and a separate one with Khalti. A merchant account is a business account that can receive payments from websites. Each wallet gives you a merchant code and a secret key once approved. eSewa charges about NPR 25,000 and Khalti about NPR 30,000 to open a merchant account (2026 figures — confirm the current fee with each wallet before you budget).
  • A bank account in the business's name, where the wallets settle your money.
  • A developer who tests with real small payments before launch, not just the test mode.

Apply for the merchant accounts first, before the website is even designed. Approval takes time and needs documents, and it is the most common reason a finished store sits waiting to launch.

eSewa, Khalti, or both?

Both. Shoppers pick the wallet they already use, and asking them to install a new one is a fast way to lose the sale. Adding the second wallet to a site that already has the first is a small extra, because the order and verification logic is shared. The full comparison — including how money moves between the two — is in eSewa vs Khalti.

What about Fonepay, bank QR or cards? Cards through Stripe are already supported in Next CMS for buyers abroad — useful for a trekking agency selling to tourists. Other gateways can be added if your customers ask for them.

Cash on delivery still matters

Keep cash on delivery (COD). Many shoppers will not pay in advance to a shop they do not know yet, especially outside the valley. COD is how a new brand earns its first orders from Dharan or Nepalgunj.

But COD has a cost: parcels that are refused at the door. A good store lets you set limits, for example COD only under a certain amount, so big orders are paid by wallet. That is how Bazaar handles it. You can also offer COD only for some areas, while you learn which ones work.

Deposits for bookings, not just shop orders

Wallet payments are not only for carts. A Pokhara trekking agency might want a deposit to hold a group's dates. A wedding planner might want an advance before blocking a Mangsir date. The booking enquiries engine supports deposits online, and when the advance is paid in cash or by bank transfer instead, staff record it against the booking so nothing is forgotten.

Most businesses start enquiry-first — the customer sends dates and group size, you confirm personally — and switch on online deposits later, once they trust the flow. Utsav Events and Kora Travel are both set up this way. Either way, the same rule holds: a payment counts only once the wallet confirms it, and it is written once in the order ledger, never edited.

Three mistakes I see often

  • Emptying the cart before payment is confirmed. If the payment fails or the shopper's balance is short, they come back to an empty cart and usually leave. Keep the cart until the wallet says PAID.
  • Editing payment records. Payments should be permanent entries; a wrong one is cancelled and re-entered, never changed. That is how the order ledger works, and it is what keeps your books and your store in agreement.
  • No alert for the owner. A paid order sitting unseen for a day is a lost customer. A WhatsApp alert fixes it — and if WhatsApp is down, the order still goes through.

More mistakes worth avoiding

  • Testing only in test mode. Test mode proves the code runs; one real small payment proves the money arrives.
  • Keeping the secret key in the browser. The secret key belongs on the server only. If it shows up in your page's code, anyone can see it.
  • No record of failed payments. When a customer calls saying "I paid", you need to look it up in seconds.
  • Refunds that don't restock. A refunded order should put the item back on the shelf automatically.

A mini case story: tips on a live stream

Payments are not only for shops. Nepali Superchat lets viewers tip YouTubers with eSewa and Khalti while a stream is live. The money moves exactly as above — out to the wallet, back, then verified — and only a verified tip triggers the on-screen alert through the OBS overlay. That matters on a live show: an alert for a fake tip would be embarrassing in front of thousands of viewers. Read the full story in how Nepali YouTubers take eSewa tips.

How long does payment integration take?

The building part is short when it starts from working code. Every store I build — clothing, beauty, electronics — already takes eSewa, Khalti and COD this way, so the work is plugging in your keys and testing. The waiting part is the merchant approval from each wallet, which is outside anyone's control. Plan for it.

What drives the cost of payment integration

  • Whether the site already has an order system, or one must be built.
  • How many methods you want: eSewa, Khalti, COD, cards.
  • Special rules: COD limits, deposits for bookings, partial payments, payouts to sellers on a marketplace.
  • Refunds, stock and reports tied into the order ledger.

For the bigger picture on pricing, read what a website costs in Nepal. If you are opening your first shop, how to start an online store in Nepal puts payments in order with everything else.

Before launch, run through this short check with your developer: one real eSewa payment, one real Khalti payment, one COD order, one failed payment (cancel on the wallet page), and one refund. Watch what happens to the cart, the stock, the order status and your phone each time. Five small tests, done once, prevent most of the payment problems shops call about later.

Questions to ask a developer

  1. Does the server verify every payment with the wallet before marking it paid?
  2. Where is the secret key stored?
  3. What happens to the cart if the payment fails?
  4. Can I set limits on cash on delivery?
  5. Will we test with a real small payment before launch?
  6. Can I see all payments, failed ones too, in the dashboard?

Questions

How do I integrate eSewa on my website?

Open an eSewa merchant account for your registered business, get your merchant code and secret key, and have your developer connect them so every payment is verified by the server. See eSewa and Khalti payments.

Is eSewa integration safe for my customers?

Yes, when done properly: customers enter their details only on eSewa's own page, and your server confirms every payment with eSewa before the order is marked paid.

Can I accept both eSewa and Khalti?

Yes, and you should. Shoppers pick whichever wallet they use. See eSewa vs Khalti.

Can I send money from eSewa to Khalti?

Look for a wallet-to-wallet option in your app's send-money menu; if it is not there, move the money from eSewa to your bank account, then load Khalti from that bank. Details in eSewa vs Khalti.

Do I need a registered business to accept eSewa and Khalti?

Yes. Both wallets require a registered business for a merchant account.

Should my online store offer cash on delivery?

Usually yes, with limits. COD wins first-time buyers, and a cap on the amount protects you from costly refused parcels.

Type your own question…➤

Products in this guide

In production
Live-stream tips with eSewa & Khalti

Nepali Superchat

Let your viewers tip you in rupees, live on stream, with eSewa and Khalti.

Request a demo →

Keep reading

See it working before you decide.

A 20-minute call: I share my screen, walk you through the product that fits your business, and answer every question. No slides, no pressure.