khalti
Khalti is a Digital Wallet, Payment Gateway, and API Provider System for various online services in Nepal.
This module integrates the Khalti Payment Gateway with Drupal Commerce, allowing businesses to accept online payments in a secure and efficient way.
Supported Payment Methods
- Khalti users
- eBanking users from Khalti’s partnered banks
- Mobile Banking users from Khalti's partnered banks
- SCT/VISA cardholders (Card option requires approval)
- ConnectIPS users
Using Khalti Payment Gateway, you can avoid the hassle of integrating with individual banks.
Requirements
This module requires the following module:
- Drupal Commerce - https://www.drupal.org/project/commerce
Installation
Follow the steps below to install the Khalti Payment Gateway module:
- Install via Composer:
composer require "drupal/khalti" - Or install as you would normally install a contributed Drupal module. See: Installing Modules
Configuration
- Navigate to Administration > Extend and enable the module.
- Go to Administration » Commerce » Configuration » Payment Gateways.
- Add a new payment gateway:
- Select Khalti Payment Plugin.
- Choose live or test mode.
- Fill in the secret key provided with your Khalti registration.
- Go to Administration » Commerce » Configuration
- Add currency:
- Select Nepalese Rupee and submit.
To Use Khalti Payment Gateway
- Install the Khalti module in your Drupal site.
- Create a merchant account at admin.khalti.com.
- Confirm the agreement with Khalti and get live keys generated from the Khalti team.
- Find the live key from your merchant account and use it in the Payment Gateways settings.
- Test the live transactions.
- Coordinate with the Khalti team to increase limits and slabs when you're ready to accept payments.
To Use Khalti Sandbox
This guide will walk you through the process of setting up the Khalti payment gateway in your commerce platform, testing it in "test mode," and using the test credentials for checkout.
- Access the Test Admin Panel: Visit test-admin.khalti.com.
- Login Credentials:
- Username: Use any valid username for testing purposes.
- Login OTP: Enter 987654 when prompted.
- Use test secret keys in this format:
Key <test_secret_key>. - Test credentials:
- Phone Numbers: 9800000001, 9800000002, 9800000003, 9800000004, 9800000005
- MPIN: 1111
- OTP: 987654
-
Access the Administration Panel
- Navigate to the Administration section of your dashboard.
- Click on Commerce from the left menu.
- Go to Configuration and then select Payment gateways.
-
Set Up Khalti Payment Gateway
- Find and select Khalti from the list of available payment gateways.
- Choose the Mode option and set it to 'test'.
- Enter the Test Secret Key provided to you.
- Click on the Save button to save your configuration.
-
Add a Product to Cart
- Browse through your online store and add a product to the cart.
- Proceed to the checkout page.
-
Checkout Using Khalti Payment
- At checkout, select Khalti as your payment method.
- Complete the checkout process with the test credentials.
- Go to Administration » Commerce » Khalti to view all the transactions made with Khalti. You can view the transaction details, edit or delete them, and manually add new transactions.
Contact Khalti Business Team
For any assistance, you can reach out to Khalti's Business Team:
- Phone: +977 9801165557
- Email: [email protected]
Support
For technical support or queries, contact:
- Mobile (Viber/WhatsApp/Skype): 9801301162, 9801165565
- Email: [email protected]
For any assistance, bug reports, issues, or feature requests, please visit the module's issue queue on Drupal.org:
https://www.drupal.org/project/issues/khalti