AuthorizeNet / sdk-dotnet

.Net SDK for Authorize.Net API
Other
149 stars 206 forks source link

getTransactionDetailsRequest throws XML exception #278

Open Bb2jake opened 4 years ago

Bb2jake commented 4 years ago

Certain transactions are throwing the following error when trying to get the transaction details

System.InvalidOperationException: 'There is an error in XML document (1, 40).'

Inner Exception

was not expected. Most requests are successful. Just a few specific transactions have this error, but I can find no differences between the transactions to explain the exception behavior.
gnongsie commented 4 years ago

Hi,

Thank you for reaching out to us. Can you confirm if there is anything different between the successful request and the failed request? Maybe there are some slight differences in the data.

Bb2jake commented 4 years ago

I've looked at them side by side. There's literally no difference except the credit card that was used. It's the same customer, same name, all the info is the same.

And the request itself is the exact same except for the transaction id.

Bb2jake commented 4 years ago

I can retrieve the data via the postman POST call. After looking at the data retrieved, the only difference between the failed requests via the SDK and successful is this

"purchaseOrderDateUTCDateTime": "0001-01-01T00:00:00", "purchaseOrderDateUTC": "0001/01/01"

under transaction -> order