PDA

View Full Version : Using a test account with Authorize.net



jack_strit
05-21-2008, 09:27 AM
Hi,

I signed up for a test account with authorize.net has anyone used a test account in OSCMax to test out the store? I have not gotten it to work yet. Every time I go through payment and confirm order, it sends me back to the payment page.

:army:

Thanks to all,

J

jack_strit
05-23-2008, 07:35 AM
Ok, what I have found out so far: The test account has to send POST data to https://test.authorize.net/gateway/transact.dll in file authorizenet_direct.php

I tried Authorize.net 's sample php code and (after inputting my test account ID etc.) got it to work splendidly with AIM....what that indicates is that the server settings are fine, curl is properly compiled etc. But....the oscmax authorize.net module still does not work. I did change settings a billion times in the admin, trying all combinations of settings in the Authorize.net module.

The only thing that I got to change is the error I was getting. Instead of "There is a card error" it says. "There was and unspecified card error" . So, we have gone from card errors to unspecified card errors.

Anybody with more clues on this?

My next step: Compare code of the oscmax authorize.net module and the code that Authorize.net gives on its website.

Bam-bam-bam-baaaa...

The adventure continues!

J

michael_s
05-23-2008, 02:40 PM
I do not believe the included Anet module will work with a test account. You need to use a real account set to test mode. I have no experience with a test account, so I cannot be any help.

The authorizenet module works fine for me every time. That unspecified error usually means there is a problem with curl or how the module is accessing curl. Check your test code and modify the curl settings in the osCMax module to match.

jack_strit
05-23-2008, 04:51 PM
Thanks michael_s,

OK here is the unofficial hack to use a Authorize.net developers test account with the authorize.net module in OSCMax!


I did not have an account with authorize.net, so I signed up for a developers account. They usually give you your account data by the next day and it is free.

I checked the Curl stuff faithfully and still did not work, etc, etc....

I just did this in the file authorizenet_direct.php around line 87:


//$form_data['x_Card_Code'] = "$x_Card_Code";
And it worked. Remember on line 154 to use



$url= 'https://test.authorize.net/gateway/transact.dll'
Basically there are "test" CC numbers like

Visa: 4242424242424242
Exp: any date after the present day

that you can use for a test (the was after signing up for a test account with authorize.net).

The problem is that oscmax requires the CVV number and to my knowledge there is no "test" CVV number. By disabling the POST of the CVV number, the test works.

You can then sign into you developers account at https://test.authorize.net/ and go to search->transactions and do a search on whatever name you used, whatever date the transaction was, etc. and find the transaction in authorize.net's database. Be aware that the database contains all the transactions of everyone using these test accounts, so these test transactions will be viewable by other people. Only use test cc# , don't use personal data etc.


Be sure to uncomment the CVV x_card_code POST and change the url back to "secure.authorize.net/gateway/transact.dll" when you use a live account. (Or restore from the backup that you should have made of the original file :rolleyes:).

JG

cordoval
01-01-2009, 05:28 PM
Hi Jack Strit,

Please, how could I deactivate sending the x_code post?

Many thanks,

cordoval
01-01-2009, 05:42 PM
Oh nevermind. It was lines above. I did it in an oscommerce with cvv module but it fails to work with the test account. I am getting this error:

There has been an error processing your credit card. Please try again.

How can I discover what it is?

Thanks,