While we try our best to ensure the following details are up to date, if you run into any issues creating a test account for Barclaycard, please reach out to the Barclaycard support team for assistance with getting an account set up.
Once your Barclaycard test account is configured and activated, it's now time to create a user for Foxy to use to connect to Barclaycard for payments.
With your account and API user created, it's time to connect it to your Foxy store so you can start testing payments!
You will also need to ensure that your store is configured to use a GBP (British Pound), as that is the currency used for the test account. To do that, head to the “template sets” section in the administration and select a locale that uses GBP such as “English locale for Britain”.
After connecting Barclaycard with Foxy - you're now ready to test it out! By default, Barclaycard will be set to provide transaction responses based on the total amount of the order. If the order total is between £0 and £9000 the transaction will be successful, or if it's between £9001 and £9999 the transaction will be declined. Any card numbers can be used, as long as you've enabled support for them in your payment methods configuration earlier.
Some example test card numbers:
4111 1111 1111 1111
5399 9999 9999 9999
3741 1111 1111 111
You can also switch the test results to be based off of the card number used, and you can do that from the Barclaycard administration. Go to “Configuration” > “Technical information” > “Test info” to alter that and see more details on test details.
Once you've completed your testing, you'll then need to switch your Barclaycard account into production mode so you can start taking live payments from customers. You'll need to reach out to the Barclaycard support team to discuss your account and confirm any configurations that need to be made.
Once your account is switched to production, you'll then also need to switch your Foxy payment settings to live servers. You can do that from the “Payment” section in your store's Foxy administration. If you haven't yet started your Foxy store subscription, you'll need to also do that before switching to live payment servers.
After switching to live, enter in your production Barclaycard credentials and save the payment settings. Your store is now live and ready to accept payments from customers!
If you have 3D Secure enabled for your Barclaycard account and Foxy store, a slightly different trigger will occur for the prepayment webhook if enabled for your store. It will have a Foxy-Webhook-Event
header of validation/3ds
instead of validation/payment
.
Barclaycard approach capturing payments when 3DS is enabled differently that other gateways, in that they capture the payment as soon as the 3DS process is completed, rather than simply responding that the customer was validating and allowing us to capture as a separate request.
This means that if you are using the prepayment webhook to prevent transactions from completing, and are matching against the event header, you will need to allow for both validation/3ds
and validation/payment
.
If you experience a gateway error of “There was an error processing your payment: The data you entered is not correct. Please retry.”, this will generally point to your gateway credentials being incorrect. Double check that the PSPID, User and Password fields are correct for the respective data in your accounts.
If you have tips, experience, or helpful notes related to this gateway that would benefit others, please add them below, including your name and the date. We reserve the right to edit or remove comments that don't add value to this page.