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

Sample code does not properly verify responseCode #146

Open
mintplugins opened this issue Feb 15, 2019 · 0 comments
Open

Sample code does not properly verify responseCode #146

mintplugins opened this issue Feb 15, 2019 · 0 comments
Labels

Comments

@mintplugins
Copy link

The sample code for a credit card transaction does not verify the responseCode properly. Using fraud filters in my sandbox, I have a scenario where my response code is 4, which means the transaction was declined.

But this check allows it to go through as though the transaction was all fine:
https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/charge-credit-card.php#L97

Notice the response code is not being checked there at all.

@gnongsie gnongsie added the bug label Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants