CRM-14684 refactor function that identifies is a site supports back-office contributions
[civicrm-core.git] / CRM / Member / Page / Tab.php
index 2aad0d971cf983622c767b8f78fc7262dba252e7..d4eb65e215dc00dafbe00fcb44ab705e02437d00 100644 (file)
@@ -321,7 +321,9 @@ class CRM_Member_Page_Tab extends CRM_Core_Page {
     $this->preProcess();
 
     // check if we can process credit card membership
-    $newCredit = CRM_Core_Payment::allowBackofficeCreditCard($this);
+    $newCredit = CRM_Core_Config::isEnabledBackOfficeCreditCardPayments();
+    $this->assign('newCredit', $newCredit);
+
     if ($newCredit) {
       $this->_isPaymentProcessor = TRUE;
     }