Hi all,
I will try to provide as much info as I can. I need to get this fixed before I go live. I am using the built in authorize.net module for osCMax. First I need to reference the following code
from /includes/modules/payment/authorizenet.php
This code checks the result of the cc_validation and then redirects to checkout_payment.php with an error result if there is an error. My problem is that if any one of the errors it is checking for actually occurs: instead of being redirected to the payment page with an error message, the customer is redirected to the login page and the osCsid changes. If you attempt to login at that point, you just keep geting redirected to the login page.Code:$result = $cc_validation->validate($HTTP_POST_VARS['authorizenet_cc_number'], $HTTP_POST_VARS['authorizenet_cc_expires_month'], $HTTP_POST_VARS['authorizenet_cc_expires_year'], $HTTP_POST_VARS['cvv'], $HTTP_POST_VARS['credit_card_type']); $error = ''; switch ($result) { case -1: $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4)); break; case -2: case -3: case -4: $error = TEXT_CCVAL_ERROR_INVALID_DATE; break; case -5: $error = TEXT_CCVAL_ERROR_CARD_TYPE_MISMATCH; break; case -6; $error = TEXT_CCVAL_ERROR_CVV_LENGTH; break; case false: $error = TEXT_CCVAL_ERROR_INVALID_NUMBER; break; } if ( ($result == false) || ($result < 1) ) { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&authorizenet_cc_owner=' . urlencode($HTTP_POST_VARS['authorizenet_cc_owner']) . '&authorizenet_cc_expires_month=' . $HTTP_POST_VARS['authorizenet_cc_expires_month'] . '&authorizenet_cc_expires_year=' . $HTTP_POST_VARS['authorizenet_cc_expires_year']; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); }
I don't really know where to look to track down this problem. I have confirmed that it has something to do with the code snippet above because this problem only occurs when anyone of those errors occurs. Any help would be greatly appreciated.
oh, and Happy Holidays!![]()





LinkBack URL
About LinkBacks










Bookmarks