Magento 2 KNET Payments allows you to integrate Kuwait's KNET Payment Gateway with Magento 2 to capture secure online payments.
Table of Content
- How to Apply for KNET Payment Gateway Registration
- Extension Installation
- Configuration
- KNET Payments in Frontend
- KNET Payments in Backend
- How to Apply for KNET Payment Gateway Registration
You need to sign up with any of the member banks to use KNET payment gateway in your website. After successful signup, merchants have to go a certification process to ensure the successful integration of the gateway with the website. The certification process takes a maximum of 2 weeks of testing. Apart from this certification, merchants have to obtain a digital certificate from any authorities. After the certification, KNET notifies the acquiring bank with the result and the date from when the merchant can start using KNET payment gateway.
- Extension Installation
To install the KNET Payments extension in Magento 2 environment, the below technical requirements need to be fulfilled:
- Secured web/application server:
The merchant must acquire a certificate from a certificate authority in order to do ecommerce transactions with KNET Payment Gateway. - Network and SSL:
The web server of Magento 2 store should have a valid SSL certificate in order to have KNET server receive the transactions. KNET is currently running with Verisign Extended Validation SSL.
Valid SSL certificate issuers for KNET to accept the transaction: -
- www.Verisign.com
- www.Thawte.com
- www.geotrusteurope.com
- www.Equifax.com
- www.digicert.com
- www.comodo.com
KNET will not provide SSL certificate to merchants.
- Security configuration:
The https port of the Magento 2 web server should be made accessible to the KNET Payment Gateway Server. KNET will only accept https communication between the KNET Payment Gateway (Port: 443) and a merchant website. This is because the authorization details sent to merchant’s web server are sensitive details like password.
- Extension Installation:
-
- For Magento Marketplace Customers
- Find the extension’s Composer name and version in its composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento2-knet-payments-integration --ignore-platform-reqs
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension is installed properly, run the command:
- php bin/magento module:status Meetanshi_Knet
- By default, the extension is probably disabled. Enable the extension and clear static view files:
- php bin/magento module:enable Meetanshi_Knet --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- Configuration
For configuring the extension, login to Magento 2, move to Sales à Payments Methods à KNET Payment where you can find various settings to enable the extension.
- Enabled: Set “YES” to enable the payment method.
- Title: Set the title for the payment method to be displayed in the frontend.
- Sandbox Mode: Select YES to enable the sandbox mode for testing purpose.
- Transportal ID: Enter the transportal ID provided by KNET during registration.
- Transportal Password: Enter the transportal password provided by KNET during registration
- Terminal Resource Key: Enter the terminal resource key provided by KNET during registration
- Payment Language: Set the language of the payment.
- Auto Invoice: Select YES to allow generating an auto invoice for the orders paid using KNET.
- Payment From Applicable Countries: Select countries to allow using this payment method.
- Sort Order: Enter Sort Order of the payment method display in the frontend.
- KNET Payments in Frontend
While checking out the products, opting KNET will provide making payments through the gateway.
- Adding Card Details
Add card details and click the submit button as shown here.
- Confirm Card Details
Click the confirm button to confirm the card details.
- KNET Payments in “My Account” section
Once the order is placed, the payment method details is shown in the Account dashboard, in “My Orders” tab which includes method title, payment id, transaction status, transaction ID, Authorization number and Tracking ID.
- KNET Payments in Order Email
After the order is placed, KNET payment and transaction details are sent in order Email to customers.
- KNET Payments in the Backend
The Order View backend shows the payment information to admin. It displays the payment method name, payment ID, transaction status, transaction ID, Authorization number and Tracking ID.