Jump to content
Sign in to follow this  
roger5

fix for Authorize.net AIM module

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×