-
Notifications
You must be signed in to change notification settings - Fork 403
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
Payment decline but receive payment in my authorize wallet #446
Comments
$creditCard = new AnetAPI\CreditCardType(); // Set the customer's identifying information // Set the customer's Bill To address add this section in // Create a transaction if ($response != null) { |
From the API reference documentation for php - CLICK php tab: To check for a successful charge you need to not look for a response code of 1, but rather null error messages and a response of OK:
That is how I do it in my code without issue. If you get a response of OK, but an error on the transaction response, sometimes that will have your decline/cvv error information. If you don't receive a response of OK, that might have your communication error information with authorize.net. From example: `$response = $controller->executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX);
|
No description provided.
The text was updated successfully, but these errors were encountered: