Hosting Nepal
Hosting Nepal
BlogNepal Business
Nepal Business
8 min read· May 24, 2026

Setting Up Your Nepali E-commerce Store: A Complete Guide to Khalti & eSewa Integration

Integrating Khalti and eSewa into your Nepali e-commerce store is crucial for local payments. This guide walks you through setting up these popular payment gateways for your .np domain, ensuring a smooth transaction experience for your customers.

H

Hosting Nepal Editorial

Editorial Team · Updated May 27, 2026 · 4 views
Setting Up Your Nepali E-commerce Store: A Complete Guide to Khalti & eSewa Integration

Setting Up Your Nepali E-commerce Store: A Complete Guide to Khalti & eSewa Integration

Integrating Khalti and eSewa is essential for any Nepali e-commerce store to accept local digital payments, providing convenience for customers and boosting sales for your business.

Key facts: * Khalti and eSewa are the most popular digital wallets in Nepal. * Integration typically involves a plugin for platforms like WordPress/WooCommerce or custom API development. * Accepting local payment methods significantly improves conversion rates for Nepali e-commerce businesses. * Many payment gateways also support bank transfers, a common method in Nepal.

Why Local Payment Gateways are Crucial for Nepali E-commerce

For any Nepal SMB or Kathmandu startup venturing into online sales, understanding the local payment landscape is paramount. While international credit cards are used, the vast majority of Nepali consumers prefer digital wallets like Khalti and eSewa, along with direct bank transfers. According to a 2025 report by the Nepal Telecommunications Authority (NTA), digital wallet usage has surged by 45% in the last two years, making them indispensable for online transactions. Without these integrations, your Nepali e-commerce store risks alienating a significant portion of its potential customer base, leading to abandoned carts and lost revenue.

Integrating these gateways not only provides convenience but also builds trust. Customers are more likely to complete purchases when they see familiar and secure payment options. This is especially true for businesses operating with a .np or .com.np domain, as it reinforces a local identity and commitment to serving the Nepali market. Hosting Nepal provides robust hosting solutions that are fully compatible with these payment gateway integrations, ensuring your website runs smoothly and securely.

Understanding Khalti and eSewa

Khalti and eSewa are the two dominant mobile payment service providers in Nepal. They allow users to pay bills, transfer money, and make online purchases directly from their smartphones. Both platforms offer merchant services, enabling businesses to accept payments through their websites or apps. Their widespread adoption, fueled by aggressive marketing and user-friendly interfaces, makes them non-negotiable for any successful Nepali e-commerce venture.

Beyond digital wallets, many payment gateway solutions in Nepal also facilitate direct bank transfers. This method, though slightly less instant than digital wallets, remains a trusted option for larger transactions or for customers who prefer traditional banking channels. Ensuring your payment setup includes these options caters to a broader audience.

Step-by-Step Guide to Integrating Khalti and eSewa

Setting up Khalti and eSewa involves a few key steps, whether you're using a popular e-commerce platform like WooCommerce or developing a custom solution. This guide focuses on the most common scenario: a WordPress/WooCommerce store, which is widely used by Nepali e-commerce operators.

Prerequisites for Integration

Before you begin, ensure you have the following:

* An active e-commerce website (e.g., WordPress with WooCommerce) hosted with a reliable provider like Hosting Nepal. * A registered business in Nepal and a valid .np or .com.np domain. * Merchant accounts with both Khalti and eSewa. This usually involves submitting business registration documents, PAN/VAT certificates, and bank account details. The approval process can take a few business days. * API keys and credentials provided by Khalti and eSewa after your merchant account is approved. Keep these secure.

Integration Steps for WooCommerce

WooCommerce, being a highly customizable platform, offers dedicated plugins for Khalti and eSewa, simplifying the integration process. These plugins handle the technical details, allowing you to focus on your business.

1. Install WooCommerce: If you haven't already, install and set up WooCommerce on your WordPress website. This will provide the core e-commerce functionality. 2. Obtain Khalti & eSewa Merchant Accounts: Apply for and get approved for merchant accounts with both Khalti and eSewa. You will receive API keys (Public Key, Secret Key for Khalti; Merchant ID, Secret Key for eSewa). 3. Install Payment Gateway Plugins: Search for "Khalti for WooCommerce" and "eSewa for WooCommerce" plugins in the WordPress plugin directory or download them from the respective payment gateway websites. Install and activate them. 4. Configure Plugin Settings: Navigate to WooCommerce > Settings > Payments. You will see Khalti and eSewa listed as available payment methods. Click "Manage" for each. * Khalti Configuration: Enter your Khalti Public Key and Secret Key in the designated fields. You may also configure success/failure URLs and other display options. * eSewa Configuration: Enter your eSewa Merchant ID and Secret Key. Configure the success and failure callback URLs as provided by eSewa. 5. Enable Payment Gateways: Ensure both Khalti and eSewa are enabled as payment options. You can also set their order of appearance on your checkout page. 6. Test Transactions: Crucially, perform test transactions using both Khalti and eSewa. Most gateways provide a sandbox or test mode. Use test credentials (if available) or make small real transactions to ensure everything works correctly from cart to payment confirmation. 7. Go Live: Once testing is complete and successful, switch off any sandbox/test modes and ensure your live API keys are correctly entered.

For custom-built e-commerce platforms, you would typically integrate directly with the Khalti and eSewa APIs. This requires developer expertise to handle API calls, secure data transmission, and callback URLs. Hosting Nepal offers managed hosting services that can support such custom integrations, providing the necessary server environment and security.

Common Issues and Troubleshooting

Integrating payment gateways can sometimes present challenges. Here are some common issues faced by Nepali e-commerce operators and how to troubleshoot them:

API Key Errors

* Issue: Payment fails with an "Invalid API Key" or similar error. * Solution: Double-check that you have entered the correct Public/Secret Keys or Merchant ID/Secret Keys provided by Khalti and eSewa. Ensure there are no extra spaces or typos. API keys are case-sensitive.

Callback URL Mismatches

* Issue: After payment, the customer is not redirected back to your website, or the order status isn't updated. * Solution: Verify that the callback URLs configured in your Khalti/eSewa merchant dashboard match the URLs specified in your WooCommerce plugin settings. These URLs tell the payment gateway where to send the customer back after a successful or failed transaction.

Firewall or Security Blocks

* Issue: Payments consistently fail, or the gateway cannot communicate with your website. * Solution: Your web hosting firewall (e.g., ModSecurity) might be blocking the payment gateway's IP addresses. Contact your hosting provider, like Hosting Nepal, to check firewall logs and whitelist necessary IP ranges. Ensure your SSL certificate is correctly installed and active, as payment gateways require secure HTTPS connections.

Plugin Conflicts

* Issue: The payment gateway plugin causes other parts of your website to malfunction. * Solution: Deactivate other plugins one by one to identify conflicts. Update all plugins and WordPress to their latest versions. If a conflict persists, consider reaching out to the plugin developer or a WordPress expert.

Transaction Limits and KYC

* Issue: Payments are declined, especially larger ones. * Solution: Ensure your Khalti and eSewa merchant accounts have completed all Know Your Customer (KYC) requirements. Unverified accounts may have transaction limits. Contact their support for clarification on limits and verification status.

Optimizing Your Payment Experience

Beyond just integrating, optimizing your payment experience can significantly impact conversion rates for your Nepali e-commerce store. According to a study by Marketminds Investment Group, a smooth checkout process can increase conversions by up to 15%.

* Clear Instructions: Provide clear, concise instructions on your checkout page for using Khalti and eSewa. Many customers appreciate a quick guide. * Prominent Logos: Display Khalti and eSewa logos prominently on your product pages and checkout to build trust and signal local payment options. * Mobile Responsiveness: Ensure your entire checkout process, including payment gateway redirects, is fully responsive and works flawlessly on mobile devices. A significant portion of online shopping in Nepal happens via smartphones. * Security Badges: Display SSL certificates and other security badges to reassure customers that their payment information is safe. Hosting Nepal offers free SSL certificates with all its hosting plans. * Alternative Options: While Khalti and eSewa are primary, also consider integrating other local options like ConnectIPS or direct bank transfer details, especially for higher-value items. This caters to diverse customer preferences.

Integrating Khalti and eSewa is a fundamental step for any Nepali e-commerce business looking to succeed in the local market. By following this guide, your Kathmandu startup, SMB, or e-commerce store can provide a seamless and secure payment experience, driving growth and customer satisfaction. Hosting Nepal is ready to support your online journey with reliable hosting and expert assistance.

Tags
khalti
esewa
nepali e-commerce
payment gateway
wordpress woocommerce
nepal smb
kathmandu startup
.np domain
H
Written by
Hosting Nepal Editorial
Editorial Team

Part of the Hosting Nepal editorial team covering web hosting, domains, VPS, and local payment workflows for Nepali businesses. Based in Kathmandu.

Ready to get started?

Launch your website with Hosting Nepal today.


On this page

Why Local Payment Gateways are Crucial for Nepali E-commerce

Understanding Khalti and eSewa

Step-by-Step Guide to Integrating Khalti and eSewa

Prerequisites for Integration

Integration Steps for WooCommerce

Common Issues and Troubleshooting

API Key Errors

Callback URL Mismatches

Firewall or Security Blocks

Plugin Conflicts

Transaction Limits and KYC

Optimizing Your Payment Experience

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.