cancel
Showing results for 
Search instead for 
Did you mean: 

Method HttpXmlUtility.CheckForErrors() does not parse response properly

I've experienced problem while working with latest version of AuthorizeNet library (downloaded and built latest source code version from GitHub).

Method CheckForErrors() in HttpXmlUtility class traverses xmlDoc (response) and parses it.

By that algorythm, first child element of document element will be parsed and returned, and it turns to be <messages>...</messages> element, which is wrong; it should be <directResponse>...</directResponse> element, since this is where all data are stored.

Is it a known bug, and when a fix could be expected?

 

Thanx,

SmartstubsDeveloper

vedranmimic
Member
2 REPLIES 2

Branch it and fix it.

RaynorC1emen7
Expert

How can i know if only directResponse node should be parsed and returned, or entire xml response?

AuthorizeNet deserializes this xml response into "createCustomerProfileTransactionResponse" or something similar, and all these response classes should be changed if entire xml response needs to be parsed.

 

I made fix for me locally, just wonder if it will be fixed on master branch, i don't think i can commit code there :)