Index

Barclaycard ePDQ Setup.


This is the most difficult of the payment methods to setup.

The ePDQ scripts are designed to work on a Unix/Linux server running SendMail.

This documentation assumes you have already successfully installed the shop.pl file.

Setup Instructions

Goto Setup 3 and tick the Barclaycard ePDQ box.

This is the only field you need to fill in on that page.

Download the additional files required for an ePDQ integration from

http://www.online-store.co.uk/epdq.zip

Unzip into the shop3 folder on your hard drive.

the files are

script.pl,  cgi-script2.pl, show_orders.pl and  epdq.html


The script.pl file

Load the file into a text editor.

The first lines should be similar to this

---------------------------------------------------
#!/usr/bin/perl

$chargetype='Auth';
$clientid='Your ePDQ id goes here';
$password='your ePDQ password goes here';
$currencycode='GBP';

$store = 'Your Store Name';
$return_url = "http://www.your-domain.com/return-url.html";

-------------------------------------------

#!/usr/bin/perl
The first line is the address of Perl for your server. Edit as appropriate.

$clientid is set to your ePDQ client id

$password is the password from your your ePDQ admin page.

$currencycode in this case is set to GBP or Brittish pounds.

$store is the name of your business which apppears on the order form, when the customer enters their credit card details.

$return_url is the URL of the web page that your customers are directed to upon completion of the transaction

$doc_dir = '';
$data_dir = '';

these point to the folders that contain the ePDQ scripts and files. If all the ePDQ files are in the same folder as
script.pl and cgi-script2.pl, then in most cases these values  need not be modified.


The cgi-script2.pl file
Load the file into a text editor.

The first lines should be similar to this

-------------------------------------------------------------

#!/usr/bin/perl
$sendmail='/usr/lib/sendmail';

$to='store@your-domain.com';

$from='store@your-domain.com';

$doc_dir = '';
$data_dir = '';

------------------------------------------------------------

#!/usr/bin/perl
The first line is the address of Perl for your server. Edit as appropriate.

$to
the email address of the merchant

$from
the email address from which the merchants confirmation emails appear to be sent from.

$sendmail='/usr/lib/sendmail';

This is the address of SendMail on your server. In this case it is set to /user/lib/sendmail .  Set to the same value as SendMail on your server.

$doc_dir = '';
$data_dir = '';

these point to the folders that contain the ePDQ scripts and files. Set to the same value as those in script.pl

Barclay ePDQ admin tool.

log on to the ePDQ Configuration Page

https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdqAdminTool.e

set the allowed URL to the URL of your folder containing the script.pl

set "post order result" to yes

set "post url" to the URL of your folder contain the cgi-script2.pl

set the "post password" to the to the same value that you set for script.pl

set a new "post user name" to the same value that you set for script.pl


Important.  You must password protect the cgi-script2.pl file, as detailed in ePDQ's documentation.