Reply
Member
Posts: 2
Registered: ‎05-22-2012
Accepted Solution

Problems with test transaction in live mode

It is my understanding that I should be able to submit a test transaction to my live server account which is currently set to "Live Mode". I'm using the C# AIM API and having an issue when submitting an auth request using the following:

 

var gateway = new AuthorizeNet.Gateway(my_api_login, my_transactionKey, true);

var authResponse = gateway.Send(authRequest);

 

The gateway responds with:

Response Code 3 

Subcode 2

Message "The merchant login ID or password is invalid or the account is inactive."

 

If I change the "testMode" boolean parameter in the AuthorizeNet.Gateway constructor from true to false, the auth is correctly approved, but a live transaction is created that I have to void.

 

Is there a way to submit a "test" transaction to a live account in "Live Mode" such that it correctly gets approved, but no actual transaction is created?

 

 


Accepted Solutions
Solution
Accepted by topic author larryschlatre
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Problems with test transaction in live mode

//False for production server URL, True to test server URL

var gateway = new AuthorizeNet.Gateway(my_api_login, my_transactionKey, false);


authRequest.TestRequest = "True";//Add this to set test request on for either the production server or test server.

View solution in original post


All Replies
Solution
Accepted by topic author larryschlatre
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Problems with test transaction in live mode

//False for production server URL, True to test server URL

var gateway = new AuthorizeNet.Gateway(my_api_login, my_transactionKey, false);


authRequest.TestRequest = "True";//Add this to set test request on for either the production server or test server.

Member
Posts: 2
Registered: ‎05-22-2012

Re: Problems with test transaction in live mode

thanks for the help!!

Member
Posts: 2
Registered: ‎10-22-2020

Re: Problems with test transaction in live mode

I have a problem with the payment. I don't see the payments with credit card on my bank account.
Maybe the problem is that I'm still in test mode? What do I have to do? It's urgent!
Administrator
Posts: 157
Registered: ‎11-29-2017

Re: Problems with test transaction in live mode

It is possible. Test mode can be enabled/disabled by using the API or in the Merchant Interface.

 

This article can help:

https://support.authorize.net/s/article/What-Is-Test-Mode-and-How-Do-I-Turn-It-off-and-On

 

Member
Posts: 1
Registered: ‎10-22-2020

Re: Problems with test transaction in live mode

curl -X POST \
  -u "<YOUR_KEY>:<YOUR_Secret>" \
  --data "period=monthly" \
  --data "interval=2" \
  --data "item[name]=Test plan" \
  --data "item[amount]=50000" \
  --data "item[currency]=INR" \
  https://api.razorpay.com/v1/plans

GarageBand for PC Download

Member
Posts: 1
Registered: ‎10-27-2020

Re: Problems with test transaction in live mode

Thanks for the help TargetPayandBenefits.