Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / "Authorizenet is in Testing mode"...please help!

"Authorizenet is in Testing mode"...please help!

Locked

Views: 12,389

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
5 Jan 2007, 12:18 AM
#1
dle14 avatar

dle14

New Zenner

Join Date:
Aug 2006
Posts:
8
Plugin Contributions:
0

"Authorizenet is in Testing mode"...please help!

Hi,

This is my first time with Zen Cart... so far it's been real easy to work with and I'm very pleased. I've recently just setup an account with Authorize.net and I'm using thier payment module (Authorize.net (AIM)) in the admin section of the shopping cart. I've turned off the "Test Mode" in my Authorize account and also turned on the "Production" mode in the payment module... but for some reason it says "Authorizenet is in testing mode". I've contacted them and they told me to do two more things:

Step 1: If you are passing x_test_request=true in your code, change to x_test_request=false

Step 2: Make sure you are posting to https://secure.authorize.net/gateway/transact.dll

Not sure what that means or where to find it. Can anyone please help me? I told the boss man the site will go live soon... :-/

5 Jan 2007, 1:41 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: "Authorizenet is in Testing mode"...please help!

in your zen cart admin look in modules-> payment -> authorize.net
there should be a switch in there for test or production.

5 Jan 2007, 2:47 AM
#3
dle14 avatar

dle14

New Zenner

Join Date:
Aug 2006
Posts:
8
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

Yeah I've switched it to production and gone back to the store but the message is still there for some reason... Is there any other place that has to be changed?

5 Jan 2007, 2:53 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Authorizenet is in Testing mode"...please help!

Do you have BOTH the Authorize.net (or Authorize.net SIM) ... AND the Authorize.net AIM modules installed?

If you are using AIM, then edit the non-AIM (ie: SIM) module and click Remove to de-install it.

Both modules check for "test" mode independently. If either is enabled and in test mode, the warning alert will show.

5 Jan 2007, 3:05 PM
#5
dle14 avatar

dle14

New Zenner

Join Date:
Aug 2006
Posts:
8
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

Thanks for helping me out with this... I do have the other Authorize.net (sim) installed but it is turned off... does that matter or do I need to go ahead and uninstall it like you said?

5 Jan 2007, 3:16 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: "Authorizenet is in Testing mode"...please help!

You need to uninstall any payment or shipping module that you are not using

5 Jan 2007, 7:11 PM
#7
dle14 avatar

dle14

New Zenner

Join Date:
Aug 2006
Posts:
8
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

You guys are great... that seemed to work! Thank you so much for your help.

17 Jan 2007, 1:55 AM
#8
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

How do I set the authorize.net transaction URL in zen cart?
Everytime I try to process an order it is not accepted because it is posting to the production URL. How do I change the transaction URL to https://test.authorize.net/gateway/transact.dll?
Also, in the admin tool I have the transaction mode set to TEST.
thanks!

17 Jan 2007, 5:20 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Authorizenet is in Testing mode"...please help!

The module is designed to work with production servers, not test servers.
The "test mode" switch in the admin sends "test" transactions ... to the production server ... which will send back the appropriate responses for test transactions.

Why do you think you need to send to the test server specifically?

18 Jan 2007, 2:08 PM
#10
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

I'm unable to complete the check out process. When I try to check out with the test credit card numbers I get this error:
"(TESTMODE) This transaction cannot be accepted. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance."
I would like to be sure the order is completed correctly. I asked authorize.net why this was happening. Their reply was, because the transaction is being posted to the production URL. I don't know how to get Zen Cart to post the transaction to their test URL. Please advise.

18 Jan 2007, 5:13 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Authorizenet is in Testing mode"...please help!

Is your authorizenet account in Test mode or Production mode?
What happens if you put it in Production mode?

19 Jan 2007, 5:23 AM
#12
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

When I put authorize.net in production mode it returns the same error:
" This transaction cannot be accepted. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance."

It seems the problem is that when it's in the test mode it's posting the transaction to the production URL. I need the test mode to post the transaction to the test URL, which is:
https://test.authorize.net/gateway/transact.dll

Is there any way to modify the URL so that it posts to the test URL?
Please let me know. Thanks!

19 Jan 2007, 5:29 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Authorizenet is in Testing mode"...please help!

I don't think you'll see anything better by posting to the test server. The production server is designed to handle test transactions as tests on live accounts.
The "test" server is specifically intended for use with test accounts for developers, not production accounts.

You can force it to use the test server by manually adding a new file called:
/includes/extra_datafiles/authnet_aim.php
containing:```

<?php define('AUTHORIZENET_DEVELOPER_MODE', 'on'); ?>

For debug purposes, you might be better advised to simply turn on debug logging within the module (available since v1.3.7) so you can see what problems it's encountering, and deal with those error messages specifically.
19 Jan 2007, 9:13 PM
#14
debeaujeu avatar

debeaujeu

New Zenner

Join Date:
Aug 2006
Location:
Kirkland, WA
Posts:
82
Plugin Contributions:
1

Re: "Authorizenet is in Testing mode"...please help!

To change to Authorize.net test server URL, you need to specify it in the “includes/modules/payment/authorizenet_aim.php” file at or near line 360.
Replace $url = 'https://secure.authorize.net/gateway/transact.dll'; by the server URL provided to you by Authorize.net in their account confirmation e-mail message. Most probably it will be:
$url = 'https://test.authorize.net/gateway/transact.dll'; but double check from the e-mail message.
It seems that Authorize.net issues different kinds of temporary test accounts and some of them need to send the test transactions to the test server URL. My free temporary Authorize.net developer account is set up that way.

deBeaujeu

20 Jan 2007, 7:23 AM
#15
graygraphics avatar

graygraphics

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

Thank you.
That worked! I really appreciate your help.
:D

20 Jan 2007, 7:32 AM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Authorizenet is in Testing mode"...please help!

Are you looking at an old version of AuthorizeNet? Zen Cart has this built into the AuthorizeNet AIM that comes with Zen Cart ...

You shouldn't need to touch the code for that test server ...

22 Jan 2007, 10:38 PM
#17
debeaujeu avatar

debeaujeu

New Zenner

Join Date:
Aug 2006
Location:
Kirkland, WA
Posts:
82
Plugin Contributions:
1

Re: "Authorizenet is in Testing mode"...please help!

To take full advantage of Authorize.net “x_test_request” and the ZC Admin Test/Production switch feature, a connection has to be first established with the prod server (https://secure/authorize.net/gateway/transact.dll ). Unfortunately, Authorize.net does not permit Developer Test Accounts to connect to the prod server (confirm in writing by Authorize.net).

In the account confirmation e-mail message received from Authorize.net, it is specifically stated that the test transactions should be sent to the test server at URL: https://test.authorize.net/gateway/transact.dll . So, the Developer Test Account owner has no choice but to modify the hard-coded URL in the “includes/modules/payment/authorizenet_aim.php” payment program in order to send test transactions.

Authorize.net claims that the test server (https://test.authorize.net/gateway/transact.dll) supports the “x_test_request” feature, but I did not test it. After going through the trouble of modifying the server hard-coded URL, the “x_test_request” feature becomes less attractive.

The Developer Test Account is really meant for application Developer activities and not for Customer implementation of the ZC shopping cart. The ZC implementer should go directly to a live account (Merchant or Production account) and use the ZC Admin Test/Production switch.

deBeaujeu

22 Jan 2007, 10:45 PM
#18
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: "Authorizenet is in Testing mode"...please help!

Perhaps you explain in more detail why you think you need to use the test server?

23 Jan 2007, 7:53 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Authorizenet is in Testing mode"...please help!

There is no need to edit code.

To clarify:

  1. deBeauJeu correctly states

The Developer Test Account is really meant for application Developer activities and not for Customer implementation of the ZC shopping cart. The ZC implementer should go directly to a live account (Merchant or Production account) and use the ZC Admin Test/Production switch.

  1. For those who feel the need to test the module as a developer and not use a real live account, there is no need to change code to do this.
    Simply add this switch in a new file as explained (above and reposted here):

DrByte:

You can force it to use the test server by manually adding a new file called:
/includes/extra_datafiles/authnet_aim.php
containing:

<?php define('AUTHORIZENET_DEVELOPER_MODE', 'on'); ?>
> This will switch the URL to test.authorize.net ... which, again, requires that you have a developers account in order to submit transactions.

3. For those who are simply having difficulties in getting the module to work and wish to debug its operation, simply turn on the debug settings in the module via Admin->Modules->Payment->Authorizenet AIM->Edit->Debug Mode = Log to File or Log and Email.
The log files will appear in the /cache folder (wherever it's located, as long as it's chmod 777), as of v1.3.7.  This location will change in v1.4.x

----------------
There is no need to edit code to make this happen. 
If you are not using v1.3.7 or greater then you'll need to upgrade to take full advantage of these features, as well as the various bugfixes applied to this stage.