Nepal Payment Gateway - eSewa, Khalti | eSewa Payment, Khalti Payment
by Modvanta https://modvantaapps.tech/odoo-apps/payment-nepal-wallets/
Odoo
$ 44.87

Take eSewa and Khalti payments in Odoo 19, verified with each wallet before an order is confirmed
eSewa | Khalti | ePay v2 | KPG-2 | Nepal | NPR
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Adds eSewa and Khalti as two payment providers in Odoo, in one module. The customer pays in the wallet and comes back; Odoo checks the result with the wallet server before it confirms the order. Khalti refunds are made from Odoo.
| eSewa ePay v2: signed form with HMAC-SHA256, signature check on the answer, then the status check API decides | |
| Khalti web checkout (KPG-2): initiate and lookup APIs with amounts in paisa; the lookup API decides, not the callback | |
| Khalti refunds: full or partial from Odoo, including the mobile number that bank payments require | |
| Pending payments re-checked: neither wallet publishes a webhook, so a scheduled action checks open payments every 15 minutes | |
| Amount check: a wrong amount puts the payment in error | |
| Point of Sale: only through Odoo's own POS online payment module (pos_online_payment), which you install separately; this module adds no POS screen. Neither wallet requires customer details, so an order with no customer can pay and nothing is invented | |
| Test and production: each provider has its own keys and uses the wallet test servers in Test mode | |
| API log: each call and return, with signatures and customer details masked | |
| Nepali: translation included; Odoo 19 ships no Nepali language, so the module adds one that you switch on in Settings > Languages |
Who it is for
NEPALI SHOPS Accept the wallets your customers already use on the Odoo website. | INVOICING TEAMS Send a payment link on an invoice; it is reconciled when the wallet confirms. | POINT OF SALE Needs Odoo's own POS online payment module. Add either wallet to its online payment method; there is no POS screen of our own. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| eSewa and Khalti providers | Not included | Both, in one module |
| Server check before confirming | Not included | Status check API and lookup API |
| Khalti refunds | Not included | Full and partial from Odoo |
Screenshots
Taken on a clean Odoo 19 database with this module installed. No merchant account was used: the answers of the gateway on this test database are simulated from its public API documentation.
1. eSewa at checkout
The customer picks eSewa on the Odoo payment page.

2. eSewa payment confirmed
Back from eSewa, Odoo has read the status itself and shows the confirmation.

3. eSewa keys
The product code and secret key given by eSewa.

4. eSewa Test Connection
It proves that eSewa answers and says plainly what it cannot prove: eSewa has no call that checks the secret key.

5. Khalti at checkout
The customer picks Khalti on the Odoo payment page.

6. Khalti payment confirmed
Back from Khalti, Odoo has called the lookup API and shows the confirmation.

7. Khalti key
The secret key of your Khalti merchant dashboard.

8. Khalti Test Connection
One click tells you whether Khalti accepts your key.

9. Options
How long the log is kept, and how refunds and Point of Sale work.

10. API log
Every call and return, with signatures and customer details masked.

How it works
| 1 | Install the module and open Invoicing or Website > Configuration > Payment Providers. |
| 2 | Open eSewa, enter the product code and secret key; open Khalti, enter the secret key. Press Test Connection. |
| 3 | Set a provider to Test and pay with your wallet test account. |
| 4 | Publish it and set it to Enabled with your live keys. |
Settings
| Product Code and Secret Key: eSewa | |
| Secret Key: Khalti | |
| Keep API Log: days of log |
FAQ
Has it been tested with live wallet accounts?
No. It was built from the public eSewa and Khalti documentation and tested with automated tests and a simulator shaped like the documented answers. Try it with your own test accounts before going live.
Can I refund an eSewa payment from Odoo?
No. eSewa publishes no refund API. Refund from your eSewa merchant account.
Is Fonepay included?
No. We found no public Fonepay integration documentation from Fonepay itself, so it is not in this module.
Why is a Khalti payment under Rs. 10 refused?
Khalti does not accept amounts under Rs. 10. Odoo says so before calling Khalti.
What currency do they use?
Nepalese rupees (NPR) only.
Compatibility
Odoo 19 CommunityOdoo 19 EnterpriseOn PremiseOdoo.sh
Support
Questions, a bug, or a change you need: write to us, we answer every email.
EMAIL | AUTHOR Modvanta | INCLUDED Free fixes for Odoo 19 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 950 |
| Technical Name |
mdv_payment_nepal_wallets |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-nepal-wallets/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module