Skip to main content
Magento

Magento and Barclaycard ePDQ payments

By April 9, 2011December 10th, 2014No Comments

Adding UK payment gateways to Magento often involves Magento Connect extentions, with only PayPal and more US centric payment processors working more or less out of the box.

To enable Barclaycard payments I used the Barclaycard ePDQ CPI payment module, which needs a few tweaks to make in compatible with newer Magento versions (1.5.0+).

Unable to connect to Barclaycard ePDQ. Please try again.

Two code changes are needed to pass the total checkout amount from Magento to Barclaycard, in the file;
/app/code/community/Barclaycard/Epdq/Model/Cpi.php.

Not a valid allowed URL

Finally the url paths to Barclaycard that are entered into the ePDQ control panel need to match up. This isn’t as easy as it sounds as the url examples provided by the module are slightly wrong and the error logs are on Barclaycard’s side.

The module actually adds a ‘/’ to the urls, so the correct links are;

  • Allowed URL : {{base_url}}/epdq/cpi/redirect/
  • POST URL : {{base_url}}/epdq/cpi/postUrl/

I hope that saves you a bit of head scratching.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.