If you’re running a WooCommerce store in Nepal and want to accept payments through Himalayan Bank, this guide will show you how to integrate their payment gateway into your site. It will help you set up secure transactions for your customers, making payments easier and more reliable. With this setup, your store can handle payments smoothly and provide a better experience for both you and your customers.
Himalayan Bank’s payment gateway supports credit card payments, making it convenient for customers to pay using their international credit cards. This feature is essential for businesses looking to reach customers beyond Nepal, allowing for smooth, secure transactions directly on your WooCommerce site. Whether you’re a travel and trek business owner, or you just want to integrate payment method in your WooCommerce site, this plugin is for you.
Requirements
To successfully integrate Himalayan Bank payments with your WooCommerce site, you’ll need to meet the following technical requirements:
👉 Himalayan Bank Merchant Account
👉 Website built with WordPress and products with WooCommerce
👉 PHP 8.1 or higher.
👉 PHP Sodium Extension.
👉 PHP GMP Extension – Optional but strongly recommended. Learn More.
If you’re unsure about meeting these requirements, feel free to contact me or your web host for assistance.
Pricing
- 1 Site
- 1 year of updates / billed yearly.
- 1 year of support *
- 7 days money-back guarantee *
* Support is limited to the plugin’s territory. E.g. plugin installation, licenses, bug fixes etc. Configuration and issues with the Bank Merchant are not the plugin’s territory.
* 100% refund when the product had a bug/problem I couldn’t resolve.
* Checkout and Payment are processed from Freemius – the reseller of the plugin.
Have pre-sale questions? Contact Me or send a message on Whatsapp.
Installation
- Log into your WordPress site: https://example.com/wp-admin
- Go to Plugins > Add New > Upload Plugin
- Upload the plugin’s zip file which will be sent to your email when you purchase.
- Install and activate the plugin.
If you’re new to WordPress, here’s a beginner’s guide on how to install a WordPress plugin.
Once you activate the plugin, you’ll have to enter the license key which you’ll receive in your email.
If you don’t see this popup window, go to Plugins > Add Himalayan Bank In WooCommerce and then click on Activate License.
Setup
Once you install and activate the Himalayan Bank Payment For WooCommerce plugin, you’ll see new payment settings in WooCommerce.So, Navigate to WooCommerce > Settings > Payments, there will be a new option, Himalayan Bank.
Click on the “Manage” button to set up the payments and settings.
As you can see in the screenshot, you’ll need Merchant ID and API key to accept the payment on your Merchant account. For the Himalayan Bank to set up your Merchant account, you’ll need to provide the Public Signing Key and Public Encryption Key to Himalayan Bank.
You should generate the keys by yourself. Use this tool to generate the keys.
Steps:
1) Select 4096 bit RSA key size from the drop-down.
2) Click on Generate RSA Key Pair, it will generate the Public Key and Private Key (call them the Signing Keys)
3) Go back to your site’s settings and paste the Public Key and Private Key in the fields: “Public Signing Key” and “Private Signing Key”.
4) Once again, click on Generate RSA Key Pair, it will generate a new Public Key and Private Key (call them the Encryption Keys)
5) Go back to your site’s settings and paste the Public Key and Private Key in the fields: “Public Encryption Key” and “Private Encryption Key”.
Once you fill the keys, the settings will look something like this:
Provide the Public Signing Key and Public Encryption key to Himalayan Bank, they’ll set up your live Merchant. You should not share the Private Keys with anyone.
We’re done with the setup. now the pay with Himalayan Bank option will appear in the checkout where customers can pay directly via their credit card. They will be redirected to the HBL payment to securely pay with Credit Cards.
Or, If you’re using On-Site Checkout, the credit card form will appear on your site. This feature however requires you to be a PCI complaint. Read more.
Got issues?
Please carefully follow the setup instructions above especially the generation and sharing of signing/encryption keys. Most issues are probably due to incorrect Merchant Setup or configuration. However, technical errors do occur sometimes. If you face any issues, please turn on debugging from WooCommerce > Settings > Payments > Himalayan Bank Payment.
Then, check out again to log the error.
After that, you can get the log details in WooCommerce > Status > Logs.
These details might tell you what went wrong or you can share the details with the bank support.
FAQ
ERROR: Unable to load or decrypt token
Issue with keys. The keys bank used to create the Merchant doesn’t match the keys you’ve set in the plugin settings. Consult with bank support to check your keys.
ERROR: The JWT can not be used yet
Claim failed. You’re possibly ahead of time, : ) or used a nulled plugin. Send me the details of the logs and I’ll help to check.
Payment authentication service error.
Payment not success. Do not honour.
Probably credit card’s issue.
Technical details. Do not honour.
Call to aquirer failed.
An error by the customer’s card acquirer (bank), not because of Himalayan Bank or the plugin. The used credit card issuer can’t process transactions at the time. Try using another card.
Error: Payment type not support
In most cases, the Merchant account has been made inactive. Contact bank support with your Merchant details.
Error: Unsupported Media Type
Possible issue with your custom codes, nulled plugin. Make sure you’re using the genuine plugin with the license key.
Don’t just hear my words!
Hey! Do you have a Nabil Bank Merchant instead? You can set up a Nabil Bank Payment Gateway For WooCommerce.
I have purchased the plugin. After installing getting the following error:
“Unable to load and decrypt the token.”
Hi Rajesh – please check the FAQ section above. In short, this is keys mismatch.
can you please give me your phone number or call me 9813398197
i need hbl plugin i already apply hbl please contact me asap
Please contact by submitting the form: https://sanjeebaryal.com.np/contact
Hello Sanjeep,
I installed your free version and worked for some time but now HBL has changed lots of new coding etc. I asked them for new setting information but not yet fixed. However, if I buy does that work for my site? I want to buy it
Hi – HBL tend to make changes on the API and as such it’s recommended to use the latest version of the plugin. With that said, it doesn’t work automatically if the keys are misconfigured.
Shall we get instant payment like if customer pay now, it is approved right away? If it is like Himalayan Bank system then its not worthy.
what would be the reason for the error, “Unable to load and decrypt the token.”
Incorrect key/configuration. The key you generated & added in the settings doesn’t match the key bank used to create your merchant.
Hello!
After I receive the access token, what should I include in the Secret (API) key?
Is it an access token or encryptionkeyid?
It’s the Merchant password/secret provided by the bank while setting up your merchant.
Hello!
Error Message:
ERROR: request.officeId : Value CLAY_CRAFTS_N_MORE_ENTERPRISES_ECOM__NPL is not valid for Code type.
How do I fix the error?
I got an error please check the screenshot
https://ibb.co/6WVBQKg
I followed your steps but does not worked
That error usually means the issue with signing/encryption keys. Note that you should provide keys to the bank and the bank should use those keys to generate your Merchant. Consult with bank for confirmation.
Hi Sanjeev
I am seeking HBL PGW version 2.0, now you’ve released the beta version. So How long do you take to finalize? If you need resources to check all these functions, such as credit card during the development period, I would like to help you.
Thank you
Kumar Lama
It’s the new API – v2. I just tagged ‘beta’ because it still needs testing to fix edge case issues. I’ll gather the reports from the users and release a stable v2.1.
Hope this clarifies!
Hello,
I just installed it on my site. But it does not complete the payment process. When clicking on the payment button, pop up a form to save card details, also shows the location of the USA only not other countries listed in the country form field. When trying to go new tab in the browser, the pop-up form disappears.
Hi Chitra – thanks for reaching out and testing the plugin 🙏.
The popup is the browser asking to save the CC details. I’m not sure what county field are you talking about. Is there any chance you could create a video screencast?
you can check here
egtours.com/product/payment-request
I checked out and see the standard checkout error. Here’s debugging steps:
Turn on Debug log from WooCommerce > Payments > Himalayan Bank. Check the log file in wp-content/uploads/wc-logs/Himalayan-bank–{date}-xxx.log. You can see full technical details on what went wrong.
Hi Chitra, I received the logs but I actually was looking for the response from the bank which was missing – see https://prnt.sc/a4McJGiLtUzb. You can get it from WooCommerce > Status > Logs. Check the log with hbl-payment-{date}-{time}.txt.
P.S. Update the plugin to v2.0.2
how long it will take to release v2
the development is in progress but there’s no ETA.