This project is not covered by Drupal’s security advisory policy.
eSewa is a digital wallet based in Nepal providing instant online payment solutions. Recharge your mobile, pay for electricity (NEA), Internet, TV, water bills, insurance premium, buy tickets for bus, airlines, or movies, and enjoy other services.
Edit eSewa - Digital wallet is the custom module for Drupal 10 that extends the functionality of Drupal Commerce and integrates it with the eSewa Checkout payment gateway. It allows you to handle transactions securely using the eSewa payment platform which will redirect users to a pre-built eSewa form for the payment. This module integrates esewa-php-sdk v2.5 .
This project integrates eSewa into the Drupal Commerce payment and checkout systems.
- To submit bug reports and feature suggestions, or to track changes:
https://www.drupal.org/project/issues/esewa
REQUIREMENTS
This module requires the following modules and libraries:
- Drupal Commerce - https://www.drupal.org/project/commerce
- eSewa PHP - https://github.com/cixware/esewa-php-sdk
INSTALLATION
- Commerce eSewa payment, like all Commerce modules, must be installed via Composer.
composer require drupal/esewa - Or install as you would normally install a contributed Drupal module. See:
https://www.drupal.org/docs/8/extending-drupal-8/installing-modules and install the eSewa PHP library via Composer. Run the following command:
composer require cixware/esewa-php-sdk ^2.5
CONFIGURATION
- Navigate to Administration » Extend and enable the module.
- Navigate to Administration » Commerce » Configuration » Payment Gateways.
- Add new payment gateway:
- Select eSewa Payment Plugin.
- Fill in the Merchant Code provided with your eSewa registration or without the merchant code with test mode. We can use the test credentials provides by the eSewa. Please check for the details here https://developer.esewa.com.np/#/android?id=credentials-amp-urls
The eSewa payment system only supports Nepalese Rupee and we can add the currency from here: Commerce » Configuration » Currencies
Project information
- Project categories: E-commerce
- Ecosystem: Commerce Core
- Created by sujan shrestha on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.



