本文整理汇总了PHP中Mage_Payment_Block_Info_Cc::_prepareSpecificInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Info_Cc::_prepareSpecificInformation方法的具体用法?PHP Mage_Payment_Block_Info_Cc::_prepareSpecificInformation怎么用?PHP Mage_Payment_Block_Info_Cc::_prepareSpecificInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Payment_Block_Info_Cc
的用法示例。
在下文中一共展示了Mage_Payment_Block_Info_Cc::_prepareSpecificInformation方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _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']));
}
示例2: _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);
}
示例3: _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;
}