/**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * Set custom template
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('cls_paypal/payment/form/customer_stored.phtml');
 }