本文整理汇总了PHP中Mage_Payment_Block_Info_Cc类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Info_Cc类的具体用法?PHP Mage_Payment_Block_Info_Cc怎么用?PHP Mage_Payment_Block_Info_Cc使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Payment_Block_Info_Cc类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getInfo
/**
* Retrieve card info object
*
* @return mixed
*/
public function getInfo()
{
if ($this->hasCardInfoObject()) {
return $this->getCardInfoObject();
}
return parent::getInfo();
}
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:12,代码来源:Cc.php
示例2: _construct
protected function _construct()
{
parent::_construct();
if (Mage::getSingleton('core/translate')->getTranslateInline() === false && Mage::app()->getStore()->isAdmin()) {
//For Emails
$this->setTemplate('sagepaysuite/payment/info/base-basic.phtml');
} else {
$this->setTemplate('sagepaysuite/payment/info/base.phtml');
}
}
开发者ID:xiaoguizhidao,项目名称:mydigibits,代码行数:10,代码来源:Suite.php
示例3: _prepareSpecificInformation
/**
* Prepare specific payment information
*
* @param Varien_Object|array $transport
* return Varien_Object
*/
protected function _prepareSpecificInformation($transport = null)
{
$transport = parent::_prepareSpecificInformation($transport);
$data = $this->getInfo()->getAdditionalData();
if (empty($data)) {
return $transport;
}
$obj_data = unserialize($data);
return $transport->addData(array($this->__('Payment Number') => $obj_data['VK_T_NO'], $this->__('Payer\'s Account') => $obj_data['VK_SND_ACC'], $this->__('Payer\'s Name') => $obj_data['VK_SND_NAME']));
}
开发者ID:ATouhou,项目名称:reindeersw-danskeclick,代码行数:16,代码来源:Info.php
示例4: _prepareSpecificInformation
/**
* Prepare PayPal-specific payment information
*
* @param Varien_Object|array $transport
* return Varien_Object
*/
protected function _prepareSpecificInformation($transport = null)
{
$transport = parent::_prepareSpecificInformation($transport);
$payment = $this->getInfo();
$paypalInfo = Mage::getModel('paypal/info');
if (!$this->getIsSecureMode()) {
$info = $paypalInfo->getPaymentInfo($payment, true);
} else {
$info = $paypalInfo->getPublicPaymentInfo($payment, true);
}
return $transport->addData($info);
}
开发者ID:okite11,项目名称:frames21,代码行数:18,代码来源:Info.php
示例5: _prepareSpecificInformation
/**
* Show name on card, expiration date and full cc number
*
* Expiration date and full number will show up only in secure mode (only for admin, not in emails or pdfs)
*
* @param Varien_Object|array $transport
*/
protected function _prepareSpecificInformation($transport = null)
{
if (null !== $this->_paymentSpecificInformation) {
return $this->_paymentSpecificInformation;
}
$info = $this->getInfo();
$transport = new Varien_Object(array(Mage::helper('payment')->__('Name on the Card') => $info->getCcOwner()));
$transport = parent::_prepareSpecificInformation($transport);
if (!$this->getIsSecureMode()) {
$transport->addData(array(Mage::helper('payment')->__('Expiration Date') => $this->_formatCardDate($info->getCcExpYear(), $this->getCcExpMonth()), Mage::helper('payment')->__('Credit Card Number') => $info->getCcNumber()));
}
return $transport;
}
开发者ID:hirentricore,项目名称:devmagento,代码行数:20,代码来源:Ccsave.php
示例6: _construct
protected function _construct()
{
parent::_construct();
#Only when order is saved
if ((Mage::registry('current_order') || $this->getOnMemo() || $this->getOnInvoice()) && Mage::app()->getStore()->isAdmin()) {
$this->setChild('repeats.list', Mage::getModel('core/layout')->createBlock('core/template', 'repeats.li')->setTemplate('sagepaysuite/payment/info/repeats.phtml'));
$this->setChild('refunds.list', Mage::getModel('core/layout')->createBlock('core/template', 'refunds.li')->setTemplate('sagepaysuite/payment/info/refunds.phtml'));
$this->setChild('authorise.list', Mage::getModel('core/layout')->createBlock('core/template', 'authorise.li')->setTemplate('sagepaysuite/payment/info/authorises.phtml'));
}
if (Mage::getSingleton('core/translate')->getTranslateInline() === false && Mage::app()->getStore()->isAdmin()) {
//For Emails
$this->setTemplate('sagepaysuite/payment/info/base-basic.phtml');
} else {
$this->setTemplate('sagepaysuite/payment/info/base.phtml');
}
}
开发者ID:CherylMuniz,项目名称:fashion,代码行数:16,代码来源:Suite.php
示例7: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('datatrans/hiddenmode/info/cc.phtml');
}
开发者ID:voolitels,项目名称:Magento-Datatrans,代码行数:5,代码来源:Cc.php
示例8: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('totalcoin/standard/info.phtml');
$this->setModuleName('Mage_Payment');
}
开发者ID:emaraschio,项目名称:plugin-magento,代码行数:6,代码来源:Info.php
示例9: _construct
/**
* Init default template for block
*/
protected function _construct()
{
parent::_construct();
$this->setTemplate('moneybookerspsp/info/cc.phtml');
}
开发者ID:protechhelp,项目名称:gamamba,代码行数:8,代码来源:Cc.php
注:本文中的Mage_Payment_Block_Info_Cc类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论