Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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

Link to comment
Share on other sites

  • 2 weeks later...

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!).

Link to comment
Share on other sites

  • 2 weeks later...

 

 

 

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...
  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

  • 6 months later...

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...