CRM-14684 refactor function that identifies is a site supports back-office contributions
[civicrm-core.git] / CRM / Pledge / Page / Payment.php
index 34c078d1134f7abdb0c77507f4aecfc4cced919b..ac36d7e2d1619b545d6b17aec526748cc1552f60 100644 (file)
@@ -66,7 +66,7 @@ class CRM_Pledge_Page_Payment extends CRM_Core_Page {
       $this->assign('contactId', $this->_contactId);
 
       // check if we can process credit card contribs
-      CRM_Core_Payment::allowBackofficeCreditCard($this);
+      $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
 
       // check is the user has view/edit signer permission
       $permission = 'view';