Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
dstewart

EFSnet module NOT authorizing

Recommended Posts

Ideas, suggestions, or comments please.

 

RE: http://www.oscommerce.com/community/contributions,1420

Using:

define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

$Id: efsnet.php,v 1.1 2005/02/26 13:02:43 RajMcVay Exp $

 

For either ?CreditCardCharge? or ?CreditCardAuthorize?, we get in the red stripe:

Your credit card was declined. Please try another card or contact your bank for more info.

EVEN THOUGH EFSnet approved/authorized the transaction and posted them to the merchant account.

 

In the ?test? mode, we get:

Warning:

Wrong parameter count for print_r() in /OUR_PATH_HIDDEN/includes/modules/payment/efsnet.php on line 172

Warning: Cannot add header information - headers already sent by (output started at /OUR_PATH_HIDDEN/includes/modules/payment/efsnet.php:172)

in /OUR_PATH_HIDDEN/includes/functions/general.php on line 29

Share this post


Link to post
Share on other sites

I'm NOT 100% sure this makes everything work, but it at least gets past the credit card declined messages.

 

 

RE: http://www.oscommerce.com/community/contributions,1420

define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

$Id: efsnet.php,v 1.1 2005/02/26 13:02:43 RajMcVay Exp $

 

 

File: 'includes/modules/payments/efsnet.php'

 

 

PROBLEM #1:

For either ?CreditCardCharge? or ?CreditCardAuthorize?, we get:

Your credit card was declined. Please try another card or contact your bank for more info.

even though EFSnet approved/authorized the transaction and posted them to the merchant account.

 

RESOLUTION #1:

 

Change:

if ( ($result['ResponseCode'] != '0') || ($result['ResponseCode'] != '00') )

to

if ( ($result['ResponseCode'] != '0') || ($result['ResultCode'] != '00') )

(The way it was, the 'if' statement is ALWAYS true and shows only the "declined" message.

This corrects the '00' to the correct 'ResultCode'.)

 

Change:

$efsnetyes = 'Not Compiled';

to

$efsnetyes = 'UseTheSectionAnyway';

(This makes the other section of the 'if' statement, which seems to be correct, function).

 

 

 

PROBLEM #2:

In the ?test? mode, we get:

Warning:

Wrong parameter count for print_r() in /OUR_PATH_HIDDEN/includes/modules/payment/efsnet.php on line 172

Warning: Cannot add header information - headers already sent by (output started at /OUR_PATH_HIDDEN/includes/modules/payment/efsnet.php:172)

in /OUR_PATH_HIDDEN/includes/functions/general.php on line 29

 

RESOLUTION #2:

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT,

'error_message=' . urlencode(MODULE_PAYMENT_EFSNET_TEXT_DECLINED_MESSAGE.

$result['ResultMessage'].$result['data'].print_r($order->info, true)),

'SSL', true, false));

to:

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT,

'error_message=' . urlencode(MODULE_PAYMENT_EFSNET_TEXT_DECLINED_MESSAGE .

"RESULT MESSAGE: " . $result['ResultMessage'] . $result['data'] .

"print_r($order->info)" ),

'SSL', true, false) );

(This fixes the error, but causes a loss of function in the message. A better programmer can probably correct this much better than me!).

Share this post


Link to post
Share on other sites

 

 

 

THIS ACTUALLY WORKS, THIS ACTUALLY WORKS....

 

AFTER 2 MONTHS OF MY LIFE HAVE BEEN WASTED ON THIS @#$% MODULE, IT ACTUALLY WORKS....

 

Thank you so VERY, VERY Much for fixing this for us.....

 

Rob


-------------------------------

Rob

Huntsville, AL

Share this post


Link to post
Share on other sites
Guest

Hi will anyone be adding CVV or CVV2 support to efsnet?

 

THIS ACTUALLY WORKS, THIS ACTUALLY WORKS....

 

AFTER 2 MONTHS OF MY LIFE HAVE BEEN WASTED ON THIS @#$% MODULE, IT ACTUALLY WORKS....

 

Thank you so VERY, VERY Much for fixing this for us.....

 

Rob

Share this post


Link to post
Share on other sites
Guest

I just downloaded the EFSnet payment module for osCommerce and the changes recommended above have already been implemented. I'm using osCommerce 2.2ms2-051113. I get the red banner error message that the credit card cannot be validated. Neither can my storeID nor my transaction key be validated. I have the payment module in test mode. Am I using the test credit card of 4111111111111111. I'm looking for suggestions as to what to try next.

Share this post


Link to post
Share on other sites

You need a working test account from:

 

http://www.concordefsnet.com/misc/EFSnetFreeTestAccount.asp

 

The module calls the StoreID username, and the StoreKey Transaction Key.

 

You also need to fix the test server URLs, per my note in the Contributions section.

 

I just ran my first transaction on my test server.

 

Muddling through all this took me a few hours, but the actual work was minutes, as usual.

 

Best,

Ken

Share this post


Link to post
Share on other sites

I get a sql database timeout with efsnet payment module.

I understand that I need to use a curl script.

 

BUT, I can't find info on exactly what script do I use and EXACTLY where

to I put it?

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×