diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 427477386ef1..e2b64a60afef 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -109,15 +109,15 @@ protected function supportsPreApproval() { * Should form building stop at this point? */ public function buildForm(&$form) { - if ($this->_processorName == 'PayPal Express' || $this->_processorName == 'PayPal Pro') { + if ($this->supportsPreApproval()) { $this->addPaypalExpressCode($form); - if ($this->_processorName == 'PayPal Express') { + if ($this->_processorName == ts('PayPal Express')) { CRM_Core_Region::instance('billing-block-post')->add(array( 'template' => 'CRM/Financial/Form/PaypalExpress.tpl', 'name' => 'paypal_express', )); } - if ($this->_processorName == 'PayPal Pro') { + if ($this->_processorName == ts('PayPal Pro')) { CRM_Core_Region::instance('billing-block-pre')->add(array( 'template' => 'CRM/Financial/Form/PaypalPro.tpl', ));