本文整理汇总了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);
}
示例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;
}
}
}
}
示例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);
}
示例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.'));
}
示例5: __construct
/**
* Set custom template
*
*/
public function __construct()
{
parent::__construct();
$this->setTemplate('cls_paypal/payment/form/customer_stored.phtml');
}