Skip to content

Commit

Permalink
Merge pull request civicrm#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 and sluc23 committed Jan 10, 2018
2 parents 697a952 + 9c92688 commit fea91e3
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 fea91e3

Please sign in to comment.