本文整理汇总了PHP中Mage_Payment_Block_Form类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Form类的具体用法?PHP Mage_Payment_Block_Form怎么用?PHP Mage_Payment_Block_Form使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Payment_Block_Form类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
protected function _prepareLayout()
{
if (Mage::app()->getLayout()->getBlock('head')) {
Mage::app()->getLayout()->getBlock('head')->addJs('gateway.js');
}
return parent::_prepareLayout();
}
示例2: _toHtml
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();
}
示例3: _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();
}
示例4: _construct
protected function _construct()
{
parent::_construct();
$gateway = Mage::getSingleton('billmateinvoice/gateway');
$this->matched = $gateway->isMatched;
$this->setTemplate('billmate/changeaddress.phtml');
}
示例5: _construct
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();
}
示例6: _construct
public function _construct()
{
parent::_construct();
if ($this->_template_filename) {
$this->setTemplate($this->_template_filename);
}
}
示例7: _construct
protected function _construct()
{
parent::_construct();
if (Mage::getStoreConfig('payment/adyen_abstract/title_renderer') == Adyen_Payment_Model_Source_Rendermode::MODE_TITLE_IMAGE) {
$this->setMethodTitle('');
}
}
示例8: _construct
/**
* 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();
}
示例9: _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();
}
示例10: _beforeToHtml
protected function _beforeToHtml()
{
$code = $this->getMethodCode();
$this->_helper = Mage::helper('worldpay');
$this->_code = $code;
return parent::_beforeToHtml();
}
示例11: _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();
}
示例12: _construct
/**
* Construct
*/
protected function _construct()
{
$gateway_select = Mage::getStoreConfig("payment/msp/gateway_select");
if ($gateway_select) {
parent::_construct();
$this->setTemplate('msp/gateways.phtml');
}
}
示例13: _construct
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();
}
示例14: _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();
}
示例15: _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());
}