CRM-21492 - Don't reject recurring contributions whose amount is different from the...
authorJon goldberg <jon@palantetech.coop>
Tue, 28 Nov 2017 21:15:30 +0000 (16:15 -0500)
committerJon goldberg <jon@palantetech.coop>
Tue, 28 Nov 2017 21:15:30 +0000 (16:15 -0500)
CRM/Core/Payment/AuthorizeNetIPN.php

index 2b87415b19b9d178868ff5fbdfc9ccac99aeb2f4..966cffa7ecc63adc417507a98423228016be1e5b 100644 (file)
@@ -118,14 +118,6 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN {
       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();