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

CRM-19970 - Too big amount saved despite error #9789

Merged
merged 1 commit into from
Mar 19, 2017

Conversation

fliespl
Copy link
Contributor

@fliespl fliespl commented Feb 5, 2017

Steps to reproduce:
setup authorize.net payment
issue donation of huge amount (in my case $1,250,000 - one million)
response is error, yet contribution is saved as successful
Problem lies in how authorize net is handling error. It's simply marked as failed (and problably later marked as completed).
Response from auth.net API is: code=3, message=The transaction amount submitted was greater than the maximum amount allowed.



Steps to reproduce:
setup authorize.net payment
issue donation of huge amount (in my case $1,250,000 - one million)
response is error, yet contribution is saved as successful
Problem lies in how authorize net is handling error. It's simply marked as failed (and problably later marked as completed).
Response from auth.net API is: code=3, message=The transaction amount submitted was greater than the maximum amount allowed.
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@JoeMurray
Copy link
Contributor

NB: JMA fixed an issue with auth.net errors silently being ignored. @pradpnayak could you link to that PR and see if there is overlap.

@eileenmcnaughton
Copy link
Contributor

I'm going to merge this as it's clear an error should be thrown in this instance.

I'd prefer this function to throw the error, but the calling function (doPayment) should throw an error in this instance

@eileenmcnaughton eileenmcnaughton merged commit ad16923 into civicrm:master Mar 19, 2017
@eileenmcnaughton eileenmcnaughton changed the title CRM-19979 - Too big amount saved despite error CRM-19970 - Too big amount saved despite error Mar 19, 2017
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@fliespl fliespl deleted the patch-2 branch March 19, 2017 16:46
monishdeb pushed a commit to monishdeb/civicrm-core that referenced this pull request May 2, 2017
CRM-19979 - Too big amount saved despite error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants