Started fixing comments, added template for disableAutorenew()
authorLisa Marie Maginnis <lisam@fsf.org>
Tue, 2 Aug 2016 15:26:13 +0000 (11:26 -0400)
committerLisa Marie Maginnis <lisam@fsf.org>
Tue, 2 Aug 2016 15:26:13 +0000 (11:26 -0400)
trustcommerceIPN.php

index 532c70aad9f84b7dad646b80d5b2ef24bb3be76d..f28a5b7c3a1a516b77694219aab2026826f337d2 100644 (file)
@@ -133,6 +133,10 @@ class CRM_Core_Payment_trustcommerce_IPN extends CRM_Core_Payment_BaseIPN {
   }
 }
 
+  protected function disableAutorenew($recur_id) {
+
+  }
+
   protected function checkDuplicate($input, $ids) {
 //    $sql='select id from civicrm_contribution where receive_date like \''.$input['date'].'%\' and total_amount='.$input['amount'].' and contact_id='.$ids['contact'].' and contribution_status_id =  1 limit 1';
     $sql="select id from civicrm_contribution where trxn_id = '".$ids['trxn_id']."'";
@@ -280,6 +284,7 @@ class CRM_Core_Payment_trustcommerce_IPN extends CRM_Core_Payment_BaseIPN {
     $ids['contribution'] = $result->coid;
     $ids['contributionRecur'] = $result->id;
     $ids['contact'] = $result->contact_id;
+    $ids['processor_id'] = $billingid;
 
     if (!$ids['contributionRecur']) {
       CRM_Core_Error::debug_log_message("Could not find billingid: ".$billingid);