}
$input['trxn_date'] = CRM_Utils_Date::processDate($params["trxn_date_{$row['contribution_id']}"]);
+ // @todo calling baseIPN like this is a pattern in it's last gasps. Call contribute.completetransaction api.
$baseIPN->completeTransaction($input, $ids, $objects, $transaction, FALSE);
// reset template values before processing next transactions
*/
protected $_inputParameters = array();
+ /**
+ * Only used by AuthorizeNetIPN.
+ *
+ * @deprecated
+ *
+ * @var bool
+ */
protected $_isRecurring = FALSE;
+ /**
+ * Only used by AuthorizeNetIPN.
+ *
+ * @deprecated
+ *
+ * @var bool
+ */
protected $_isFirstOrLastRecurringPayment = FALSE;
/**
$input['receipt_from_name'] = CRM_Utils_Array::value('receipt_from_name', $params, $domainFromName);
$input['receipt_from_email'] = CRM_Utils_Array::value('receipt_from_email', $params, $domainFromEmail);
}
- // @todo required for base ipn but problematic as api layer handles this
- $transaction = new CRM_Core_Transaction();
- $ipn = new CRM_Core_Payment_BaseIPN();
- $ipn->completeTransaction($input, $ids, $objects, $transaction, !empty($contribution->contribution_recur_id));
+ CRM_Contribute_BAO_Contribution::completeOrder($input, $ids, $objects, $transaction, !empty($contribution->contribution_recur_id), $contribution,
+ FALSE, FALSE);
return $params;
}