osCmax v2.5 User Manual
Results 1 to 3 of 3

ESFNET module broken... why!?

This is a discussion on ESFNET module broken... why!? within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; It does a print_r in a string assignment with a 2nd argument of true... this is of course wrong and ...

      
  1. #1
    Lurker
    Join Date
    Oct 2004
    Posts
    4
    Rep Power
    0


    Default ESFNET module broken... why!?

    It does a print_r in a string assignment with a 2nd argument of true... this is of course wrong and causes the script to break... why? I enabled output buffering for it, and it displays the order information... why would this module be included if it doesn't even work?

  2. #2
    Lurker
    Join Date
    Oct 2004
    Posts
    4
    Rep Power
    0


    Default

    I did like I said and assigned the output of print_r to a var, but this was debugging info and not needed, so I removed. Still wasn't working. I decided to echo the response and it was telling me my card was expired... eh? 03/2007 certainly isn't an expiired card. Then I looked at what was being sent:

    Code:
    $form_data = array(
            Method => MODULE_PAYMENT_EFSNET_METHOD,
            StoreID => MODULE_PAYMENT_EFSNET_STOREID,
            StoreKey   => MODULE_PAYMENT_EFSNET_STOREKEY,
            ApplicationID => 'EFSNet OSCommerce Method',
            ReferenceNumber => $customer_id,
            TransactionAmount => number_format($order->info['total'], 2),
            SalesTaxAmount => number_format($order->info['tax'], 2),
            AccountNumber => $_POST['efsnet_cc_number'],
            ExpirationMonth => $_POST['efsnet_cc_expires_month'],
            ExpirationYear => $_POST['efsnet_cc_expires_month'],
            BillingName => urlencode($_POST['efsnet_cc_owner']),
            BillingAddress => $order->customer['street_address'],
            BillingCity => $order->customer['city'],
            BillingState => $order->customer['state'],
            BillingPostalCode => $order->customer['postcode'],
            BillingCountry => $order->customer['country']['title'],
            BillingPhone => $order->customer['telephone'],
            BillingEmail => $order->customer['email_address'],
            ShippingName => urlencode($order->delivery['firstname']." ".$order->delivery['lastname']),
            ShippingAddress => $order->delivery['street_address'],
            ShippingCity => $order->delivery['city'],
            ShippingState => $order->delivery['state'],
            ShippingPostalCode => $order->delivery['postcode'],
            ShippingCountry => $order->delivery['country']['title'],
            ClientIPAddress => $_SERVER['REMOTE_ADDR']
            );
    ExpirationYear => $_POST['efsnet_cc_expires_month'],

    BOO!
    changed to
    ExpirationYear => $_POST['efsnet_cc_expires_year'],

    and all is well.

  3. #3
    Lurker
    Join Date
    Mar 2005
    Posts
    3
    Rep Power
    0


    Default

    How is it working for you?

    I fixed the expiration prob and now things go through to efsnet great but now the big problem is there is a bad declined card response from the module
    everytime a card goes through even when it's good and authorizes over at
    efsnet. It goes back to the "payment information/fill in card" page after
    submission and gives a declined card message in the browser bar.

    Is there a way you could help me out with this?

    I'm wondering if it has something to do with curl and or post/get methods. I
    would really be greatful if you could look at this for me and see if your
    clients are running into the same problems.

Similar Threads

  1. All links to images/ are broken
    By Kamenotejin in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 09-16-2005, 12:58 PM
  2. Broken Images
    By auntie22 in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 07-24-2005, 10:32 AM
  3. SSL is broken
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 26
    Last Post: 07-12-2005, 03:47 PM
  4. Broken heading
    By h4ppy_girl in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-08-2004, 08:23 AM
  5. ALL LINKS BROKEN, Please Help!
    By greg_pdq in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 08-25-2004, 12:37 PM

Bookmarks

Posting Permissions

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