setRedirectMessage(Mage::helper('paypal')->__('You will be redirected to the PayPal website.')); return $result; } /** * Set data to block * * @return Mage_Core_Block_Abstract */ protected function _beforeToHtml() { $customerId = Mage::getSingleton('customer/session')->getCustomerId(); if (Mage::helper('paypal')->shouldAskToCreateBillingAgreement($this->_config, $customerId) && $this->canCreateBillingAgreement()) { $this->setCreateBACode(Mage_Paypal_Model_Express_Checkout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT); } return parent::_beforeToHtml(); } }