From: Lisa Marie Maginnis <lisam@fsf.org> Date: Mon, 15 Aug 2016 21:07:08 +0000 (-0400) Subject: merged changes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=refs%2Fheads%2Fdev;p=tc-ipn-receiver.git merged changes --- 0ad898012cc611b17f86943ae22c9a7c58eb8170 diff --cc trustcommerceIPN.php index a2e5fc6,a7c7be3..28ce87b --- a/trustcommerceIPN.php +++ b/trustcommerceIPN.php @@@ -203,9 -282,13 +282,16 @@@ EOF echo $msg; CRM_Core_Error::debug_log_message($msg); + /* Disable cancelling transactions */ + $input['skipComponentSync'] = 1; - return $this->failed($objects, $transaction, $input); ++ + /* Action for repeated failures */ + if(MAX_FAILURES <= $this->getLastFailures($ids['contributionRecur'])) { + //$this->disableAutoRenew(($ids['contributionRecur'])); + $this->disableAutorenew($ids['processor_id']); + } + + return $this->failed($objects, $transaction); } if ($sendNotification) {