Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid values returned from AuthorizeAndCapture (Test) #78

Closed
ZombiesWithCoffee opened this issue Mar 23, 2015 · 4 comments
Closed

Invalid values returned from AuthorizeAndCapture (Test) #78

ZombiesWithCoffee opened this issue Mar 23, 2015 · 4 comments

Comments

@ZombiesWithCoffee
Copy link

In test mode (and could be production), the AuthorizeAndCapture method of CIM returns null/0 for all properties. I would assume that it isn't parsing the returned data correctly. A valid transaction returns Approved = false and AuthorizationCode/Amount to null.

            var response = gateway.AuthorizeAndCapture(order);

            if (!response.Approved){
                throw new AuthorizeNetException("The transaction was not approved.");
            }

            var payment = new Payment{
                DateTime = DateTime.Now,
                Type = PaymentType.CreditCard,
                AuthorizationCode = response.AuthorizationCode,
                Amount = response.Amount
            };

response.ResponseCode = "OkI00001Successful."
response.Approved = false
response.CAVResponse = "Blank or not present = CAVV not validated"

@andoband
Copy link

I'm seeing this too, and it's preventing me from using this library.

@ZombiesWithCoffee
Copy link
Author

They've fixed the problem, but haven't done a release yet so you can't use NuGet to update it.

For now, download the entire SDK, compile it, and add it as a reference.

@ramittal
Copy link
Contributor

Thanks for reporting the issue. The fix was made in the future branch fcec6e8 and will be included in the next release.

@brianmc
Copy link
Contributor

brianmc commented Jun 2, 2015

Fix included in latest release 1.8.4

@brianmc brianmc closed this as completed Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants