Back to Blog

How to Integrate eSewa, Visa, and Google Pay on Your Website

Introduction

If you are building an online business, booking platform, or subscription service in Nepal, accepting payments directly on your website is critical. eSewa is the leading digital wallet in Nepal, and integrating it along with credit cards ensures you never miss a sale. Here is how to set up payment options on your website.

Step 1: Register for an eSewa Merchant Account

Unlike personal eSewa accounts, you need a Merchant Account to accept automated API payments. To register, you must provide eSewa with the following documentation:

  • Company registration certificate.
  • PAN/VAT registration certificate.
  • Board resolution form or authority letter.
  • Company bank account details (for automated settlement).

Once approved, eSewa will provide you with a Merchant Code and Secret Keys for API integration.

Step 2: Setup Credit Card Payments

To accept Visa, MasterCard, and international currencies, you will need a payment gateway gateway processor. Nepali banks offer payment gateways, or you can use integrations like Dodo Payments which handle international billing securely via digital cards, Apple Pay, and Google Pay.

Step 3: Integrating the Code

Traditional setups require writing server-side code (in Node.js, PHP, or Python) to handle hash generation and payment callbacks. However, modern platforms simplify this process:

  • Custom API: We can code secure backend endpoint functions that generate payment hashes and verify payment status from eSewa.
  • No-code Integrations: Within the Siriri Website Builder, we provide custom checkout forms. You simply input your eSewa Merchant ID, and the platform automatically displays secure, working checkout buttons on your landing pages, settling funds directly to your bank.