* @param $transactionReference
*
* @return bool
+ * @throws \CRM_Core_Exception
+ * @throws \CiviCRM_API3_Exception
*/
public function newOrderNotify($success, $privateData, $component, $amount, $transactionReference) {
$ids = $input = $params = [];
return FALSE;
}
- $transaction = new CRM_Core_Transaction();
-
// check if contribution is already completed, if so we ignore this ipn
if ($contribution->contribution_status_id == 1) {
$contribution->trxn_id = $ids['membership'];
}
}
- $this->completeTransaction($input, $ids, $objects, $transaction);
+ CRM_Contribute_BAO_Contribution::completeOrder($input, $ids, $objects);
return TRUE;
}