<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
throw new API_Exception("Mandatory key(s) missing from params array: both contribution_id and entity_id are missing");
}
- return _civicrm_api3_basic_create('CRM_Core_BAO_FinancialTrxn', $params);
+ return _civicrm_api3_basic_create('CRM_Core_BAO_FinancialTrxn', $params, 'FinancialTrxn');
}
/**