Hosting Nepal
Hosting Nepal
BlogWordPress Hosting
WordPress Hosting
8 min read· September 18, 2026

Seamlessly Integrate Khalti & eSewa with Your WordPress WooCommerce Store in Nepal

Learn how to integrate Khalti and eSewa payment gateways into your WordPress WooCommerce store, accepting payments via bank transfer and mobile wallets. Optimize your site with LiteSpeed caching and Elementor for a smooth Nepali e-commerce experience.

H

Hosting Nepal Editorial

Editorial Team · Updated Sep 18, 2026
Seamlessly Integrate Khalti & eSewa with Your WordPress WooCommerce Store in Nepal

Seamlessly Integrate Khalti & eSewa with Your WordPress WooCommerce Store in Nepal

For Nepali businesses looking to expand their online reach, integrating popular local payment gateways like Khalti and eSewa into their WordPress WooCommerce store is crucial. This guide provides a step-by-step approach to setting up these payment methods, ensuring a smooth transaction process for your customers. We'll also touch upon optimizing your site's performance using LiteSpeed caching and the Elementor page builder, essential for a successful e-commerce presence in Nepal.

Key Facts:

* Local Payment Dominance: Khalti and eSewa are widely used digital wallets in Nepal, essential for domestic online transactions. * WooCommerce Plugin: The official WooCommerce plugin facilitates the integration of various payment gateways. * LiteSpeed Caching: A powerful caching solution that significantly improves website speed and performance. * Elementor/Gutenberg: Popular WordPress page builders offering flexibility in website design. * Bank Transfer: A traditional yet still relevant payment method for many Nepali customers.

Setting Up Payment Gateways in WooCommerce

WooCommerce, the most popular e-commerce plugin for WordPress, offers flexibility in integrating payment gateways. While it has built-in options for international gateways, integrating local Nepali payment methods like Khalti and eSewa typically requires a third-party plugin. These plugins act as intermediaries, connecting your WooCommerce store to the respective payment gateway's API (Application Programming Interface).

Choosing the Right Plugin

Several plugins are available on the WordPress plugin repository and through third-party developers that support Khalti and eSewa integration. When selecting a plugin, consider the following:

* Compatibility: Ensure the plugin is compatible with your current WordPress and WooCommerce versions. * Reviews and Ratings: Check user reviews and ratings for reliability and support. * Developer Support: Look for plugins with active development and good customer support, especially important for Nepali businesses. * Features: Does it support direct integration, or does it redirect to the gateway's page? Does it handle refunds within WooCommerce?

For a seamless experience, Hosting Nepal recommends plugins that offer direct integration and are regularly updated. Many Nepali developers offer robust solutions for Khalti and eSewa, often available on platforms like CodeCanyon or directly from their websites.

Integrating Khalti and eSewa

Once you've chosen and installed a suitable plugin (e.g., 'Khalti Payment Gateway for WooCommerce' or 'eSewa Payment Gateway for WooCommerce'), the integration process generally involves:

1. Obtaining API Credentials: Log in to your Khalti and eSewa merchant accounts to find your API keys (e.g., Merchant ID, Secret Key, Public Key). These are essential for authenticating your store with the payment gateways. 2. Configuring Plugin Settings: Navigate to WooCommerce > Settings > Payments in your WordPress dashboard. You should see the newly added Khalti and eSewa options. Click on 'Manage' or 'Configure' for each. 3. Entering API Credentials: Input the API keys you obtained from Khalti and eSewa into the respective fields in the plugin settings. Ensure you are using the correct keys for test/sandbox mode and live/production mode. 4. Setting Up Test Mode: Before going live, enable test mode to simulate transactions. This allows you to verify that the integration is working correctly without actual money being transferred. You can use test card numbers or specific test credentials provided by the gateways. 5. Configuring Payment Options: Define how the payment options will appear to your customers. You can often set titles, descriptions, and choose whether to display them on the checkout page or in a separate payment selection area. 6. Enabling Bank Transfer: Most WooCommerce setups include a 'Direct Bank Transfer' option. You can configure this by providing your bank account details (Account Name, Account Number, Bank Name, Branch) in the WooCommerce settings. This allows customers to make payments directly to your bank account. 7. Testing Live Transactions: Once you're confident with test mode, switch to live mode. Make a small purchase yourself using Khalti, eSewa, and bank transfer to confirm everything works as expected. Check that the order status updates correctly in WooCommerce.

Optimizing Your WooCommerce Store with LiteSpeed and Elementor

Beyond payment gateway integration, website performance is paramount for e-commerce success in Nepal. Utilizing tools like LiteSpeed Cache and a page builder like Elementor can significantly enhance user experience and conversion rates.

Leveraging LiteSpeed Cache

LiteSpeed Cache is a powerful server-level caching solution that dramatically speeds up your WordPress website. For optimal performance, using a LiteSpeed web server is recommended. Hosting Nepal's hosting plans often come with LiteSpeed servers pre-configured, making LiteSpeed Cache plugin integration seamless.

* Installation: Install the LiteSpeed Cache plugin from the WordPress repository. * Configuration: The plugin offers numerous optimization features, including page caching, object caching, database optimization, image optimization, and CSS/JavaScript minification. For WooCommerce, pay close attention to caching rules to ensure dynamic content (like cart and checkout pages) is handled correctly. * WooCommerce Cache: LiteSpeed Cache has specific settings to manage caching for WooCommerce pages, preventing issues with cart updates and checkout processes. Ensure these are configured appropriately.

Enhancing Design with Elementor

Elementor is a popular drag-and-drop page builder that allows for intuitive website design without coding. It's excellent for creating visually appealing product pages, landing pages, and custom checkout experiences.

* Theme Compatibility: Ensure your WordPress theme is compatible with Elementor. * Page Design: Use Elementor to design your product listings, individual product pages, and even customize the WooCommerce checkout page for a branded experience. * Performance Considerations: While Elementor offers great design flexibility, be mindful of the number of widgets and complex elements used on a single page, as this can impact loading times. Combine this with LiteSpeed caching for the best results.

Frequently Asked Questions (FAQ)

How do I get API keys for Khalti and eSewa?

You need to register as a merchant on the official Khalti and eSewa websites. After verification, you will be provided with a merchant dashboard where you can generate your API keys for integration into your WooCommerce store.

Can I integrate multiple payment gateways with WooCommerce?

Yes, WooCommerce allows you to integrate multiple payment gateways simultaneously. You can offer customers a choice between Khalti, eSewa, bank transfer, and other options by installing and configuring the relevant plugins.

Is LiteSpeed Cache compatible with all WordPress themes and plugins?

LiteSpeed Cache is generally highly compatible. However, complex themes or plugins that heavily rely on dynamic content or specific server configurations might require fine-tuning. It's always best to test thoroughly after activation.

How do I ensure my WooCommerce site is secure when accepting payments?

Use reputable payment gateway plugins, keep WordPress, WooCommerce, and all plugins updated, enable HTTPS (SSL certificate), and consider a Web Application Firewall (WAF). Hosting Nepal provides robust security features on its managed WordPress hosting plans.

What are the typical transaction fees for Khalti and eSewa in Nepal?

Transaction fees can vary and are subject to change by the payment providers. Generally, Khalti and eSewa have competitive rates for merchants in Nepal. It's advisable to check their official merchant service pages for the most current fee structure.

How long does it take to receive payments from Khalti and eSewa?

Settlement times usually range from 1-3 business days, depending on the payment gateway and your chosen payout schedule. Bank transfers may take slightly longer due to inter-bank processing times.

How-To Steps for Integrating Payment Gateways

Step 1: Install and Activate WooCommerce

If you haven't already, install and activate the WooCommerce plugin from your WordPress dashboard (Plugins > Add New).

Step 2: Obtain Merchant API Credentials

Register as a merchant with Khalti and eSewa. Log in to your merchant dashboards and retrieve your API keys (e.g., Merchant ID, Secret Key).

Step 3: Install a Payment Gateway Plugin

Search for and install a trusted Khalti and eSewa payment gateway plugin for WooCommerce (e.g., via Plugins > Add New).

Step 4: Configure Khalti and eSewa Settings

Navigate to WooCommerce > Settings > Payments. Find the Khalti and eSewa options, click 'Manage', and enter your API credentials and other required settings.

Step 5: Configure Direct Bank Transfer

In the same Payments section, enable and configure the 'Direct Bank Transfer' option by providing your bank account details.

Step 6: Enable Test Mode and Test Transactions

Activate test mode within the plugin settings. Place test orders using Khalti, eSewa, and bank transfer to ensure the integration works correctly.

Step 7: Switch to Live Mode

Once testing is successful, disable test mode and enable live mode in the plugin settings to start accepting real payments.

Step 8: Install and Configure LiteSpeed Cache

Install the LiteSpeed Cache plugin. Configure its basic settings, paying attention to WooCommerce-specific caching options.

Step 9: Design Your Store with Elementor

Use Elementor to create or customize your product pages, checkout page, and other important store sections for a professional look.

Step 10: Perform Final Live Testing

Make a small, real purchase using each payment method to confirm successful transaction processing and order status updates in WooCommerce.

By following these steps, Nepali businesses can effectively integrate Khalti and eSewa into their WordPress WooCommerce stores, enhancing customer convenience and boosting sales. Coupled with performance optimizations like LiteSpeed caching and a user-friendly design with Elementor, your online store will be well-positioned for success in the growing Nepali e-commerce market.

Tags
WordPress
woocommerce
nepali payments
khalti
esewa
ecommerce nepal
lite speed cache
elementor
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

Key Facts:

Setting Up Payment Gateways in WooCommerce

Choosing the Right Plugin

Integrating Khalti and eSewa

Optimizing Your WooCommerce Store with LiteSpeed and Elementor

Leveraging LiteSpeed Cache

Enhancing Design with Elementor

Frequently Asked Questions (FAQ)

How do I get API keys for Khalti and eSewa?

Can I integrate multiple payment gateways with WooCommerce?

Is LiteSpeed Cache compatible with all WordPress themes and plugins?

How do I ensure my WooCommerce site is secure when accepting payments?

What are the typical transaction fees for Khalti and eSewa in Nepal?

How long does it take to receive payments from Khalti and eSewa?

How-To Steps for Integrating Payment Gateways

Step 1: Install and Activate WooCommerce

Step 2: Obtain Merchant API Credentials

Step 3: Install a Payment Gateway Plugin

Step 4: Configure Khalti and eSewa Settings

Step 5: Configure Direct Bank Transfer

Step 6: Enable Test Mode and Test Transactions

Step 7: Switch to Live Mode

Step 8: Install and Configure LiteSpeed Cache

Step 9: Design Your Store with Elementor

Step 10: Perform Final Live Testing

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.

Integrate Khalti & eSewa with WordPress WooCommerce Nepal