Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    42
    Plugin Contributions
    0

    Default USA ePay Module not working - error

    Hi, I have the latest ZenCart shopping cart version and I just installed the USA ePay module from the contribution section. The store is www.gobibledownloads.com.

    Every time I try to use a credit card it gives me the following error:

    "Error Error reading from card processing gateway. - Your card has been declined. Please re-enter in your card information, try another card, or contact the store owner for assistance."

    The transaction information is getting all the way to the USA ePay terminal, I can see the details in the virtual terminal:

    Transaction Result
    Transaction ID: 78482953
    Type: Sale
    Status: Error (Unable to verify card ID number.)
    Auth Code: 133634
    Avs Result: Address: Match & 5 Digit Zip: Match
    CVV2 Result: No response from association
    Error Code: 10116

    Verified By VisaŽ Authentication
    CAVV: - Not Sent -
    ECI: - Not Sent -
    Validated: - CAVV Not Sent -

    Transaction Info
    Date: 09/23/2008
    Time: 03:35 PST
    Invoice: 25
    Order ID:
    PO #:
    Description: GoBible Downloads
    Amount: 3.00
    Tax: 0.00
    Cardholder: (name erased)
    Data Source: Card Not Present, Manually Keyed
    Cardnumber:
    xxxxxxxxxxxxxxxx (Visa) Unlock Card
    Expiration: xxxx
    AVS Street: (address erased)
    AVS Zip: (zip erased)

    Transaction Source
    User: auto
    Source: shopping cart
    Server IP: 67.205.6.227
    Client IP: 70.239.223.202

    Billing Address
    Customer ID:
    First Name: (name erased)
    Last Name: (name erased)
    Company:
    Street: (street erased)
    Street 2:
    City: Florissant
    State: Missouri
    Zip: 63033
    Country: Un
    Phone: (phone erased)
    Email: (email erased)

    Shipping Address
    First Name:
    Last Name:
    Company:
    Street:
    Street 2:
    City:
    State:
    Zip:
    Country:
    Phone: (phone erased)

  2. #2
    Join Date
    Nov 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: USA ePay Module not working - error

    i am getting issues with address matching zip code. I see that your show the country to be "Un" same as mine shows..i think this causes a problem cause the zip code does match the city.
    If you find an answer please let me know.

  3. #3
    Join Date
    Mar 2010
    Location
    Phoenix, AZ
    Posts
    12
    Plugin Contributions
    1

    Default Re: USA ePay Module not working - error

    Wow, two years later, and I'm just now responding!

    Okay. It looks like usaEpay requires the state to be in the two letter format. Zencart tries to send it as a state name. i.e. "Arizona" instead of "AZ". This is a problem!

    If you open up usaepay_api.php and replace the billing and shipping address code around line 228 with this, it will validate the address properly.

    PHP Code:
       // Billing Information
            
    $tran->billfname=($order->billing['firstname']);
            
    $tran->billlname=($order->billing['lastname']);
            
    $tran->billcompany=($order->billing['company']);
            
    $tran->billstreet=($order->billing['street_address']);
            
    $tran->billstreet2=($order->billing['suburb']);
            
    $tran->billcity=($order->billing['city']);
            
    //change billing state abbreviation
            
    $state_abbr $db->Execute("select zone_code
                                      from " 
    TABLE_ZONES "
                                      where zone_name = '" 
    $order->billing['state'] . "'");
                                      
    $order->billing['state'] = $state_abbr->fields['zone_code'];
            
    $tran->billstate=($order->billing['state']);
            
    //echo ' '.$tran->billstate;
            
    $tran->billzip=($order->billing['postcode']);
            
    $tran->billcountry=($order->billing['country']['title']);
            
    $tran->billphone=($order->customer['telephone']);
            
    $tran->email=($order->customer['email_address']);

            
    // Shipping Information
            
    $tran->shipfname=($order->delivery['firstname']);
            
    $tran->shiplname=($order->delivery['lastname']);
            
    $tran->shipcompany=($order->delivery['company']);
            
    $tran->shipstreet=($order->delivery['street_address']);
            
    $tran->shipstreet2=($order->delivery['suburb']);
            
    $tran->shipcity=($order->delivery['city']);
            
    // change delivery state abbreviation
              
    $state_abbr $db->Execute("select zone_code
                              from " 
    TABLE_ZONES "
                              where zone_name = '" 
    $order->delivery['state'] . "'");
                             
    $order->delivery['state'] = $state_abbr->fields['zone_code'];
            
    $tran->shipstate=($order->delivery['state']);
            
    $tran->shipzip=($order->delivery['postcode']);
            
    $tran->shipcountry=($order->delivery['country']['title']);
            
    $tran->shipphone=($order->customer['telephone']);

            
    $usaepay_error = (!($tran->Process()));

            
    $result $tran->result;
            
    $resultcode $tran->resultcode;
            
    $authcode $tran->authcode;
            
    $refnum $tran->refnum;
            
    $batch $tran->batch;
            
    $avs_result $tran->avs_result;
            
    $cvv2_result $tran->cvv2_result;
            
    $error $tran->error;
            
    $errorcode $tran->errorcode;
            
    $curlerror $tran->curlerror;
            
    $acsurl $tran->acsurl;
            
    $pareq $tran->pareq;
            
    $response_msg_to_customer  $reason $tran->error
    I hope that helps you! I've gotten past this part and am receiving another error entirely! I'll update the zencart module if I fix it (w00t for open source!)

 

 

Similar Threads

  1. v139d USA ePay module sql syntax
    By rmjr in forum Addon Payment Modules
    Replies: 1
    Last Post: 10 Apr 2013, 08:05 PM
  2. Can't find USA EPAY payment module
    By djpaley in forum General Questions
    Replies: 0
    Last Post: 14 May 2008, 01:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg