less than a minute read • Updated 6 days ago
Barclaycard
Connect Foxy to Barclaycard for secure payments.
- Countries
United Kingdom
- Features
- Multi-Currency
Barclaycard ePDQ is no longer available for new stores
Barclaycard ePDQ is deprecated and no longer appears in the payment method picker in the Foxy admin. The setup steps below are kept for merchants who are already connected to it.
If you're setting up a new payment method, see the payment methods list for currently supported gateways.
Obtaining a test account
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.
Creating API users
Once your Barclaycard test account is configured and activated, create a user for Foxy to use when connecting to Barclaycard for payments.
Connecting Barclaycard to Foxy
You'll also need to make sure your store is configured to use GBP, since that's the currency used for the test account. Go to the template sets section in the administration and select a locale that uses GBP, such as English locale for Britain.
Testing
By default, Barclaycard provides transaction responses based on the total amount of the order. If the order total is between £0 and £9000 the transaction succeeds; between £9001 and £9999 it's declined. Any card numbers can be used, as long as you enabled support for them in your payment methods configuration earlier.
Some example test card numbers:
Visa
4111 1111 1111 1111Mastercard
5399 9999 9999 9999American Express
3741 1111 1111 111
You can also switch the test results to be based on the card number used. In the Barclaycard administration, go to Configuration > Technical information > Test info to change that and see more details.
Switching your Barclaycard account to production
Once you've completed testing, switch your Barclaycard account into production mode so you can start taking live payments. 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, switch your Foxy payment settings to live servers. If you haven't yet started your Foxy store subscription, you'll need to do that first.
After switching to live, enter your production Barclaycard credentials and save the payment settings.
Special consideration: prepayment webhook
If you have 3-D Secure enabled for your Barclaycard account and Foxy store, a slightly different trigger occurs for the prepayment webhook if it's enabled for your store. It will have a Foxy-Webhook-Event header of validation/3ds instead of validation/payment.
Barclaycard approach capturing payments with 3DS differently to other gateways: they capture the payment as soon as the 3DS process completes, rather than responding that the customer was validated and letting us capture as a separate request.
This means that if you're using the prepayment webhook to prevent transactions from completing, and you're matching against the event header, you'll need to allow for both validation/3ds and validation/payment.
Troubleshooting & interpreting response codes
"The data you entered is not correct. Please retry"
If you get a gateway error of "There was an error processing your payment: The data you entered is not correct. Please retry.", this generally points to your gateway credentials being incorrect. Double check that the PSPID, User and Password fields are correct for the respective data in your accounts.