当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Payment_Block_Form类代码示例

本文整理汇总了PHP中Mage_Payment_Block_Form的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Form类的具体用法?PHP Mage_Payment_Block_Form怎么用?PHP Mage_Payment_Block_Form使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Mage_Payment_Block_Form类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _prepareLayout

 protected function _prepareLayout()
 {
     if (Mage::app()->getLayout()->getBlock('head')) {
         Mage::app()->getLayout()->getBlock('head')->addJs('gateway.js');
     }
     return parent::_prepareLayout();
 }
开发者ID:payfort,项目名称:magento,代码行数:7,代码来源:Gateway.php

示例2: _toHtml

 protected function _toHtml()
 {
     $this->model->setCode($this->getMethodCode());
     $this->_issuer = $this->model->getIssuerOptionArray();
     Mage::dispatchEvent('payment_form_block_to_html_before', array('block' => $this));
     return parent::_toHtml();
 }
开发者ID:jonathanselander,项目名称:Magento,代码行数:7,代码来源:Default.php

示例3: _construct

 protected function _construct()
 {
     $session = Mage::getSingleton('checkout/session');
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $quote = Mage::getModel('checkout/session')->getQuote();
     $quoteData = $quote->getData();
     $amount = $quoteData['grand_total'];
     $config = Mage::getStoreConfig('payment/pagantis');
     $this->setData('iframe', $config['iframe']);
     $discount = $config['discount'];
     if ($discount == 'true') {
         $this->setData('discount', 1);
     } else {
         $this->setData('discount', 0);
     }
     switch ($config['environment']) {
         case Pagantis_Pagantis_Model_Webservice_Client::ENV_TESTING:
             $this->setData('public_key', $config['account_code_test']);
             break;
         case Pagantis_Pagantis_Model_Webservice_Client::ENV_PRODUCTION:
             $this->setData('public_key', $config['account_code_real']);
             break;
     }
     $end_of_month = $config['end_of_month'];
     $title = $config['title'];
     $this->setData('total', $amount);
     $mark->setTemplate('pagantis/form.phtml');
     $this->setTemplate('pagantis/pagantis.phtml')->setMethodLabelAfterHtml($mark->toHtml())->setMethodTitle($title);
     return parent::_construct();
 }
开发者ID:pagantis,项目名称:pagamastarde-magento,代码行数:31,代码来源:Form.php

示例4: _construct

 protected function _construct()
 {
     parent::_construct();
     $gateway = Mage::getSingleton('billmateinvoice/gateway');
     $this->matched = $gateway->isMatched;
     $this->setTemplate('billmate/changeaddress.phtml');
 }
开发者ID:ext,项目名称:magento,代码行数:7,代码来源:Changeaddress.php

示例5: _construct

 protected function _construct()
 {
     if ($logoUrl = $this->getLogoUrl()) {
         $this->setMethodLabelAfterHtml('<div class="svea-payment-logos"><img class="svea-method-logo" src="' . $logoUrl . '"></div>');
     }
     return parent::_construct();
 }
开发者ID:LybeAB,项目名称:magento-module,代码行数:7,代码来源:Abstract.php

示例6: _construct

 public function _construct()
 {
     parent::_construct();
     if ($this->_template_filename) {
         $this->setTemplate($this->_template_filename);
     }
 }
开发者ID:payin7-payments,项目名称:payin7-magento,代码行数:7,代码来源:Payin7.php

示例7: _construct

 protected function _construct()
 {
     parent::_construct();
     if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) {
         $this->setMethodTitle('');
     }
 }
开发者ID:Maikel-Koek,项目名称:magento,代码行数:7,代码来源:Abstract.php

示例8: _construct

 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->setTemplate('payu_account/form.phtml');
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml("<img src='{$this->getThumbnailSrc()}' height='20' alt='{$this->__('PayU account')}'/> {$this->__('PayU account')}");
     return parent::_construct();
 }
开发者ID:eggman64,项目名称:plugin_magento,代码行数:10,代码来源:Form.php

示例9: _construct

 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->setTemplate('payu_account/form.phtml');
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml('<img src="' . Mage::getModel('payu_account/config')->getThumbnailSrc() . '" height="20" alt="PayU"/> ' . Mage::helper('payu_account')->__('PayU account'));
     return parent::_construct();
 }
开发者ID:par-orillonsoft,项目名称:plugin_magento,代码行数:10,代码来源:Form.php

示例10: _beforeToHtml

 protected function _beforeToHtml()
 {
     $code = $this->getMethodCode();
     $this->_helper = Mage::helper('worldpay');
     $this->_code = $code;
     return parent::_beforeToHtml();
 }
开发者ID:JGMAgency,项目名称:worldpay-magento,代码行数:7,代码来源:PaypalForm.php

示例11: _beforeToHtml

 /**
  * 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();
 }
开发者ID:jonathanweb,项目名称:ebanx-magento,代码行数:11,代码来源:Form.php

示例12: _construct

 /**
  * Construct
  */
 protected function _construct()
 {
     $gateway_select = Mage::getStoreConfig("payment/msp/gateway_select");
     if ($gateway_select) {
         parent::_construct();
         $this->setTemplate('msp/gateways.phtml');
     }
 }
开发者ID:xiaoguizhidao,项目名称:storebaby.it,代码行数:11,代码来源:Gateways.php

示例13: _construct

 protected function _construct()
 {
     $logo = Mage::getConfig()->getBlockClassName('core/template');
     $logo = new $logo();
     $logo->setTemplate('flexshopper/payment/logo.phtml')->setFlexHref('http://www.flexshopper.com/')->setFlexLogoSrc('http://cdn.flexshopper.com/media/wysiwyg/plugin/fs_badge_pay.png');
     $this->setTemplate('flexshopper/payment/form.phtml')->setRedirectMessage()->setMethodTitle('')->setMethodLabelAfterHtml($logo->toHtml());
     return parent::_construct();
 }
开发者ID:RabeaWahab,项目名称:Magento_FlexPrice,代码行数:8,代码来源:Form.php

示例14: _construct

 /**
  * Init default template for block
  */
 protected function _construct()
 {
     $this->setTemplate('pnsofortueberweisung/form/ideal.phtml');
     // replace title with image
     $this->setMethodTitle('');
     $this->setMethodLabelAfterHtml('<img src="' . Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/en/ideal/logo_155x50.png') . '">');
     return parent::_construct();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:11,代码来源:Ideal.php

示例15: _construct

 protected function _construct()
 {
     parent::_construct();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('vtweb/logo.phtml');
     $this->setTemplate('vtweb/form.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
 }
开发者ID:sonyy,项目名称:tesisecommerce,代码行数:8,代码来源:Form.php


注:本文中的Mage_Payment_Block_Form类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。