jazznuts699:
Hi -- i installed this module in my store. I am currently testing the module and followed the install instructions thoroughly.
I made sure that the post url included the epqd directory (install doc omits this). All works fine and declined transactions get routed correctly.
My problem is that **all **my transactions get declined. When using the bogus cc number 4111.... this works as designed however when using real cc numbers with matching addresses all cards are declined. I am testing with 0.01 euro totals. I called my cc company and they are not even seeing the declines which means they fail at barclays end. I sent epqd support an email but it's friday so i'm not sure if they will respond before moniday.
Also -- how do i hard code so that barclays site requires the 3 digit security code (currently this is optional)? Thanks for your help.
quick update...
the reason all my transactions were failing was because Barclays setup my store as a sterling only -- they forgot to setup the mutlicurrncy store. Once this new store was setup and active my transactions started working. Please see below for steps i did to make order#'s appear, change currency, and force to use credit card security code.
i had to change the EPDQ_REDIRECT_WORKING to false to get the order # to show up. with this variable set to TRUE i would get a completed payment but no order #.
i added the following code in \includes\modules\payment\epdq.php to force use of security code:
add this in your code -- somewhere where you define variables
//start force to use Card Security Code
//This defines whether the Card Security Code is a mandatory field, 1=on, 2=off
$mandatecsc = '1';
//end force use of Card Security Code
add this also:
// parameters to be encrypted
$params = 'clientid=' . $clientid;
$params .= '&password=' . $passphrase;
$params .= '&oid=' . $oid;
$params .= '&chargetype=' . $chargetype;
$params .= '¤cycode=' . $currencycode;
$params .= '&total=' . $total;
// start force to use Card Security Code
$params .= '&mandatecsc=' . $mandatecsc;
// end force use of Card Security Code
lastly to use a different currency other than GBP you need to modify the currencycode variable. a list of the iso numbers and codes is located at the end of your integration guide. You need to provide the number not the code here:
//$currencycode = '826'; // Pounds sterling. Could add processing for other codes, if site's merchant account supports them
$currencycode = '978'; // Euros.
hope this helps someone else as it took me a handful of .01 transactions to test this on my site and it works.