示例#1
0
 /**
  * Render block HTML
  * If method is not directpost - nothing to return
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getMethod()->getCode() != Mage::getSingleton('authorizenet/directpost')->getCode()) {
         return null;
     }
     return parent::_toHtml();
 }
示例#2
0
 protected function _construct()
 {
     parent::_construct();
     //unset all session's transaparent;
     Mage::getModel('ewayrapid/request_transparent')->unsetSessionData();
     $this->setTemplate('ewayrapid/form/transparent_notsaved.phtml');
 }
示例#3
0
 protected function _construct()
 {
     parent::_construct();
     if (!$this->isWebpos()) {
     } else {
         $this->setTemplate('webpos/webpos/payment/ccsave.phtml');
     }
 }
 protected function _construct()
 {
     parent::_construct();
     // Only replace the template on frontend side else we lose the ability to place orders from magento admin (The condition we are using doesn't work for all pages example like Magento connect pages, but definitely works in our context)
     if (!Mage::app()->getStore()->isAdmin()) {
         $this->setTemplate('anattadesign/awesomecheckout/onepage/payment/form/cc.phtml');
     }
 }
示例#5
0
文件: Cc.php 项目: raphaelpor/magento
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('adyen/form/cc.phtml');
     if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) {
         $this->setMethodTitle('');
     }
 }
示例#6
0
 protected function _construct()
 {
     parent::_construct();
     $this->setIsRecurring(Mage::helper('ewayrapid')->isRecurring());
     $this->setTemplate('ewayrapid/form/transparent_saved.phtml');
     //unset all session's transaparent
     Mage::getModel('ewayrapid/request_transparent')->unsetSessionData();
 }
 protected function _construct()
 {
     parent::_construct();
     if (!Mage::getStoreConfigFlag('payment/wirecard_checkout_page_cc/pci3DssSaqAEnable', Mage::app()->getStore()->getId())) {
         $this->setTemplate('wirecard_checkout_page/seamless/cc.phtml');
     } else {
         $this->setTemplate('wirecard_checkout_page/seamless/cc-nopci.phtml');
     }
 }
示例#8
0
 public function _construct()
 {
     parent::_construct();
     /**
      * we updated the template to add a "save this card" checkbox to the
      * "Pay with Card" payment option
      */
     $this->setTemplate('customerparadigm_cardsavecheckbox/form/cc.phtml');
 }
示例#9
0
 protected function _prepareLayout()
 {
     if (Mage::app()->getLayout()->getBlock('head')) {
         Mage::app()->getLayout()->getBlock('head')->addLinkRel('stylesheet', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');
         Mage::app()->getLayout()->getBlock('head')->addCss('css/payfort/merchant-page.css');
         Mage::app()->getLayout()->getBlock('head')->addJs('payfort/payfort_fort.js');
     }
     return parent::_prepareLayout();
 }
示例#10
0
 protected function _construct()
 {
     parent::_construct();
     if (!Mage::getSingleton('admin/session')->isLoggedIn()) {
         //this is the frontend -> do nothing
     } else {
         //this is backend, modify to swiper template
         $this->setTemplate('sm/xpos/payment/cc.phtml');
     }
 }
 /**
  * Insert module's javascript on rendering, only if it wasn't inserted before
  * @return Mage_Core_Block_Abstract
  */
 protected function _prepareLayout()
 {
     //adicionaremos o JS do pagseguro na tela que usará o bloco de cartao logo após o <body>
     $head = Mage::app()->getLayout()->getBlock('after_body_start');
     if ($head && false == $head->getChild('js_pagseguro')) {
         $scriptBlock = Mage::helper('ricardomartins_pagseguro')->getPagSeguroScriptBlock();
         $head->append($scriptBlock);
     }
     return parent::_prepareLayout();
 }
示例#12
0
 protected function _construct()
 {
     parent::_construct();
     $paymentMethodIcon = $this->getSkinUrl('images/adyen/img_trans.gif');
     $label = Mage::helper('adyen')->_getConfigData("title", "adyen_cc");
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('adyen/payment/payment_method_label.phtml')->setPaymentMethodIcon($paymentMethodIcon)->setPaymentMethodLabel($label)->setPaymentMethodClass("adyen_cc");
     $this->setTemplate('adyen/form/cc.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
 }
示例#13
0
 protected function _construct()
 {
     parent::_construct();
     /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
     $helper = Mage::helper('wirecard_checkoutseamless');
     if (!$helper->getConfigData('ccard/pci3_dss_saq_a_enable')) {
         $this->setTemplate('wirecard/checkoutseamless/seamless/cc.phtml');
     } else {
         $this->setTemplate('wirecard/checkoutseamless/seamless/cc-nopci.phtml');
     }
 }
示例#14
0
 protected function _construct()
 {
     parent::_construct();
     $template = $this->setTemplate('pinpay/form/pinpay.phtml');
     if (!Mage::app()->getStore()->isAdmin()) {
         $mark = Mage::getConfig()->getBlockClassName('core/template');
         $mark = new $mark();
         $mark->setTemplate('pinpay/form/mark.phtml');
         // Appends the "Powered by PinPayments logo to payment method description
         $template->setMethodLabelAfterHtml($mark->toHtml());
     }
 }
示例#15
0
 protected function _prepareLayout()
 {
     //pega public key para settar no aquivo mercadopago.js
     $model = Mage::getModel('mercadopago/custom_payment');
     $public_key = $model->getConfigData('public_key');
     //init js no header
     $block = Mage::app()->getLayout()->createBlock('core/text', 'js_mercadopago');
     $block->setText(sprintf('
             <script type="text/javascript">var PublicKeyMercadoPagoTransparent = "' . $public_key . '";</script>
             <script type="text/javascript" src="%s"></script>', Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS, true) . 'mercadopago/mercadopago.js'));
     $head = Mage::app()->getLayout()->getBlock('after_body_start');
     if ($head) {
         $head->append($block);
     }
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     //        Mage::app()->getLayout()->getUpdate()->addHandle('pagseguro');
     //adicionaremos o JS do pagseguro na tela que usará o bloco de cartao logo após o <body>
     $scriptblock = Mage::app()->getLayout()->createBlock('core/text', 'js_pagseguro');
     $scriptblock->setText(sprintf('
             <script type="text/javascript">var RMPagSeguroSiteBaseURL = "%s";</script>
             <script type="text/javascript" src="%s"></script>
             <script type="text/javascript" src="%s"></script>
             ', Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true), Mage::helper('ricardomartins_pagseguro')->getJsUrl(), Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS, true) . 'pagseguro/pagseguro.js'));
     $head = Mage::app()->getLayout()->getBlock('after_body_start');
     //        Mage::app()->getLayout()->getBlock('head')->addJs('pagseguro/pagseguro.js');
     if ($head) {
         $head->append($scriptblock);
     }
     return parent::_prepareLayout();
 }
示例#17
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('merchantware/directpost/form.phtml');
 }
示例#18
0
 /**
  * Init Ofone pay from to use it on frontend
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('ogone/form.phtml');
 }
示例#19
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('bradfellows/form/tokenized.phtml');
 }
示例#20
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('authorizenetcim/payment/form/cc.phtml');
 }
 /**
  * setting up block template
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('chargepayment/form/creditcard.phtml');
 }
示例#22
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('paybox/direct/form.phtml');
 }
示例#23
0
 protected function _construct()
 {
     parent::_construct();
     $this->setIsRecurring(Mage::helper('ewayrapid')->isRecurring());
     $this->setTemplate('ewayrapid/form/direct_saved.phtml');
 }
示例#24
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('iugu/form/cc.phtml');
 }
示例#25
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('totalcoin/standard/form.phtml');
 }
示例#26
0
 /**
  * Add UK domestic cards additional fields as child block
  * 
  * Forks a clone, but with a different form
  *
  * @return Mage_PaypalUk_Block_Direct_Form
  */
 public function _beforeToHtml()
 {
     $child = clone $this;
     $this->setChild('uk_domestic', $child->setTemplate('paypaluk/direct/form.phtml'));
     return parent::_beforeToHtml();
 }
示例#27
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('magebase/dps/pxpost/form.phtml');
 }
示例#28
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('morecc/cc.phtml');
 }
示例#29
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('payment/form/ccsave.phtml');
 }
示例#30
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('pay/pay.phtml');
 }