PDA

View Full Version : ESFNET module broken... why!?



carrja99
02-28-2005, 10:46 AM
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?

carrja99
02-28-2005, 11:04 AM
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:



$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! :D
changed to
ExpirationYear => $_POST['efsnet_cc_expires_year'],

and all is well.

wptech
03-11-2005, 11:22 AM
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.