Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Authorize.net Testing


Recommended Posts

I have searched the forum for an answer without any luck. If this has been answered before or I am just an idiot I apologize.


I set the authorize.net module to test. Used the testing cc#'s to run the test. I hit checkout and the address changes to https://secure.authorize.net/gateway/transact.dll and I get an error saying, "There has been an error processing your credit card. Please try again." Is this suppose to happen because it is a test or is it suppose to go through the full process, but obviously sending a dummy transaction. Any tips or suggestions would be helpful.


Basically, I want to know how to test the module correctly so that I know everything works before I go live with the store. Thank you.


I am using

osCommerce 2.2-MS2 with

PHP Version 4.3.10

Link to comment
Share on other sites

Most likely you are using Simple Integration Method (SIM) instead of Advanced Integration Method (AIM). AIM requires an SSL certificate that would allow the merchants to remain on the website when paying for your product, keeping the look and feel of the website.


Actually I'm having a similar issue (http://www.oscommerce.com/forums/index.php?showtopic=169676) and nobody answers...

Link to comment
Share on other sites

I was having the same problem earlier today. I found this post though and just followed the directions of the first reply carefully. it's still not working perfectly but I'm definitely making headway...




oh, and these little hacks helped me figure out what was going on:

ben@rose:www-ssl$ diff -u catalog.backup1/includes/modules/payment/authorizenet.php  catalog/includes/modules/payment/authorizenet.php
--- catalog.backup1/includes/modules/payment/authorizenet.php   2005-09-12 13:43:08.000000000 -0700
+++ catalog/includes/modules/payment/authorizenet.php   2005-09-13 00:09:43.079752788 -0700
@@ -254,6 +254,9 @@
      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));
+      error_log('autorize.net processing error: '.$HTTP_POST_VARS["x_response_reason_code"].' '.$HTTP_POST_VARS["x_response_reason_text"]);
      // 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));




ben@rose:www-ssl$ diff -u catalog.backup1/checkout_process.php  catalog/checkout_process.php --- catalog.backup1/checkout_process.php        2005-09-12 14:14:19.000000000 -0700
+++ catalog/checkout_process.php        2005-09-12 20:56:16.000000000 -0700
@@ -10,6 +10,12 @@
  Released under the GNU General Public License

+  ob_start();
+  var_dump($_REQUEST);
+  $content = ob_get_contents();
+  ob_end_clean();
+  error_log($content);

// if the customer is not logged on, redirect them to the login page

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.

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