Skip to content

Commit

Permalink
Merge pull request #11338 from MegaphoneJon/CRM-21492
Browse files Browse the repository at this point in the history
CRM-21492 - Don't reject recurring contributions whose amount is diff…
  • Loading branch information
eileenmcnaughton authored Dec 7, 2017
2 parents 64e6ce2 + 1fe17ac commit 3bee9d3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions CRM/Core/Payment/AuthorizeNetIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ public function recur(&$input, &$ids, &$objects, $first) {
return FALSE;
}

// At this point $object has first contribution loaded.
// Lets do a check to make sure this payment has the amount same as that of first contribution.
if ($objects['contribution']->total_amount != $input['amount']) {
CRM_Core_Error::debug_log_message("Subscription amount mismatch.");
echo "Failure: Subscription amount mismatch<p>";
return FALSE;
}

$contributionStatus = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');

$transaction = new CRM_Core_Transaction();
Expand Down

0 comments on commit 3bee9d3

Please sign in to comment.