Magento 2 Barclaycard Direct Payment

Table of Content

  1. Extension Installation Guide
  2. Barclaycard Account Signup and Login
  3. Configuration
  4. Barclaycard Direct Payment in Frontend
  5. Barclaycard Payment Method for Backend Order
  6. Barclaycard Payment Details in Order View Backend

 

  1. Extension Installation
  • 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
  • That’s it.

 

  1. Barclaycard Account Signup and Login
    To integrate Barclaycard in Magento 2, you need to create a merchant account. Simply fill the details and submit to successfully register with Barclaycard Payment Gateway.
     

 

  

  • Once you get registration details, log in to either test or production account using your PSID and password.
     

 

  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Sales > Payment Methods, find the Barclaycard Direct Payment to configure.
  • Enabled: Enable or disable Barclaycard Direct Payment extension from here.
  • Title: Enter title for the Barclaycard Direct Payment to show in frontend.
  • PSPID: Enter your payment service provider ID (PSPID) you got while registration.
  • User ID: Enter user ID. Go to Barclaycard Configuration > Users to find your User ID.
     

 

While creating a user, make sure you have ticked “Special User for API” to integrate the payment gateway in Magento 2 using this user.

  

 

  • Password: Enter the password for the user.
  • Default Settlement Currency: Set default settlement currency.
  • Alias: Enter alias. Go to Barclaycard Configuration > Alias to create or find your stored alias.
     

  

  • Hash Algorithm: Here, you have to select the same hash algorithm you set while the account creation. To find it, go to Barclaycard Configuration > Technical Information > Global Security Parameters > Hash Algorithm.
     

  

  • SHA-in Pass Phrase Direct Link Method: Enter SHA-in pass phrase for direct link method. You can find it at Barclaycard Configuration > Technical Information > Data & Origin Verification > Checks for Barclaycard Direct Link
     

  

 

Note: Make sure you have selected the exact 10 parameters listed below under Barclaycard Configuration > Technical Information > Transaction Feedback > Dynamic E-Commerce parameters.

ALIAS

EMAIL

AMOUNT

NCERROR

CARDNO

ORDERID

CN

PAYID

CURRENCY

STATUS

ED

 

 

 

  • Sandbox Mode: Set YES to enable sandbox mode for the payment gateway.
  • Order Prefix: Enter prefix or the orders.
     


 

  • Payment Action: Set payment action for the orders placed through Barclaycard.
  • New Order Status: Select status for the new orders.
  • Credit Card Types: Select credit card types to allow payment using them.
  • Payment from Applicable Countries: Select countries to allow use of payment method.
  • Enable Debug: Set YES to enable debug.
  • Sort Order: Enter sort order of the payment method to show in frontend.

  

 

  1. Barclaycard Direct Payment in Frontend
    Once the extension is configured, it can be seen enabled on the frontend. Simply add products to cart and at checkout, you can see payment method enabled. Select it, add card details and click to finish payment and place order.

  

 

  • Barclaycard Payment Details in My Account Section
    Immediately after the order is placed, the Barclaycard payment details can be seen in order view under My Account section.


 

  1. Barclaycard Payment Method for Backend Order
    Just as the frontend, Barclaycard payment method also works with backend orders. Admin needs to create a new order and select Barclaycard payment method, add card details and click submit order to place an order from backend using Barclaycard payment method.

  

  1. Barclaycard Payment Details in Order View Backend
    Apart from My Account section, Barclaycard order details can be found in Sales > Orders > Order View section.