Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fix for Authorize.net AIM module


roger5

Recommended Posts

If you are in test mode with Authorize.net, you are using their AIM system (which they say has now become mandatory), and you have SSL;

 

...and if when putting through a test order and during credit card processing you get an error with text similar to: "[TEST MODE] Error: either the merchant ID or password is wrong..."

 

...then here is what fixed this problem for me.

 

In the authorizenet_aim.php program file, there is a URL specification that checks if you are in test mode, and if so, then uses the line $URL = 'https://test.authorize.net/gateway/transact.dll'

 

But if you have switched "test off" then it instead uses the line $URL = 'https://secure.authorize.net/gateway/transact.dll'

 

Well, in my case, I have to use ..."secure.authorize.net"... (the 2nd version above) in both cases - for "test" as well as for "test off". This is because they have my account interface on their main server ("secure.authorize.net") instead of on their "test" server - which is where the first URL is pointing.

 

So if you are being driven crazy by this error, then just try changing the line in authorizenet_aim.php from ..."test.authorize.net"... to ..."secure.authorize.net"... and use that for both testing and when you go live. Apparently, they are using their main server now even for "test mode" - at least they are for me.

 

- Roger

Link to comment
Share on other sites

I forgot to mention in prior post that the line in authorizenet_aim.php where the offending line of code had to be corrected is at about line 280.

 

Incidentally, I only became aware of this solution because, by chance, I happened to finally speak with a tech support agent at Authorize.net who actually knew what he was talking about. Each of the agents I had spoken to earlier didn't have a clue and claimed the problem wasn't theirs. So, if you are an Authorize.net customer and have a problem getting their tech support to be helpful (always PHONE them, NEVER rely on their on-line support except on weekends), just hang up and redial 1-877-447-3938 option 1, then 4. If you're lucky, on the next call you'll get someone else to help you, hopefully someone as smart as the guy I finally got.

 

- Roger

Link to comment
Share on other sites

  • 2 weeks later...

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