🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Integrate Barclaycard Payments with Magento 2

By Shivbhadrasinh GohilUpdated on Jan 15, 2025 4 min read

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 our Magento 2 Barclaycard payments module.

Introducing Magento 2 Barclaycard Payments Extension

Founded in 1966, Barclaycard is one of the most popular payment solutions in the UK. It offers a secure solution to accept credit card payments online.

Our Barclaycard Payments 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.

We offer two integration options for the Barclaycard Payments:

  • Direct Method – The customers can complete payments without leaving your store (faster)
  • Hosted Method – The customers are redirected to the Barclaycard website for payments (more secure)

You can choose the one that meets your needs and preferences.

Method to Integrate Magento 2 Barclaycard Payments Using Extension

To use the extension, you’ll need to have a Barclaycard merchant account.

Sign up here if you haven’t yet.

Once the registration is complete, follow these steps:

Step 1: Install Magento 2 Barclaycard Payments Extension

Go to Magento 2 Barclaycard Payments and select the extension integration type for your store – i.e., Direct or Hosted.

Download the extension ZIP file and extract it to the Magento root directory.

Now, run the following commands:

  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy –f
  • php bin/magento cache:flush

The Magento 2 Barclaycard Payments extension will be successfully installed in your store.

Step 2: Enter API Details in Extension Configuration

Once the extension is installed, go to Stores > Configuration > Sales > Payment Methods.

Enable the Barclaycard Payment method and configure it.

You’ll need to add your PSPID of Barclaycard and the following details from your merchant account:

  • User ID – You can find it at Configuration > Users
  • Password – It’s your merchant account password
  • Alias – You can find it at Configuration > Alias
  • Hash Algorithm – You can find it at Configuration > Technical Information > Data and Origin Verification > Hash Algorithm
  • SHA-in pass phrase – You can find it at Configuration > Technical Information > Data and Origin Verification > Checks for Barclaycard Direct Link.

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:

  • Authorize Only – The payment will be authorized but not captured at the time of order placement.
  • Authorize & Capture – The payment will be authorized and captured at the time of order placement.

You can also choose to set the default status for orders paid using this payment gateway and make it available only for specific countries.

Once done with the configuration, click the “Save Config” button at the top-right.

That’s it – you’ve 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.

Magento 2 Barclaycard Payments

Helps enable store owners to capture secure online payments.

Get Extension

Key Takeaways

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’re thinking about alternatives, you can also check out our complete guide on integrating Worldpay in the Magento 2 store.

Shivbhadrasinh Gohil Full Image
Article byShivbhadrasinh Gohil

Shivbhadrasinh is the Co-founder & Chief Marketing Officer at Meetanshi. He leads the marketing team and is the person behind the marketing & branding success of the company. Being a seasoned digital marketer, he has been consulting online businesses for growth since 2010 and has helped 100+ clients with digital marketing success. He loves sharing tips and insights about the latest digital marketing trends aimed at helping online business owners.