From: Ruben Rodriguez Date: Mon, 13 Mar 2017 14:51:47 +0000 (-0400) Subject: Save contribution, prevents insertion failure X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7bd867b83b31039f75b8ffc9a6924ba3047f4bc9;p=tc-ipn-receiver.git Save contribution, prevents insertion failure --- diff --git a/trustcommerceIPN.php b/trustcommerceIPN.php index 733e87e..e93bf6b 100644 --- a/trustcommerceIPN.php +++ b/trustcommerceIPN.php @@ -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) {