X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FConfig.php;h=8a4ed0df0e48961cc08ee17b64b2407c29cc2036;hb=44b6505d5c061003fbc25cb1204d3c0f6c5b26d3;hp=72553ed90eec137d449a46ea199fd880713da50e;hpb=785b0cfda8edb302604577e5992ad8168ddca3d8;p=civicrm-core.git diff --git a/CRM/Core/Config.php b/CRM/Core/Config.php index 72553ed90e..8a4ed0df0e 100644 --- a/CRM/Core/Config.php +++ b/CRM/Core/Config.php @@ -862,19 +862,10 @@ AND /** * Is back office credit card processing enabled for this site - ie are there any installed processors that support - * on-site processing + * it? * @return bool */ static function isEnabledBackOfficeCreditCardPayments() { - // restrict to type=1 (credit card) payment processor payment_types and only include billing mode types 1 and 3 - $processors = CRM_Core_PseudoConstant::paymentProcessor(FALSE, FALSE, - "billing_mode IN ( 1, 3 ) AND payment_type = 1" - ); - if (count($processors) > 0) { - return TRUE; - } - return FALSE; + return CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting(array('BackOffice')); } } -// end CRM_Core_Config -