Magento 2 KNET Payments

Magento 2 KNET Payments allows you to integrate Kuwait's KNET Payment Gateway with Magento 2 to capture secure online payments.

 

Table of Content

  1. How to Apply for KNET Payment Gateway Registration
  2. Extension Installation
  3. Configuration
  4. KNET Payments in Frontend
  5. KNET Payments in Backend

 

  1. 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.

 

  1. 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.

 

  • Configuration for the Magento 2 plugin:
    The Magento 2 plug-in contains the alias name, merchant’s resource file and a class file. The path to the merchant’s resource file and the alias should be specified for the payment initialization page. Name of the class file is e24PaymentPipe.inc.php, which should be included in the payment initialization page.

 

  • Extension Installation:
    • For Magento Marketplace Customers
  • Create a folder structure in Magento root as app/code/Meetanshi/Knet
  • Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/Knet 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

 

  • 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

 

  1. 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 language of the payment.
  • Auto Invoice: Select YES to allow generating 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 frontend.

 

 

  1.  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.

 

 

  1. 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.