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