Magento 2 Barclaycard Direct Payments

19
Barclaycard Direct Payment for Magento 2 © Meetanshi Barclaycard Direct Payments for Magento 2 User Guide Table of Content 1. Extension Installation Guide 2. Barclaycard Account Signup and Login 3. Configuration 4. Barclaycard Direct Payment in Frontend 5. Barclaycard Payment Details in Order View Backend 6. Barclaycard Payment Method for Backend Order 7. Refund Online for Authorized Orders

description

Magento 2 Barclaycard Payments by Meetanshi integrates UK's Barclaycard Magento 2 stores must offer secure payment facility to customers in order to win their trust and have a smooth payment system. Meetanshi have come up with Magento 2 Barclaycard Payments extension to allow Magento 2 store owners to accept secure online payments through UK's Barclaycard Payment gateway.

Transcript of Magento 2 Barclaycard Direct Payments

Page 1: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

Barclaycard Direct Payments for Magento 2

User Guide

Table of Content

1. Extension Installation Guide

2. Barclaycard Account Signup and Login

3. Configuration

4. Barclaycard Direct Payment in Frontend

5. Barclaycard Payment Details in Order View Backend

6. Barclaycard Payment Method for Backend Order

7. Refund Online for Authorized Orders

Page 2: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

1. Extension Installation • For Magento Marketplace Customers

o Create a folder structure in Magento root as app/code/Meetanshi/Barclaycard

o Download and extract the zip folder and upload our extension files to the

app/code/Meetanshi/Barclaycard via FTP.

o 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

o Extract the zip folder and upload our extension to the root of your Magento 2 directory via

FTP.

o 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

Page 3: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

2. Barclaycard Account Signup and Login To integrate Barclaycard in Magento 2, you need to signup to create a merchant account.

Simply fill the details and submit to successfully register with Barclaycard Payment Gateway.

Page 4: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Once you get registration details, login to either test or production account using your PSID

and password.

3. Configuration For configuring the extension, login 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.

• 3D Secure: Enable 3D secure.

Note: Login to Barclaycard, go to Advanced > Fraud Detection and select “Request 3D Secure” to

enable the option for usage when testing.

Page 5: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

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

Page 6: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

While creating user, make sure you have ticked “Special User for API” to integrate the payment

gateway in Magento 2 using this user.

Page 7: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Password: Enter password for the user.

• 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 account

creation. To find it, go to Barclaycard Configuration → Technical Information → Global

Security Parameters → Hash Algorithm.

Page 8: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• 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

• Add Post Payment Page URLs: Merchants have to add post payment page URLs in

Barclaycard. Go to Barclaycard Configuration → Technical Information → Transaction

Feedback and find Direct HTTP Server to Server Request and add below URLs in both the

fields respectively.

o If the payment’s status is “accepted”, “on hold” or “uncertain”: Enter URL

yourwebsite.com/barclaycard/payment/acceptPayment/

o If the payment’s status is “Cancelled by the Client” or “too many rejections by the

acquirer”: Enter URL yourwebsite.com/barclaycard/payment/declinePayment/

Page 9: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

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

Page 10: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Sandbox Mode: Set YES to enable sandbox mode for the payment gateway.

• Order Prefix: Enter prefix or the orders.

• Payment Action: Select one of the payment actions for the orders placed through

Barclaycard.

o Authorize: Only authorizes the payment and captures the amount after invoice generation

o Authorize and Capture: Authorizes and captures the amount and generates invoice for

the orders.

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

Page 11: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

Page 12: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

4. Barclaycard Direct Payment in Frontend Once the extension is configured, it can be seen enabled on 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.

Page 13: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Authenticate Payment Transaction

If 3D secure is enabled from the configuration, customers will have to authenticate the

payment transaction. This authentication step may vary based on your card and bank type.

Simply follow the authentication steps and submit for the successful payment.

Page 14: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Payment Success Message on Barclaycard Hosted Payment Page On successful payment, Barclaycard hosted payment page shows success message and

redirects back to merchant’s website.

Page 15: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Barclaycard Payment Details in My Account Section

Immediately after the order is placed, the Barclaycard payment details like payment type,

card number, pay ID and status can be seen in order view under My Account section.

Page 16: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

5. Barclaycard Payment Details in Order View Backend Apart from the My Account section, Barclaycard payment details can be found in Sales →

Orders → Order View section.

Page 17: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

6. Barclaycard Payment Method for Backend Order Just as frontend, Barclaycard payment method also works with backend orders. Admin needs to

create new order and select Barclaycard payment method, add card details and click submit

order to place order from backend using Barclaycard payment method.

Page 18: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

7. Refund Online for Authorized Orders

If you have set “Authorize” under the “Payment Action”, you have to create an invoice for the

orders manually. Go to Sales > Orders > Order View and click “Submit Invoice” to generate

invoice for the order.

Page 19: Magento 2 Barclaycard Direct Payments

Barclaycard Direct Payment for Magento 2 © Meetanshi

• Online Refund for Barclaycard Authorized Orders

If you have set “Authorize” under the “Payment Action”, to refund online for the orders, go

to Sales > Orders > Order View > Invoice and click on “Credit Memo” and you can click

“Refund” button to refund online for the authorized only orders.