Save contribution, prevents insertion failure
authorRuben Rodriguez <ruben@fsf.org>
Mon, 13 Mar 2017 14:51:47 +0000 (10:51 -0400)
committerRuben Rodriguez <ruben@fsf.org>
Mon, 13 Mar 2017 14:51:47 +0000 (10:51 -0400)
trustcommerceIPN.php

index 733e87e10196fa1aa6e1b9ce2b7e1f0f37ebd733..e93bf6b52b7febc1af16ae4411a4b6e2ada9fcd1 100644 (file)
@@ -161,7 +161,7 @@ class CRM_Core_Payment_trustcommerce_IPN extends CRM_Core_Payment_BaseIPN {
     $recur->fee = 0;
     $recur->net_amount = $input['amount'];
 
-    $contribution->save();
+    $objects['contribution']->save();
 
     if ($input['status'] == 1) {