• gjv

    (@garethjohnvaughan)


    I have recently setup a WooCommerce site (WordPress 3.6.1 / WooCommerce 2.0.14 / Gateway Plugin v1.0), Barclaycard EPDQ account and used this plugin. I have tried all of the above and still get the ‘Transection verification error!’ with redirect url …checkout/order-received/?wc-api=WC_Nom_EPDQ&orderID=463&currency=GBP&amount=0%2E65&PM=CreditCard&ACCEPTANCE=test123&STATUS=5&CARD

    The Barclaycard configuration has got the correct SHA-IN/SHA-OUT phrases, the correct encryption is being used, I tried ticking the AAVCHECK/CVCCHECK boxes and adding them to the ‘Dynamic e-Commerce paramaters’, but nothing makes it work. If I try and process another payment I get the message ‘This order has already been processed’ in the Barclaycard error log, so have to clear my cache to try again.

    If I enter a return URL in the Barclaycard backend it does not work either, but I am assuming this fails before it gets to the point where the return URL is acted upon and the cart and data are not reset.

    The output of my var dump for the WooCommerce ePDQ gateway plugin is shown below. The line 549 fails ($SHASIGN = isset($_REQUEST[‘SHASIGN’]) ? $_REQUEST[‘SHASIGN’] : ”;) because the has values tdo not match. The pairs generated from the Barclays system do not match all those from within the .php code, the array size is 18 compared to 27. I can see that the hash values do not match. I am unsure how to proceed. In your code your compare the hash value of $_REQUEST[‘SHASIGN’] with the hash value of $xy which I don’t quite understand.

    var_dump($_GET);
    var_dump(strtolower($shasignxy));
    var_dump(strtolower($SHASIGN));

    //Barclays Array

    array(18) {
    [“wc-api”]=> string(11) “WC_Nom_EPDQ”
    [“orderID”]=> string(3) “475”
    [“currency”]=> string(3) “GBP”
    [“amount”]=> string(4) “0.02”
    [“PM”]=> string(10) “CreditCard”
    [“ACCEPTANCE”]=> string(7) “test123”
    [“STATUS”]=> string(1) “5”
    [“CARDNO”]=> string(16) “XXXXXXXXXXXX1111”
    [“ED”]=> string(4) “0216”
    [“CN”]=> string(13) “test19 test19”
    [“TRXDATE”]=> string(8) “02/26/14”
    [“PAYID”]=> string(8) “28407791”
    [“NCERROR”]=> string(1) “0”
    [“BRAND”]=> string(4) “VISA”
    [“CVCCheck”]=> string(2) “NO”
    [“AAVCheck”]=> string(2) “NO”
    [“IP”]=> string(11) “66.20.91.58”
    [“SHASIGN”]=> string(40) “B4FE23903D3855E33C50C439238E81553A228692” }

    // WooCommerce Plugin Array
    array(27) {
    [“AAVADDRESS”]=> string(0) “”
    [“AAVCHECK”]=> string(2) “NO”
    [“AAVZIP”]=> string(0) “”
    [“ACCEPTANCE”]=> string(7) “test123”
    [“AMOUNT”]=> string(4) “0.02”
    [“BIN”]=> string(0) “”
    [“BRAND”]=> string(4) “VISA”
    [“CARDNO”]=> string(16) “XXXXXXXXXXXX1111”
    [“CCCTY”]=> string(0) “”
    [“CN”]=> string(13) “test19 test19”
    [“COMPLUS”]=> string(0) “”
    [“CURRENCY”]=> string(3) “GBP”
    [“CVCCHECK”]=> string(2) “NO”
    [“ECI”]=> string(0) “”
    [“ED”]=> string(4) “0216”
    [“FXAMOUNT”]=> string(0) “”
    [“FXCURRENCY”]=> string(0) “”
    [“IP”]=> string(11) “66.20.91.58”
    [“IPCTY”]=> string(0) “”
    [“NCERROR”]=> string(1) “0”
    [“ORDERID”]=> string(3) “475”
    [“PAYID”]=> string(8) “28407791”
    [“PM”]=> string(10) “CreditCard”
    [“STATUS”]=> string(1) “5”
    [“SUBBRAND”]=> string(0) “”
    [“TRXDATE”]=> string(8) “02/26/14”
    [“VC”]=> string(0) “” }

    string(40) “fe31a3c32fbfaaf36b5ea234b917b2ff2e69a77e”
    string(40) “b4fe23903d3855e33c50c439238e81553a228692”

    Any help would be appreciated to resolve this issue.

  • The topic ‘Barclaycard ePDQ WooCommerce payment gateway for wordpress – Verification Error’ is closed to new replies.