Skip to content
Snippets Groups Projects
Commit 31b49137 authored by eileen's avatar eileen
Browse files

financial#135 Remove unreachable doDirectPayment from manual processor

doDirectPayment is only ever called (deprecated) when doPayment is not overriden (for quite some time now). This is
unreachable & can be removed
parent c4525838
Branches
No related tags found
No related merge requests found
......@@ -238,25 +238,6 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment {
return TRUE;
}
/**
* Submit a manual payment.
*
* @param array $params
* Assoc array of input parameters for this transaction.
*
* @return array
*/
public function doDirectPayment(&$params) {
$statuses = CRM_Contribute_BAO_Contribution::buildOptions('contribution_status_id');
if ($params['is_pay_later']) {
$result['payment_status_id'] = array_search('Pending', $statuses);
}
else {
$result['payment_status_id'] = array_search('Completed', $statuses);
}
return $result;
}
/**
* Should a receipt be sent out for a pending payment.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment