Exemple #1
0
 /**
  * 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();
 }
 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();
 }
 public function _construct()
 {
     parent::_construct();
     if ($this->_template_filename) {
         $this->setTemplate($this->_template_filename);
     }
 }
Exemple #4
0
 protected function _construct()
 {
     parent::_construct();
     $gateway = Mage::getSingleton('billmateinvoice/gateway');
     $this->matched = $gateway->isMatched;
     $this->setTemplate('billmate/changeaddress.phtml');
 }
Exemple #5
0
 protected function _construct()
 {
     parent::_construct();
     if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) {
         $this->setMethodTitle('');
     }
 }
Exemple #6
0
 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();
 }
 /**
  * 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();
 }
 /**
  * Create the form block (Checkout Onepage) and assign the template to it.
  */
 protected function _construct()
 {
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('barzahlen/mark.phtml');
     $this->setTemplate('barzahlen/form.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     return parent::_construct();
 }
Exemple #9
0
 protected function _construct()
 {
     parent::_construct();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('vpayment/form/logo.phtml');
     $this->setTemplate('vpayment/form/vpayment.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
 }
Exemple #10
0
 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();
 }
 /**
  * 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();
 }
 /**
  * Construct
  */
 protected function _construct()
 {
     $gateway_select = Mage::getStoreConfig("payment/msp/gateway_select");
     if ($gateway_select) {
         parent::_construct();
         $this->setTemplate('msp/gateways.phtml');
     }
 }
 /**
  * Construct
  */
 protected function _construct()
 {
     $gateway_select = Mage::getStoreConfig("msp/msp_ideal/bank_select");
     if ($gateway_select) {
         parent::_construct();
         $this->setTemplate('msp/idealissuers.phtml');
     }
 }
 /**
  * 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();
 }
 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('');
 }
Exemple #16
0
 /**
  * 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();
 }
Exemple #17
0
 protected function _construct()
 {
     $this->setTemplate('firstdatae4/standard/form.phtml');
     // We need to ask only the CC type from the customer - rest of the information will be collected
     // by FirstdataE4 when we redirect to their servers. Also, the value for each card type is different
     // from the normal values in Magento. Hence, we need to specifically pass them to our custom template
     $this->setData('cctypes', Mage::getModel('Mage_Firstdatae4_Model_Standard')->getConfigData('cctypes'));
     parent::_construct();
 }
Exemple #18
0
 /**
  * Internal constructor
  * Set info template for payment step
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $paymentCode = $this->_getCheckout()->getQuote()->getPayment()->getMethod();
     if (in_array($paymentCode, $this->helper('Mage_Paypal_Helper_Hss')->getHssMethods())) {
         $this->_paymentMethodCode = $paymentCode;
     }
     $this->setTemplate('hss/iframe.phtml');
 }
Exemple #19
0
 protected function _construct()
 {
     $paymentMethodIcon = $this->getSkinUrl('images/adyen/img_trans.gif');
     $label = Mage::helper('adyen')->_getConfigData("title", "adyen_sepa");
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('adyen/payment/payment_method_label.phtml')->setPaymentMethodIcon($paymentMethodIcon)->setPaymentMethodLabel($label)->setPaymentMethodClass("adyen_sepa");
     $this->setTemplate('adyen/form/sepa.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     parent::_construct();
 }
Exemple #20
0
 /**
  * Internal constructor
  * Set info template for payment step
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $paymentCode = $this->_getCheckout()->getQuote()->getPayment()->getMethod();
     if (in_array($paymentCode, $this->helper('paypal/hss')->getHssMethods())) {
         $this->_paymentMethodCode = $paymentCode;
         $template_path = str_replace('_', '', $paymentCode);
         $this->setTemplate("paypal/{$template_path}/iframe.phtml");
     }
 }
Exemple #21
0
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->_config = Mage::getModel('paypalmx/config')->setMethod($this->getMethodCode());
     $locale = Mage::app()->getLocale();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('paypalmx/payment/mark.phtml')->setPaymentAcceptanceMarkHref($this->_config->getPaymentMarkWhatIsPaypalUrl($locale))->setPaymentAcceptanceMarkSrc($this->_config->getPaymentMarkImageUrl($locale->getLocaleCode()))->setNoPosAH($this->_config->getnoposah());
     // known issue: code above will render only static mark image
     $this->setTemplate('paypalmx/payment/redirect.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     return parent::_construct();
 }
Exemple #22
0
 protected function _construct()
 {
     parent::_construct();
     if ($this->isEnable()) {
         if ($this->isOneStepCheckout()) {
             $this->setTemplate('rewardpoints/checkout/payment/onestep.phtml');
         } else {
             $this->setTemplate('rewardpoints/checkout/payment/methods.phtml');
         }
     }
 }
Exemple #23
0
 protected function _construct()
 {
     $dataToReturn = "";
     $transparente_layout = Mage::getStoreConfig('moipall/config/transparente_layout');
     if ($transparente_layout == "Vertical") {
         $this->setTemplate('MOIP/transparente/vertical_form.phtml');
     } else {
         $this->setTemplate('MOIP/transparente/horizontal_form.phtml');
     }
     parent::_construct();
 }
Exemple #24
0
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->_config = Mage::getModel('paypal/config')->setMethod($this->getMethodCode());
     $locale = Mage::app()->getLocale();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('paypal/payment/mark.phtml')->setPaymentAcceptanceMarkHref($this->_config->getPaymentMarkWhatIsPaypalUrl($locale))->setPaymentAcceptanceMarkSrc($this->_config->getPaymentMarkImageUrl($locale->getLocaleCode()));
     // known issue: code above will render only static mark image
     $this->setTemplate('paypal/payment/redirect.phtml')->setRedirectMessage(Mage::helper('paypal')->__('You will be redirected to the PayPal website when you place an order.'))->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     return parent::_construct();
 }
Exemple #25
0
 /**
  * Construct payment form block and set template
  */
 protected function _construct()
 {
     parent::_construct();
     /* @var $helper Itabs_Debit_Helper_Data */
     $helper = Mage::helper('debit');
     if ($helper->getDebitType() == Itabs_Debit_Helper_Data::DEBIT_TYPE_SEPA) {
         $this->setTemplate('debit/sepa/form.phtml');
     } else {
         $this->setTemplate('debit/form.phtml');
     }
 }
Exemple #26
0
 protected function _construct()
 {
     $session = Mage::getSingleton('checkout/session');
     $order = Mage::getModel("sales/order");
     $this->_orderId = $this->getRequest()->getParam("id");
     if (!$this->_orderId) {
         $order->loadByIncrementId($session->getLastRealOrderId());
         $this->_orderId = $order->getRealOrderId();
     }
     $this->setTemplate("cielo/receipt.phtml");
     parent::_construct();
 }
Exemple #27
0
 /**
  * Internal constructor
  * Set template for redirect
  *
  */
 public function __construct()
 {
     parent::_construct();
     $this->setTemplate('mundipagg/partial.phtml');
     // Get Customer Credit Cards Saved On File
     if ($this->helper('customer')->isLoggedIn()) {
         $entityId = Mage::getSingleton('customer/session')->getId();
         $ccsCollection = Mage::getResourceModel('mundipagg/cardonfile_collection')->addEntityIdFilter($entityId)->addExpiresAtFilter();
         $this->setCcs($ccsCollection);
     } else {
         $this->setCcs(array());
     }
 }
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $markClass = Mage::getConfig()->getBlockClassName(static::PAYMENT_MARK);
     $mark = new $markClass();
     $markHtml = $mark->toHtml();
     $helper = Mage::helper('paypal');
     $translatedRedirectMessage = $helper->__(static::WILL_REDIRECT_MESSAGE);
     $this->setMethodTitle('');
     // Title conflicts with PayPal mark
     $this->setMethodLabelAfterHtml($markHtml);
     $this->setRedirectMessage($translatedRedirectMessage);
     parent::_construct();
 }
Exemple #29
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('Oitoo_Cielo/form.phtml');
     //zera a taxa de juros, caso o cliente tenha voltado ao carrinho
     $quote = Mage::getSingleton('checkout/cart')->getQuote();
     $quote->setJuros(0.0);
     $quote->setBaseJuros(0.0);
     $quote->setDesconto(0.0);
     $quote->setBaseDesconto(0.0);
     $quote->setTotalsCollectedFlag(false)->collectTotals();
     $quote->save();
 }
Exemple #30
0
 /**
  * Internal constructor
  * Set info template for payment step
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $paymentCode = $this->_getCheckout()->getQuote()->getPayment()->getMethod();
     if (in_array($paymentCode, $this->helper('paypal/hss')->getHssMethods())) {
         $this->_paymentMethodCode = $paymentCode;
         $templatePath = str_replace('_', '', $paymentCode);
         $templateFile = "paypal/{$templatePath}/iframe.phtml";
         if (file_exists(Mage::getDesign()->getTemplateFilename($templateFile))) {
             $this->setTemplate($templateFile);
         } else {
             $this->setTemplate('paypal/hss/iframe.phtml');
         }
     }
 }