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

PHP Mage_Payment_Block_Form_Cc类代码示例

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

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



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

示例1: _toHtml

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


示例2: _construct

 protected function _construct()
 {
     parent::_construct();
     //unset all session's transaparent;
     Mage::getModel('ewayrapid/request_transparent')->unsetSessionData();
     $this->setTemplate('ewayrapid/form/transparent_notsaved.phtml');
 }
开发者ID:programmerrahul,项目名称:vastecom,代码行数:7,代码来源:Notsaved.php


示例3: _construct

 protected function _construct()
 {
     parent::_construct();
     if (!$this->isWebpos()) {
     } else {
         $this->setTemplate('webpos/webpos/payment/ccsave.phtml');
     }
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:8,代码来源:Cc.php


示例4: _construct

 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');
     }
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:8,代码来源:AnattaDesign_AwesomeCheckout_Block_Form_Cc.php


示例5: _construct

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


示例6: _construct

 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();
 }
开发者ID:programmerrahul,项目名称:vastecom,代码行数:8,代码来源:Saved.php


示例7: _construct

 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');
     }
 }
开发者ID:netzkollektiv,项目名称:wirecard-checkout-magento,代码行数:9,代码来源:Cc.php


示例8: _construct

 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');
 }
开发者ID:agentelinux,项目名称:CardSaveCheckbox,代码行数:9,代码来源:Cc.php


示例9: _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,代码来源:Gatewaycc.php


示例10: _prepareLayout

 /**
  * 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();
 }
开发者ID:brunoalbim,项目名称:PagSeguro-Magento-Transparente,代码行数:14,代码来源:Cc.php


示例11: _construct

 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());
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:10,代码来源:Cc.php


示例12: _construct

 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');
     }
 }
开发者ID:wirecard,项目名称:magento-wcs,代码行数:11,代码来源:Cc.php


示例13: _construct

 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());
     }
 }
开发者ID:andrew-dwyer,项目名称:PINpayments,代码行数:12,代码来源:Form.php


示例14: _prepareLayout

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


示例15: _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();
 }
开发者ID:Mr-Leonardooliveira,项目名称:PagSeguro-Magento-Transparente,代码行数:17,代码来源:Cc.php


示例16: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('merchantware/directpost/form.phtml');
 }
开发者ID:xiaoguizhidao,项目名称:tyler-live,代码行数:5,代码来源:Form.php


示例17: _construct

 /**
  * Init Ofone pay from to use it on frontend
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('ogone/form.phtml');
 }
开发者ID:joebushi,项目名称:magento-mirror,代码行数:9,代码来源:Form.php


示例18: _construct

 /**
  * setting up block template
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('chargepayment/form/creditcard.phtml');
 }
开发者ID:abzglobal,项目名称:checkout-magento-plugin,代码行数:8,代码来源:Creditcard.php


示例19: _beforeToHtml

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP Mage_Payment_Block_Info类代码示例发布时间:2022-05-23
下一篇:
PHP Mage_Payment_Block_Form类代码示例发布时间: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