protected function _prepareLayout() { if (Mage::app()->getLayout()->getBlock('head')) { Mage::app()->getLayout()->getBlock('head')->addJs('gateway.js'); } return parent::_prepareLayout(); }
protected function _toHtml() { $this->model->setCode($this->getMethodCode()); $this->_issuer = $this->model->getIssuerOptionArray(); Mage::dispatchEvent('payment_form_block_to_html_before', array('block' => $this)); return parent::_toHtml(); }
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(); }
protected function _construct() { parent::_construct(); $gateway = Mage::getSingleton('billmateinvoice/gateway'); $this->matched = $gateway->isMatched; $this->setTemplate('billmate/changeaddress.phtml'); }
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(); }
public function _construct() { parent::_construct(); if ($this->_template_filename) { $this->setTemplate($this->_template_filename); } }
protected function _construct() { parent::_construct(); if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) { $this->setMethodTitle(''); } }
/** * 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(); }
/** * 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(); }
protected function _beforeToHtml() { $code = $this->getMethodCode(); $this->_helper = Mage::helper('worldpay'); $this->_code = $code; return parent::_beforeToHtml(); }
/** * Prepare form contents before rendering it * @return string */ protected function _beforeToHtml() { $ebanxConfig = Mage::getStoreConfig('payment/ebanx'); $address = Mage::getSingleton('checkout/cart')->getQuote()->getBillingAddress(); $country = strtolower($address->getCountry()); return parent::_beforeToHtml(); }
/** * Construct */ protected function _construct() { $gateway_select = Mage::getStoreConfig("payment/msp/gateway_select"); if ($gateway_select) { parent::_construct(); $this->setTemplate('msp/gateways.phtml'); } }
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(); }
protected function _construct() { parent::_construct(); $mark = Mage::getConfig()->getBlockClassName('core/template'); $mark = new $mark(); $mark->setTemplate('vtweb/logo.phtml'); $this->setTemplate('vtweb/form.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml()); }
/** * Construct */ protected function _construct() { $gateway_select = Mage::getStoreConfig("msp/msp_ideal/bank_select"); if ($gateway_select) { parent::_construct(); $this->setTemplate('msp/idealissuers.phtml'); } }
/** * 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(); }
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(); }
protected function _prepareLayout() { parent::_prepareLayout(); // This block might not be constructed // with whole magento layout if (Mage::app()->getLayout()->getBlock('head')) { Mage::app()->getLayout()->getBlock('content')->append(Mage::app()->getLayout()->createBlock('sign2pay/riskAssessment')); } }
/** * 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(''); }
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(); }
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(); }
/** * 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(); }
/** * 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'); } }
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(); }
/** * 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(); }
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(); }
/** * 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(); }
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(); }