Disabled membersync component from tcIPN
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 28 Dec 2015 19:27:02 +0000 (14:27 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Mon, 28 Dec 2015 19:27:02 +0000 (14:27 -0500)
trustcommerceIPN.php

index 3b6807ee8bc41763acef546030afc9e39a6a3a7e..b09992dd22426a127a37671a5decb764966cf72e 100644 (file)
@@ -202,8 +202,10 @@ class CRM_Core_Payment_trustcommerce_IPN extends CRM_Core_Payment_BaseIPN {
       $msg = 'TrustCommerceIPN: Created contribution: '.$ids['contribution'].' for contact: '.$ids['contact'].' amount: $'.$input['amount'].' trxn_id: '.$input['trxn_id'].' status: Failed'."\n";
       echo $msg;
       CRM_Core_Error::debug_log_message($msg);
-      
-      return $this->failed($objects, $transaction);
+
+      /* Disable cancelling transactions */
+      $input['skipComponentSync'] = 1;
+      return $this->failed($objects, $transaction, $input);
     }
 
     if ($sendNotification) {