Skip to content

Commit

Permalink
Merge pull request civicrm#9789 from fliespl/patch-2
Browse files Browse the repository at this point in the history
CRM-19979 - Too big amount saved despite error
  • Loading branch information
eileenmcnaughton authored Mar 19, 2017
2 parents f1b0966 + 68da30b commit de3565b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Core/Payment/AuthorizeNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public function doDirectPayment(&$params) {

case self::AUTH_ERROR:
$params['payment_status_id'] = array_search('Failed', $contributionStatus);
break;
$errormsg = $response_fields[2] . ' ' . $response_fields[3];
return self::error($response_fields[1], $errormsg);

case self::AUTH_DECLINED:
$errormsg = $response_fields[2] . ' ' . $response_fields[3];
Expand Down

0 comments on commit de3565b

Please sign in to comment.