AuthorizeNet / sdk-dotnet

.Net SDK for Authorize.Net API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authorize.NET fails for certain successful transactions

Joebeazelman opened this issue · comments

I have encountered an issue where failed transactions report successful or "(I00001:Successful.)" .

This code in the GetApiResponse function looks for a response != null. A successful response, however, can also be null as discussed here:

#142

Has this issue been resolved yet or has there been sample code to work around this issue. It's unclear from the forum discussion if there has been any resolution.

Hi @Joebeazelman,
Apologies for the inconvenience.

In order to better help you, I would like to understand which request you are trying to send, as well as the exact response that you are getting.

With regards to #142, a successful response will always return an API response, which can be accessed by the GetApiResponse() of the corresponding controller.

In the event that an API response is null, it means that an error occurred. In this scenario, Authorize.Net will send you an error response, which can be accessed by the GetErrorResponse() of the same controller.

To better understand this, please take a look at the Create Customer Payment Profile API sample code.