Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net error/display error


dino705

Recommended Posts

Hi-

My store has been working great until today but suddenly today, when customers try to confirm and submit their order, they get this error: "The server cannot connect to Authorize.net. Please check your cURL and server settings."

We have made no code or any other changes to the store or server settings. Any ideas as to what may have happened?

I called Authorize.net and they asked me for an error code. How do I get the error code?

Thanks.

Link to comment
Share on other sites

Assuming that you are using the Authorize.net AIM payment method (if not, you should be), then around line 258 change:

        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(implode(': ', $this->error) . ' ' . MODULE_PAYMENT_AUTHORIZENETAIM_TEXT_ERROR_MESSAGE), 'SSL', true, false));

to be:

        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(implode(': ', $this->error) . ' ' . MODULE_PAYMENT_AUTHORIZENETAIM_TEXT_ERROR_MESSAGE), 'SSL', true, false));

and the error code and description will be displayed on the checkout_payment page.

 

One thing to check is your server's time for accuracy.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

The file is includes/modules/payment/authorizenet_aim.php assuming that you are using the AIM payment method.

 

Well, I don't have the original code so compare what I gave you to what you have. There shouldn't be too many tep_redirect lines in that file. Sorry about that. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...