* @param array $params
* Input parameters.
*
- * @throws API_Exception
* @return array
* Api result array
+ *
+ * @throws \CiviCRM_API3_Exception
+ * @throws API_Exception
*/
function civicrm_api3_payment_cancel($params) {
$eftParams = [
* - 2 financial items totalling $300 linked to the Accounts receivable financial_trxn
* - 6 entries in the civicrm_entity_financial_trxn linked to line items - totalling $450.
* - 5 entries in the civicrm_entity_financial_trxn linked to contributions - totalling $550.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testUpdatePayment() {
CRM_Core_Config::singleton()->userPermissionClass->permissions = ['administer CiviCRM', 'access CiviContribute', 'edit contributions'];