CRM-19979 - Too big amount saved despite error
authorfliespl <a.rzadkowolski@gmail.com>
Sun, 5 Feb 2017 12:16:08 +0000 (13:16 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2017 12:16:08 +0000 (13:16 +0100)
commitd15a29b5c6d43f23900cbf7020577c90f713ed77
tree43f6c7a80007e98fc470342e077768066fad6e1b
parentd4a99d62066ec7aadfa62c505737f87146245231
CRM-19979 - Too big amount saved despite error

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.
CRM/Core/Payment/AuthorizeNet.php