cancel
Showing results for 
Search instead for 
Did you mean: 

from where to read the 97 error reason code??

When i run my code i get an error like "(99) This transaction cannot be accepted" which is since transaction id is invalid. But i cannot read this anywhere in my application in order to customize my error message to state the exact reason that is the Transaction id is invalid.

Can any one say how to read error responses???

jay3dec
Contributor
2 REPLIES 2

A lot of the errors don't return verbose error text, meaning the text they do give isn't particularly helpful. Lots of people have asked about this, and I'm surprised there isn't an error codes API of some sort by now, but I've decided to just scarf up all the text from the Response Reason Code Tool (I just finished running all 319 codes with a script) and turn them into a PHP class people can use. For anyone using other languages - sorry, you'll just have to adapt.

 

Back with a link in a few hours.

TJPride
Expert

http://www.fentonwebdesignfirm.com/downloads/Authorize.net/AuthorizeNetErrors.txt

 

Should be fairly straightforward to use. Just download and rename to .php. This is a compilation of the error code info here:

http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Re...

 

And all the responses from here:

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

 

When there were multiple choices, I went with what looked like the best option for simple, and defaulted to the response reason code tool for verbose. The result is not necessarily perfect, since the source data is obviously not perfect either, but it's better than what you have now.