/** * Delete a pledge Payment - Note this deletes the contribution not just the link. * * @param array $params * Input parameters. * * @return array * API result */ function civicrm_api3_pledge_payment_delete($params) { if (CRM_Pledge_BAO_PledgePayment::del($params['id'])) { return civicrm_api3_create_success(array('id' => $params['id']), $params, 'PledgePayment', 'delete'); } else { return civicrm_api3_create_error('Could not delete payment'); } }