AuthorizeNet.CustomerGateway(...).Authorize(order)
and
Authorize,netGateway(...).Send(authoirzationrequest)
Don't they both essentially do the same thing?
Solved! Go to Solution.
07-22-2014 01:48 PM
07-23-2014 08:22 AM
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.
07-22-2014 02:42 PM
all the source in on github. for this is in
yes, basically the same as Authorize(order) use the send method
07-22-2014 02:47 PM - edited 07-22-2014 02:47 PM
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?
07-22-2014 03:10 PM
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?
07-22-2014 03:27 PM - edited 07-22-2014 03:29 PM
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.
07-22-2014 03:35 PM
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.
07-22-2014 03:51 PM
So what is the difference between LiveMode and TestMode in a sandbox account?
07-22-2014 03:58 PM
BTW, I'm using a sandbox account.
07-22-2014 04:00 PM
Then there is no reason for testmode to be on.
They have it because they want the setup on live and test server the same.
07-22-2014 04:01 PM - edited 07-22-2014 04:03 PM