protected function _beforeToHtml()
 {
     $code = $this->getMethodCode();
     $this->_helper = Mage::helper('worldpay');
     $this->_code = $code;
     return parent::_beforeToHtml();
 }
Exemple #2
0
 /**
  * Prepare form contents before rendering it
  * @return string
  */
 protected function _beforeToHtml()
 {
     $ebanxConfig = Mage::getStoreConfig('payment/ebanx');
     $address = Mage::getSingleton('checkout/cart')->getQuote()->getBillingAddress();
     $country = strtolower($address->getCountry());
     return parent::_beforeToHtml();
 }
Exemple #3
0
 /**
  * Before rendering html, check if is block rendering needed
  *
  * @return Mage_Core_Block_Abstract
  */
 protected function _beforeToHtml()
 {
     if ($this->_getOrder()->getId() && $this->_getOrder()->getQuoteId() == $this->_getCheckout()->getLastQuoteId() && $this->_paymentMethodCode) {
         $this->_shouldRender = true;
     }
     if ($this->getGotoSection() || $this->getGotoSuccessPage()) {
         $this->_shouldRender = true;
     }
     return parent::_beforeToHtml();
 }
Exemple #4
0
 protected function _beforeToHtml()
 {
     $this->_prepareForm();
     return parent::_beforeToHtml();
 }
Exemple #5
0
 /**
  * Initialize data and prepare it for output
  */
 protected function _beforeToHtml()
 {
     return parent::_beforeToHtml();
 }