Hosting Nepal
Hosting Nepal
BlogNepal Business
Nepal Business
7 min read· June 24, 2026

Setting Up Your Online Payment Gateway: A Complete Nepal Guide for Khalti & eSewa

Setting up online payment gateways like Khalti and eSewa is crucial for Nepali businesses to accept digital payments. This guide provides a step-by-step process for integrating these popular services into your website.

H

Hosting Nepal Editorial

Editorial Team · Updated Jun 24, 2026
Setting Up Your Online Payment Gateway: A Complete Nepal Guide for Khalti & eSewa

Setting Up Your Online Payment Gateway: A Complete Nepal Guide for Khalti & eSewa

Setting up online payment gateways like Khalti and eSewa is crucial for Nepali businesses, enabling them to accept digital payments seamlessly. This guide provides a step-by-step process for integrating these popular services into your website, empowering your Nepali e-commerce, SMB, or Kathmandu startup to thrive in the digital economy.

Key facts: * Khalti and eSewa are the leading digital wallets and payment gateways in Nepal. * Integration typically involves API keys, webhooks, and SDKs. * Most Nepali e-commerce platforms and content management systems (CMS) like WordPress have dedicated plugins. * Transaction fees generally range from 1% to 2% for local payments. * Hosting Nepal provides secure hosting environments optimized for payment gateway integrations.

Overview of Online Payment Gateways in Nepal

For any Nepali e-commerce, startup, or SMB aiming to succeed online, accepting digital payments is non-negotiable. Nepal's digital payment landscape is dominated by mobile wallets and bank transfers, with Khalti and eSewa leading the charge. These platforms offer convenience for customers and streamline transaction processing for businesses, reducing reliance on cash-on-delivery models.

According to a 2025 report by the Nepal Telecommunications Authority (NTA), digital payment transactions in Nepal have grown by over 35% year-on-year, indicating a strong shift towards a cashless economy. This makes robust payment gateway integration a priority for any business operating in Nepal.

Why Khalti and eSewa are Essential for Nepali Businesses

Khalti and eSewa are not just payment methods; they are integral parts of the Nepali digital ecosystem. They allow customers to pay directly from their mobile wallets, linked bank accounts, or even through various agents across the country. For a Kathmandu startup, integrating these means tapping into a vast user base that prefers mobile payments for everything from utility bills to online shopping. This significantly enhances customer convenience and broadens your market reach.

Furthermore, these platforms offer secure transactions, reducing the risk associated with handling cash. They also provide detailed transaction reports, simplifying accounting and reconciliation for your Nepal SMB.

Step-by-Step Guide to Integrating Khalti and eSewa

Integrating Khalti and eSewa into your website involves a series of technical and administrative steps. While the specifics might vary slightly between platforms, the core process remains consistent.

1. Registration and Merchant Account Setup

Before any technical integration, you need to register your business with Khalti and eSewa and set up a merchant account. This process typically requires submitting business registration documents, PAN/VAT certificates, and bank account details. Both platforms have dedicated merchant portals for this purpose.

* Khalti Merchant Registration: Visit the Khalti Business portal and follow the instructions for merchant sign-up. You'll need to provide your business details, contact information, and banking particulars. * eSewa Merchant Registration: Similarly, navigate to the eSewa Business section. The registration process is straightforward, requiring similar documentation to verify your business entity.

Upon successful verification, you will receive your merchant ID, API keys (Public Key and Secret Key), and access to their developer documentation. Keep these credentials secure, as they are essential for integration.

2. Choosing Your Integration Method

Khalti and eSewa offer various integration methods depending on your website's platform and technical expertise:

* Plugins/Extensions: For popular CMS platforms like WordPress (especially with WooCommerce), Shopify, or OpenCart, dedicated plugins are often available. These are the easiest to implement for a Nepal SMB. * API Integration: For custom-built websites or specific requirements, direct API (Application Programming Interface) integration offers maximum flexibility. This involves coding to interact directly with their payment gateway services. * SDKs (Software Development Kits): Both platforms provide SDKs for various programming languages (e.g., PHP, Python, Java), simplifying the development process for those opting for API integration.

3. Implementing the Payment Gateway

This is the technical phase where you connect your website to the payment gateway. Hosting Nepal ensures your website's server environment is secure and compatible with these integrations.

#### For WordPress/WooCommerce (Most Common for Nepali E-commerce):

1. Install Plugin: Search for "Khalti for WooCommerce" or "eSewa for WooCommerce" in your WordPress dashboard's plugin section. Install and activate the relevant plugin. 2. Configure Settings: Navigate to WooCommerce > Settings > Payments. You'll find Khalti and eSewa listed. Enable them and click "Manage" or "Setup." 3. Enter API Credentials: Input your Public Key, Secret Key, and Merchant ID obtained during registration. Configure other settings like payment titles, descriptions, and sandbox/live modes. 4. Test Transactions: Crucially, perform test transactions using the provided sandbox credentials to ensure everything works correctly before going live.

#### For Custom Websites (API Integration):

1. Refer to Documentation: Thoroughly review the Khalti Developer Documentation or eSewa Developer Documentation. These guides provide detailed instructions on API endpoints, request/response formats, and security protocols. 2. Implement API Calls: Write code to send payment requests to the gateway's API. This involves sending transaction details (amount, product info, customer details) and receiving a response. 3. Handle Callbacks/Webhooks: Implement callback URLs or webhooks to receive real-time payment status updates from the gateway. This is vital for confirming successful payments and updating order statuses on your Nepali e-commerce site. 4. Security Measures: Ensure all communications are secure (HTTPS) and sensitive data is handled according to PCI DSS (Payment Card Industry Data Security Standard) best practices. Hosting Nepal's SSL certificates and robust security features aid in this.

Common Issues and Troubleshooting

Integrating payment gateways can sometimes present challenges. Here are common issues and their solutions:

* Invalid API Keys: Double-check that you've entered the correct Public Key, Secret Key, and Merchant ID. Ensure no extra spaces or characters are present. * Callback URL Mismatch: The callback URL configured in your merchant portal must exactly match the URL your website sends. Any discrepancy will prevent payment status updates. * Firewall Blocks: Your hosting server's firewall might be blocking communication with the payment gateway. If you're with Hosting Nepal, our support team can help configure firewall rules. For other providers, you might need to whitelist the payment gateway's IP addresses. * Incorrect Currency/Amount Format: Ensure the currency (NPR) and amount are sent in the correct format as specified by the API documentation. Issues often arise with decimal places or currency symbols. * SSL Certificate Errors: Payment gateways require a valid SSL certificate (HTTPS) for secure communication. Ensure your website has a properly installed and active SSL certificate. Hosting Nepal offers free SSL certificates with all hosting plans.

Optimizing for Nepali E-commerce and User Experience

Beyond basic integration, optimizing your payment gateway setup for the Nepali audience is key. For a Kathmandu startup, this means ensuring a smooth, trustworthy checkout experience.

* Clear Payment Options: Clearly display Khalti and eSewa logos on your checkout page. Users in Nepal are familiar with these brands, and their presence builds trust. * Mobile Responsiveness: A significant portion of online transactions in Nepal occurs via mobile. Ensure your checkout process, including the payment gateway redirect pages, is fully mobile-responsive. * Error Handling: Provide user-friendly error messages if a payment fails, guiding customers on how to resolve the issue (e.g., "Insufficient balance," "Transaction declined by bank"). * Fast Loading Times: Optimize your website's performance. Slow loading checkout pages can lead to cart abandonment. Hosting Nepal's optimized servers and CDN options can significantly improve speed.

Integrating Khalti and eSewa is a vital step for any Nepal SMB looking to expand its digital footprint. By following these steps and leveraging reliable hosting from providers like Hosting Nepal, you can offer a seamless and secure payment experience to your customers, driving growth for your Nepali e-commerce venture.

Tags
khalti integration
esewa integration
nepal payment gateway
nepali e-commerce
kathmandu startup
nepal smb
online payments
web hosting nepal
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

Overview of Online Payment Gateways in Nepal

Why Khalti and eSewa are Essential for Nepali Businesses

Step-by-Step Guide to Integrating Khalti and eSewa

1. Registration and Merchant Account Setup

2. Choosing Your Integration Method

3. Implementing the Payment Gateway

Common Issues and Troubleshooting

Optimizing for Nepali E-commerce and User Experience

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.

Setup Khalti & eSewa Payment Gateway in Nepal | Hosting Nepal