Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize Net Error


justinpr

Recommended Posts

Hi:

Our OsCommerce is processing response error 3(general error) from Authorize Net. I looked at the code, but it doesn't seem incorrect. Here's the code:

 

function before_process() {

global $HTTP_POST_VARS;

 

if ($HTTP_POST_VARS['x_response_code'] == '1') return;

if ($HTTP_POST_VARS['x_response_code'] == '2') {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_AUTHORIZENET_TEXT_DECLINED_MESSAGE), 'SSL', true, false));

}

// Code 3 is an error - but anything else is an error too (IMHO)

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_AUTHORIZENET_TEXT_ERROR_MESSAGE), 'SSL', true, false));

}

 

Why is it capturing error 3? Thanks !

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...