• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Payment_Block_Form类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: _construct

 /**
  * construct method
  */
 protected function _construct()
 {
     $session = Mage::getSingleton('checkout/session');
     $this->setSession($session);
     $this->setCustomer(Mage::getSingleton('customer/session')->getCustomer());
     $this->setAddress($session->getQuote()->getBillingAddress());
     $this->setQuote($session->getQuote());
     return parent::_construct();
 }
开发者ID:technomagegithub,项目名称:olgo.nl,代码行数:12,代码来源:Abstract.php


示例17: _prepareLayout

 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();
 }
开发者ID:payfort,项目名称:magento-payfort,代码行数:9,代码来源:Gateway.php


示例18: _prepareLayout

 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     // This block might not be constructed
     // with whole magento layout
     if (Mage::app()->getLayout()->getBlock('head')) {
         Mage::app()->getLayout()->getBlock('content')->append(Mage::app()->getLayout()->createBlock('sign2pay/riskAssessment'));
     }
 }
开发者ID:ArjenMiedema,项目名称:magento-sign2pay,代码行数:9,代码来源:Sign2pay.php


示例19: _construct

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


示例20: _construct

 protected function _construct()
 {
     parent::_construct();
     // Acceptance Mark/Badge
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('amazon_payments/mark.phtml');
     $this->setTemplate('amazon_payments/form.phtml')->setMethodLabelAfterHtml($mark->toHtml())->setMethodTitle('');
 }
开发者ID:frognrainbow,项目名称:amazon-payments-magento-plugin,代码行数:9,代码来源:Form.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Mage_Payment_Block_Form_Cc类代码示例发布时间:2022-05-23
下一篇:
PHP Mage_Newsletter_Model_Subscriber类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap