{"id":2536,"date":"2024-12-31T20:22:45","date_gmt":"2024-12-31T20:22:45","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/how-to-integrate-barclaycard-payments-with-magento-2\/"},"modified":"2025-09-18T12:50:26","modified_gmt":"2025-09-18T07:20:26","slug":"integrate-barclaycard-payments-with-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/integrate-barclaycard-payments-with-magento-2\/","title":{"rendered":"How to Integrate Barclaycard Payments with Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Do you want to add Barclaycard payments to Magento 2?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can do it using our easy-to-set-up extension. Learn the steps to configure and use our Magento 2 Barclaycard payments module.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introducing Magento 2 Barclaycard Payments Extension<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Founded in 1966, Barclaycard is one of the&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/best-payment-gateways-in-uk\/\">most popular payment solutions in the UK<\/a>. It offers a secure solution to accept credit card payments online.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our&nbsp;<a href=\"https:\/\/meetanshi.com\/magento-2-barclaycard-payments.html\">Barclaycard Payments<\/a>&nbsp;extension helps you use this solution with your store. It integrates the payment solution via API and supports the 3D Secure option for an extra layer of security.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We offer two integration options for the Barclaycard Payments:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Direct Method&nbsp;<\/strong>\u2013 The customers can complete payments without leaving your store (faster)<\/li>\n\n\n\n<li><strong>Hosted Method&nbsp;<\/strong>\u2013 The customers are redirected to the Barclaycard website for payments (more secure)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can choose the one that meets your needs and preferences.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Integrate Magento 2 Barclaycard Payments Using Extension<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To use the extension, you\u2019ll need to have a Barclaycard merchant account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.barclaycard.co.uk\/personal\/customer\/register-online-account\" target=\"_blank\" rel=\"noreferrer noopener\">Sign up<\/a>&nbsp;here if you haven\u2019t yet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the registration is complete, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install Magento 2 Barclaycard Payments Extension<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to&nbsp;<a href=\"https:\/\/meetanshi.com\/magento-2-barclaycard-payments.html\">Magento 2 Barclaycard Payments<\/a>&nbsp;and select the extension integration type for your store \u2013 i.e., Direct or Hosted.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/07\/1-Magento-2-Barclaycard-Payments-extension-700x363-1.png\" alt=\"Magento 2 Barclaycard Payments Extension\n\" class=\"wp-image-50292\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Download the extension ZIP file and extract it to the Magento root directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, run the following commands:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>php bin\/magento setup:upgrade<\/code><\/li>\n\n\n\n<li><code>php bin\/magento setup:static-content:deploy \u2013f<\/code><\/li>\n\n\n\n<li><code>php bin\/magento cache:flush<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The Magento 2 Barclaycard Payments extension will be successfully installed in your store.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Enter API Details in Extension Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the extension is installed, go to&nbsp;<strong>Stores &gt; Configuration &gt; Sales &gt; Payment Methods<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the Barclaycard Payment method and configure it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll need to add your PSPID of Barclaycard and the following details from your merchant account:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User ID \u2013&nbsp;<\/strong>You can find it at&nbsp;<strong>Configuration &gt; Users<\/strong><\/li>\n\n\n\n<li><strong>Password \u2013&nbsp;<\/strong>It\u2019s your merchant account password<\/li>\n\n\n\n<li><strong>Alias \u2013&nbsp;<\/strong>You can find it at&nbsp;<strong>Configuration &gt; Alias<\/strong><\/li>\n\n\n\n<li><strong>Hash Algorithm \u2013&nbsp;<\/strong>You can find it at&nbsp;<strong>Configuration &gt; Technical Information &gt; Data and Origin Verification &gt; Hash Algorithm<\/strong><\/li>\n\n\n\n<li><strong>SHA-in pass phrase \u2013&nbsp;<\/strong>You can find it at&nbsp;<strong>Configuration &gt; Technical Information &gt; Data and Origin Verification &gt; Checks for Barclaycard Direct Link<\/strong>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/07\/2-enter-barclaycard-api-details-in-magento-2-admin-700x613-1.png\" alt=\"Barclaycard Direct Link\" class=\"wp-image-50295\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Next, you can also configure the extension to add prefix to order numbers for order paid using Barclaycard payments. You can select the default action from:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authorize Only \u2013&nbsp;<\/strong>The payment will be authorized but not captured at the time of order placement.<\/li>\n\n\n\n<li><strong>Authorize &amp; Capture \u2013&nbsp;<\/strong>The payment will be authorized and captured at the time of order placement.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can also choose to set the default status for orders paid using this payment gateway and make it available only for specific countries.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/07\/3-other-configuration.png\" alt=\"Default status for orders paid\" class=\"wp-image-50297\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Once done with the configuration, click the \u201c<strong>Save Config<\/strong>\u201d button at the top-right.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it \u2013 you\u2019ve successfully integrated Magento 2 Barclaycard Payments in your online store. You can test the payment method on the front end by placing a test order using the sandbox mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><div class=\"meetanshi-cta\">\r\n<div class=\"cta-content-wrapper\">\r\n<span>Magento 2 Barclaycard Payments<\/span>\r\n<p>Enjoy a stress-free checkout using the Barclaycard payment solution.<\/p>\r\n<a href=\"https:\/\/meetanshi.com\/magento-2-barclaycard-payments.html\" target=\"_blank\" class=\"btn-primary\">Get Started<\/a>\r\n<\/div>\r\n<div class=\"cta-image-new\">\r\n<img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/11\/magento-2-barclaycard-payments.png\" alt=\"Magento 2 Barclaycard Payments\">\r\n<\/div>\r\n<\/div><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Takeaways<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Integrating Barclaycard Magento 2 is a sure way to offer a more secure, easier, and faster payment option to your customers. The extension helps you use this payment solution seamlessly in your Magento 2 store. If you\u2019re thinking about alternatives, you can also check out our complete guide on&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/integrate-magento-2-worldpay\/\">integrating Worldpay in the Magento 2 store<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to add Barclaycard payments to Magento 2? You can do it using our easy-to-set-up extension. Learn the steps to configure and use&#8230;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2536","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2536"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2536\/revisions"}],"predecessor-version":[{"id":22137,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2536\/revisions\/22137"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}