Hosting Nepal
Hosting Nepal
BlogNepal Business
Nepal Business
8 min read· July 18, 2026

How to Integrate Khalti and eSewa Payments in WordPress & WooCommerce: A Step-by-Step Guide for Nepali Businesses

Integrate Khalti and eSewa into your Nepali e-commerce site using WordPress and WooCommerce to offer local payment options. This guide covers plugins, setup, and testing for seamless transactions.

H

Hosting Nepal Editorial

Editorial Team · Updated Jul 18, 2026
How to Integrate Khalti and eSewa Payments in WordPress & WooCommerce: A Step-by-Step Guide for Nepali Businesses

How to Integrate Khalti and eSewa Payments in WordPress & WooCommerce: A Step-by-Step Guide for Nepali Businesses

Integrating Khalti and eSewa into your WordPress and WooCommerce store is crucial for any Nepali e-commerce business, enabling local customers to pay conveniently. This guide provides a step-by-step approach to setting up these popular payment gateways, ensuring your online store in Kathmandu can accept payments efficiently.

Key facts: * Khalti and eSewa are leading digital wallets in Nepal. * WooCommerce is the most popular e-commerce platform for WordPress. * Dedicated plugins simplify integration for Nepali SMBs. * Offering local payment options significantly boosts conversion rates. * Hosting Nepal provides optimized hosting for e-commerce sites.

Overview of Digital Payments in Nepal for SMBs

Digital payment methods like Khalti and eSewa have revolutionized how Nepali businesses operate, especially for small and medium-sized businesses (SMBs) and startups. According to a 2025 report by the Nepal Telecommunications Authority (NTA), digital wallet transactions have seen a 40% year-on-year growth, highlighting their widespread adoption. For any Nepali e-commerce venture, offering these payment options is no longer a luxury but a necessity.

WordPress, paired with the powerful WooCommerce plugin, provides a robust and flexible platform for building online stores. Integrating local payment gateways like Khalti and eSewa directly into your WooCommerce checkout process ensures a smooth and familiar experience for your customers, reducing cart abandonment and increasing sales. Many Kathmandu startups have seen significant improvements in their payment collection efficiency after adopting these integrations.

Why Khalti and eSewa are Essential for Nepali E-commerce

Khalti and eSewa are not just payment gateways; they are integral parts of daily life for millions of Nepalis. They offer convenience, security, and accessibility, allowing customers to pay directly from their mobile phones or bank accounts linked to these wallets. For businesses, this means:

* Wider Customer Reach: Tapping into the large user bases of both platforms. * Faster Transactions: Instant payment confirmations for quicker order processing. * Reduced Cash Handling: A more secure and efficient way to manage finances. * Trust and Familiarity: Customers are more likely to complete purchases when they see trusted local payment options.

In addition to digital wallets, offering traditional bank transfer options is also vital for customers who prefer direct banking or for larger transactions. Hosting Nepal ensures your website has the performance and security needed to handle these sensitive transactions reliably.

Step-by-Step Integration Guide for Khalti and eSewa

Integrating Khalti and eSewa into your WordPress and WooCommerce store involves a few key steps, primarily through dedicated plugins. Before you begin, ensure you have an active Khalti merchant account and an eSewa merchant account. You will need API keys or merchant credentials from both platforms.

Step 1: Prepare Your WordPress and WooCommerce Environment

Ensure your WordPress installation is up-to-date and WooCommerce is installed and activated. You should also have a secure hosting environment, such as the optimized WordPress hosting solutions offered by Hosting Nepal, which provides SSL certificates and robust security features essential for handling payment data. A stable internet connection from providers like WorldLink, Vianet, or Classic Tech is also important during setup.

Step 2: Install and Activate the Payment Gateway Plugins

For Khalti and eSewa, dedicated WooCommerce plugins are available. You can usually find these by searching directly within your WordPress dashboard or through the respective payment gateway's developer documentation.

1. Log in to your WordPress admin dashboard. 2. Navigate to Plugins > Add New. 3. Search for "Khalti WooCommerce" and "eSewa WooCommerce" (or similar official plugins). 4. Install and Activate both plugins.

Step 3: Configure Khalti Payment Gateway

Once the Khalti WooCommerce plugin is activated, you'll need to configure it with your merchant details.

1. Go to WooCommerce > Settings > Payments. 2. Find Khalti in the list of payment gateways and click Manage. 3. Enable the Khalti payment gateway. 4. Enter your Merchant ID, Secret Key, and Public Key. These credentials are provided by Khalti when you register for a merchant account. 5. Set the Title (e.g., "Pay with Khalti") and Description that customers will see during checkout. 6. Choose your Environment (Live for production, Test for development). 7. Save changes.

Step 4: Configure eSewa Payment Gateway

Similar to Khalti, configure the eSewa WooCommerce plugin with your merchant credentials.

1. Go to WooCommerce > Settings > Payments. 2. Find eSewa in the list of payment gateways and click Manage. 3. Enable the eSewa payment gateway. 4. Enter your Merchant Code/ID and Secret Key. These are provided by eSewa. 5. Set the Title (e.g., "Pay with eSewa") and Description. 6. Choose your Environment (Live for production, Test for development). 7. Save changes.

Step 5: Test Your Payment Gateways

Thorough testing is crucial before launching your payment options to customers. Create a few test products and go through the entire checkout process using both Khalti and eSewa in their test environments. Verify that payments are processed correctly and order statuses are updated in WooCommerce.

* Place a test order. * Select Khalti or eSewa as the payment method. * Complete the payment using test credentials (if provided by the gateway) or a small actual amount in a live environment. * Verify that the order status in WooCommerce changes to "Processing" or "Completed" upon successful payment. * Check your Khalti and eSewa merchant dashboards to confirm the transaction.

While digital wallets are popular, many customers still prefer direct bank transfers, especially for larger purchases. WooCommerce has a built-in Bank Transfer (BACS) option.

1. Go to WooCommerce > Settings > Payments. 2. Find Bank Transfer (BACS) and click Manage. 3. Enable the Bank Transfer gateway. 4. Enter your Account Name, Account Number, Bank Name, SWIFT Code (if applicable for international transfers), and Branch Name. 5. Provide clear Instructions for customers on how to make the transfer and what to include in the reference. 6. Save changes.

Common Issues and Troubleshooting

Integrating payment gateways can sometimes present challenges. Here are a few common issues and their solutions for Nepali e-commerce operators.

API Key/Credential Errors

* Issue: Payments fail with an "invalid API key" or "authentication failed" message. * Solution: Double-check your Merchant ID, Secret Key, and Public Key entered in the plugin settings. Ensure there are no typos, extra spaces, or incorrect characters. Confirm with Khalti or eSewa support that your merchant account is active and correctly configured for API access.

Incorrect Order Statuses

* Issue: Payments are successful, but the order status in WooCommerce doesn't update automatically. * Solution: This often indicates an issue with the callback URL or IPN (Instant Payment Notification) setup. Ensure your website's URL is correctly registered with Khalti and eSewa for IPN notifications. Check your server's firewall settings to ensure it's not blocking incoming notifications from the payment gateways. Your hosting provider, like Hosting Nepal, can assist with server-side configurations.

Plugin Conflicts

* Issue: The payment gateway plugin causes conflicts with other plugins or your theme. * Solution: Deactivate other plugins one by one to identify the conflicting one. If a conflict is found, look for alternative plugins or contact the plugin developer for support. Ensure all plugins and your theme are updated to their latest versions.

SSL Certificate Issues

* Issue: Payment gateways require a secure connection (HTTPS), but your site might not be fully secure. * Solution: Ensure you have a valid SSL certificate installed and properly configured on your website. All pages, especially checkout pages, must load over HTTPS. Hosting Nepal provides free SSL certificates with all hosting plans, making this an easy fix.

Optimizing Your E-commerce Site for Payments

Beyond integration, optimizing your entire e-commerce site is crucial for a seamless payment experience. This includes website speed, security, and user experience.

Website Speed and Performance

Slow loading times can lead to high cart abandonment rates. Optimize your WooCommerce store by:

* Using a reliable hosting provider like Hosting Nepal, which offers LiteSpeed web servers and SSD storage for faster performance. * Implementing caching solutions (e.g., LiteSpeed Cache, WP Rocket). * Optimizing images and using a Content Delivery Network (CDN). * Minifying CSS and JavaScript files.

Enhanced Security Measures

Protecting customer data is paramount. Ensure your site has:

* Strong SSL/TLS Encryption: Essential for all payment transactions. * Web Application Firewall (WAF): To protect against common web exploits. * Regular Malware Scans: To detect and remove malicious software. * PCI DSS Compliance: While direct compliance is often handled by the payment gateways, ensure your hosting environment supports a secure payment process.

User Experience (UX) on Checkout Pages

A smooth checkout process reduces friction. Consider:

* Clear Call-to-Actions: Make payment buttons obvious. * Minimal Form Fields: Only ask for essential information. * Mobile Responsiveness: Ensure the checkout works flawlessly on all devices. * Trust Badges: Displaying logos of trusted payment gateways like Khalti and eSewa, along with security badges, builds customer confidence.

Conclusion

Integrating Khalti and eSewa into your WordPress and WooCommerce store is a strategic move for any Nepali e-commerce business, including SMBs and Kathmandu startups. By following this step-by-step guide, you can provide your customers with familiar, secure, and convenient local payment options, significantly enhancing their shopping experience and boosting your sales. Remember to thoroughly test your integrations and maintain a secure, high-performing website with a trusted hosting partner like Hosting Nepal. As digital payments continue to grow in Nepal, staying ahead with these integrations will be key to your online success.

Tags
khalti
esewa
woocommerce
WordPress
nepali e-commerce
payment gateway nepal
smb nepal
kathmandu startup
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 Digital Payments in Nepal for SMBs

Why Khalti and eSewa are Essential for Nepali E-commerce

Step-by-Step Integration Guide for Khalti and eSewa

Step 1: Prepare Your WordPress and WooCommerce Environment

Step 2: Install and Activate the Payment Gateway Plugins

Step 3: Configure Khalti Payment Gateway

Step 4: Configure eSewa Payment Gateway

Step 5: Test Your Payment Gateways

Step 6: Add Bank Transfer Option (Optional but Recommended)

Common Issues and Troubleshooting

API Key/Credential Errors

Incorrect Order Statuses

Plugin Conflicts

SSL Certificate Issues

Optimizing Your E-commerce Site for Payments

Website Speed and Performance

Enhanced Security Measures

User Experience (UX) on Checkout Pages

Conclusion

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.

Integrate Khalti & eSewa in WooCommerce: Nepal Guide