Exemplo n.º 1
0
 protected function _prepareLayout()
 {
     if (!$this->helper('sagepaysuite')->creatingAdminOrder()) {
         $this->setChild('token.cards.li', $this->getLayout()->createBlock('sagepaysuite/form_tokenList', 'token.cards.li')->setCanUseToken($this->canUseToken())->setPaymentMethodCode('sagepayserver'));
     }
     return parent::_prepareLayout();
 }
Exemplo n.º 2
0
 protected function _prepareLayout()
 {
     if (Mage::helper('sagepaysuite')->surchargesModuleEnabled() == true) {
         if (!$this->helper('sagepaysuite')->creatingAdminOrder()) {
             $this->setChild('surcharges.list', $this->getLayout()->createBlock('sagepaysurcharges/checkout_surchargesList', 'surcharges.list'));
         }
     }
     return parent::_prepareLayout();
 }
Exemplo n.º 3
0
 protected function _prepareLayout()
 {
     $_code = 'sagepayserver';
     if (!$this->helper('sagepaysuite')->creatingAdminOrder()) {
         if (Mage::helper('sagepaysuite')->surchargesModuleEnabled() == true) {
             $this->setChild('surcharges.list', $this->getLayout()->createBlock('sagepaysuite/checkout_surchargesList', 'surcharges.list'));
         }
     } else {
         $_code = 'sagepayserver_moto';
     }
     $this->setChild('token.cards.li', $this->getLayout()->createBlock('sagepaysuite/form_tokenList', 'token.cards.li')->setCanUseToken($this->canUseToken())->setPaymentMethodCode($_code));
     return parent::_prepareLayout();
 }
Exemplo n.º 4
0
 protected function _prepareLayout()
 {
     $this->setChild('token.cards.li', $this->getLayout()->createBlock('sagepaysuite/form_tokenList', 'token.cards.li')->setCanUseToken($this->canUseToken())->setPaymentMethodCode('sagepaydirectpro'));
     return parent::_prepareLayout();
 }
Exemplo n.º 5
0
 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }