cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between these two calls?

AuthorizeNet.CustomerGateway(...).Authorize(order)

 

and

 

Authorize,netGateway(...).Send(authoirzationrequest)

 

Don't they both essentially do the same thing?

pedrocoelho1
Contributor
1 ACCEPTED SOLUTION
14 REPLIES 14

They both seem to authorize a transaction in different ways.

 

Can anyone point me in the right direction for at least documentation on these methods.

pedrocoelho1
Contributor

all the source in on github. for this is in

https://github.com/AuthorizeNet/sdk-dotnet/blob/6a03be7ad593519936863e35b430be3166c1ff14/Authorize.N...

 

yes, basically the same as Authorize(order) use the send method

RaynorC1emen7
Expert

I stepped through the code and I'm gettingan error when I use AuthorizeNet.CustomerGateway(...).Authorize(order)

 

Its says that it can't be processed because I'm in TestMode.  Is this a known issue?

Was it the exact error message? it is a exception or just the response text?

And yes, in Testmode no transaction will be generated.

 

what did you use for cc# for testing?

I understand that a "real" transaction will not be made.

 

I get an error on this line of code:

 

LINE 102 in HttpXmlUtility.cs

 

"thingy.directResponse = _xmlDoc.ChildNodes[1].ChildNodes[1].InnerText;"

 

The value for InnerText is = "ErrorE00009The payment gateway account is in Test Mode. The request cannot be processed."

 

This is causing an exception and I dont understand why I cant process the order in TestMode.

It fail without a xml return which create the exception.

 

I dont understand why I cant process the order in TestMode.

http://developer.authorize.net/tools/cimerrorcodes/

It the way they setup CIM, get a test account for testing.

 

So what is the difference between LiveMode and TestMode in a sandbox account?

BTW, I'm using a sandbox account.

Then there is no reason for testmode to be on.

 

http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Sandbox-Accounts-vs-Liv...

 

They have it because they want the setup on live and test server the same.