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


PHP Mage_Payment_Block_Form::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Instancia o template referente ao método de pagamento
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('bcash/pagamento/form/bankslip.phtml');
     $this->email = Mage::getStoreConfig('payment/bcash/email');
     $this->token = Mage::getStoreConfig('payment/bcash/token');
     $this->sandbox = Mage::getStoreConfig('payment/bcash/sandbox');
     $this->max_installments = Mage::getStoreConfig('payment/bcash_creditcard/max_installments');
     $this->cpf = Mage::getStoreConfig('payment/bcash/cpf');
     $this->phone = Mage::getStoreConfig('payment/bcash/phone');
     $this->desconto_credito_1x = 0;
     $this->cards = array(PaymentMethodEnum::VISA, PaymentMethodEnum::MASTERCARD, PaymentMethodEnum::AMERICAN_EXPRESS, PaymentMethodEnum::AURA, PaymentMethodEnum::DINERS, PaymentMethodEnum::HIPERCARD, PaymentMethodEnum::ELO);
     $this->boleto = PaymentMethodEnum::BANK_SLIP;
     $this->tefs = array(PaymentMethodEnum::BB_ONLINE_TRANSFER, PaymentMethodEnum::BRADESCO_ONLINE_TRANSFER, PaymentMethodEnum::ITAU_ONLINE_TRANSFER, PaymentMethodEnum::BANRISUL_ONLINE_TRANSFER, PaymentMethodEnum::HSBC_ONLINE_TRANSFER);
 }
开发者ID:payu-br,项目名称:bcash-magento-transparente,代码行数:18,代码来源:Bankslip.php

示例2: __construct

 /**
  * Set custom template
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('cls_paypal/payment/form/order_stored.phtml');
     // Get original order payment
     /** @var $session Mage_Adminhtml_Model_Session_Quote */
     $session = Mage::getSingleton('adminhtml/session_quote');
     if (($originalOrderId = $session->getPreviousOrderId()) || ($originalOrderId = $session->getOrderId())) {
         // Get original order data
         /** @var $originalOrder Mage_Sales_Model_Order */
         $originalOrder = Mage::getModel('sales/order')->load($originalOrderId);
         if ($originalOrder->getId()) {
             $this->_storedOrder = $originalOrder;
             $originalOrderPayment = $originalOrder->getPayment();
             if ($originalOrderPayment->getId()) {
                 $this->_storedPayment = $originalOrderPayment;
             }
         }
     }
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:24,代码来源:Orderstored.php

示例3: __construct

 /**
  * Set custom template
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('Mage_Sales::payment/form/billing/agreement.phtml');
     $this->setTransportName(Mage_Sales_Model_Payment_Method_Billing_AgreementAbstract::TRANSPORT_BILLING_AGREEMENT_ID);
 }
开发者ID:relue,项目名称:magento2,代码行数:10,代码来源:Agreement.php

示例4: __construct

 /**
  * Set template and redirect message
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('dwollaPaymentModule/form.phtml')->setRedirectMessage(Mage::helper('paypal')->__('You will be redirected to the Dwolla website when you place an order.'));
 }
开发者ID:gustavoghioldi,项目名称:dwolla-magento,代码行数:8,代码来源:Form.php

示例5: __construct

 /**
  * Set custom template
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('cls_paypal/payment/form/customer_stored.phtml');
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:9,代码来源:Customerstored.php


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