Skip to content

Getting started

There are four steps for integrating Khalti payment to a merchant system.

1. Signup as merchant

First of all you will need a merchant and a consumer accounts. Merchant is an online business service like e-commerce websites, ISP online payment, Movie online purchase etc. Consumer is an end user who uses Khalti to purchase products or services from merchants.

Please follow links below to create a merchant and a consumer accounts if you have not already.

2. Understand Khalti payment process

Khalti payment overview

3. Test integration

Now that you know how Khalti payment works. Its time to integrate it into your system. A merchant must complete test integration using test keys. Test keys start with test_.

In test mode, transactions are sandboxed, which means fund is not moved from a consumer to the merchant. Khalti must to be integrated at client and server. A transaction has three states initiate, confirm and complete. A client initiates and confirms payment while server verifies it and payment process is completed.

Payment via E-Banking and Debit/Credit card is not supported in test environment. After you successfully integrate wallet, you need not to concern about E-Banking and Card payment integration.

3.1. Client side integration

For now there is only one way to integrate Khalti at client side, through SDKs. We have developed SDKs for every major plaforms and we call it Checkout.

Checkouts provide all the necessary UIs and perform necessary processes to initiate and confirm payment.

3.2. Server side integration

After user confirms payment, it has to be verified by Khalti. Fund from user's account is moved to merchant only if verification succeeds. Verification must be done by the merchant server using a secret key.

4. Deploy integration

After successful integration test, the merchant must replace test keys with live ones. Live keys start with live_X_X. Replace test_public_X and test_secret_X keys with live_public_X and live_secret_X keys respectively.

4.1. Further processes

Even successful integration itself doesn't let you receive payments above NRs. 1000 per transaction. Please fill KYC form and contact us at 9801165568 to remove the limits and accept payments without restrictions.