Hi
On testing the ePDQ widget with a production merchant I was receiving a 404 error when being passed to Barlcays.
The root cause was the difference between Test and Production environments. In the widget both Test and Prod were pointing to the Test url: Payment confirmation
I’ve fixed this in code studio by opening the main.js for Barclaycard Payment widget and editing the line;
var payment_url = ‘https://mdepayments.epdq.co.uk/ncol/‘+widget.get_setting(‘account_mode’)+’/orderstandard_utf8.asp’;
to:
var account_mode_url = widget.get_setting(‘account_mode’);
var payment_url;
if(account_mode_url == ‘prod’){
payment_url = ‘https://payments.epdq.co.uk/ncol/‘+account_mode_url+’/orderstandard_utf8.asp’;
}
else{
payment_url = ‘https://mdepayments.epdq.co.uk/ncol/‘+account_mode_url+’/orderstandard_utf8.asp’;
}
My code probably isn’t very elegant but this got me working.