• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Payment_Block_Info类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Mage_Payment_Block_Info的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Block_Info类的具体用法?PHP Mage_Payment_Block_Info怎么用?PHP Mage_Payment_Block_Info使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Mage_Payment_Block_Info类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = Mage_Payment_Block_Info::_prepareSpecificInformation($transport);
     $data = array();
     Mage::dispatchEvent('tokenbase_before_load_payment_info', array('method' => $this->getInfo()->getMethod(), 'customer' => Mage::helper('tokenbase')->getCurrentCustomer(), 'transport' => $transport, 'info' => $this->getInfo()));
     $ccType = $this->getCcTypeName();
     if (!empty($ccType) && $ccType != 'N/A') {
         $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
     }
     // If this is an eCheck, show different info.
     if ($this->getInfo()->getCcLast4()) {
         if ($this->getInfo()->getAdditionalInformation('method') == 'ECHECK') {
             $data[Mage::helper('payment')->__('Paid By')] = Mage::helper('payment')->__('eCheck');
             $data[Mage::helper('payment')->__('Account Number')] = sprintf('x-%s', $this->getInfo()->getCcLast4());
         } else {
             $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('XXXX-%s', $this->getInfo()->getCcLast4());
         }
     }
     // If this is admin, show different info.
     if (Mage::app()->getStore()->isAdmin()) {
         $data[Mage::helper('payment')->__('Transaction ID')] = $this->getInfo()->getAdditionalInformation('transaction_id');
     }
     $transport->setData(array_merge($data, $transport->getData()));
     Mage::dispatchEvent('tokenbase_after_load_payment_info', array('method' => $this->getInfo()->getMethod(), 'customer' => Mage::helper('tokenbase')->getCurrentCustomer(), 'transport' => $transport, 'info' => $this->getInfo()));
     return $transport;
 }
开发者ID:billadams,项目名称:forever-frame,代码行数:29,代码来源:Info.php


示例2: _prepareSpecificInformation

 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = Mage_Payment_Block_Info::_prepareSpecificInformation($transport);
     $data = array();
     if ($paymentProfile = $this->_getCcDetails()) {
         if ($ccType = $this->getCcTypeName()) {
             if ($ccType == "N/A") {
                 $ccType = 'Stored';
             }
             $data[$this->__('Credit Card Type')] = $ccType;
         }
         if ($ccNumber = $paymentProfile->ccAccountNum) {
             $data[$this->__('Credit Card Number')] = sprintf('xxxx-%s', substr($ccNumber, -4));
         }
         return $transport->setData(array_merge($data, $transport->getData()));
     } else {
         if ($ccType = $this->getCcTypeName()) {
             $data[$this->__('Credit Card Type')] = $ccType;
         }
         if ($ccNumber = $this->getInfo()->getCcLast4()) {
             $data[$this->__('Credit Card Number')] = sprintf('xxxx-%s', $ccNumber);
         }
         return $transport->setData(array_merge($data, $transport->getData()));
     }
 }
开发者ID:ankita-parashar,项目名称:magento,代码行数:34,代码来源:Gorilla_ChasePaymentech_Block_Info_Cc.php


示例3: _prepareSpecificInformation

 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($ccType = $this->getCcTypeName()) {
         $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
     }
     if ($this->getInfo()->getCcLast4()) {
         $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());
     }
     if (!$this->getIsSecureMode()) {
         if ($ccSsIssue = $this->getInfo()->getCcSsIssue()) {
             $data[Mage::helper('payment')->__('Switch/Solo/Maestro Issue Number')] = $ccSsIssue;
         }
         $year = $this->getInfo()->getCcSsStartYear();
         $month = $this->getInfo()->getCcSsStartMonth();
         if ($year && $month) {
             $data[Mage::helper('payment')->__('Switch/Solo/Maestro Start Date')] = $this->_formatCardDate($year, $month);
         }
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
开发者ID:Airmal,项目名称:Magento-Em,代码行数:31,代码来源:Cc.php


示例4: _toHtml

 public function _toHtml()
 {
     if ($this->getMethod()->getCode() == 'sofortvorkasse') {
         $this->setTemplate('pnsofortueberweisung/info/sofortvorkasse.phtml');
     }
     return parent::_toHtml();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:7,代码来源:Pnsofortueberweisung.php


示例5: _prepareSpecificInformation

 /**
  * Add custom information to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = $this->getInfo()->getAdditionalInformation();
     $data['imgUrl'] = Mage::helper('paymill')->getImagePath() . "icon_paymill.png";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
开发者ID:SiWe0401,项目名称:paymill-magento,代码行数:12,代码来源:PaymentFormCreditcard.php


示例6: _prepareSpecificInformation

 /**
  * Prepare po and credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Purchase Order Number') => $this->getInfo()->getPoNumber(), Mage::helper('payment')->__('Purchase Order Amount') => '$' . number_format($this->getInfo()->getPoAmount(), 2)));
     $data = array();
     $orderTotal = Mage::getSingleton('checkout/cart')->getQuote()->collectTotals()->getGrandTotal();
     if ($this->getInfo()->getPoAmount() < $orderTotal) {
         if ($ccType = $this->getCcTypeName()) {
             $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
         }
         if ($this->getInfo()->getCcLast4()) {
             $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());
         }
         if (!$this->getIsSecureMode()) {
             if ($ccSsIssue = $this->getInfo()->getCcSsIssue()) {
                 $data[Mage::helper('payment')->__('Switch/Solo/Maestro Issue Number')] = $ccSsIssue;
             }
             $year = $this->getInfo()->getCcSsStartYear();
             $month = $this->getInfo()->getCcSsStartMonth();
             if ($year && $month) {
                 $data[Mage::helper('payment')->__('Switch/Solo/Maestro Start Date')] = $this->_formatCardDate($year, $month);
             }
         }
         $data[Mage::helper('payment')->__('Credit Card Amount')] = '$' . number_format($orderTotal - $this->getInfo()->getPoAmount(), 2);
     }
     $transport->setData(array_merge($transport->getData(), $data));
     return $transport;
 }
开发者ID:greghoole,项目名称:magento_extensions,代码行数:38,代码来源:MultiplePayments.php


示例7: _toHtml

 /**
  * (non-PHPdoc)
  * @see app/code/core/Mage/Core/Block/Mage_Core_Block_Template#_toHtml()
  */
 protected function _toHtml()
 {
     if ($this->getForm()->getMethodCode() != self::PAYMENT_METHOD_CODE) {
         return;
     }
     return parent::_toHtml();
 }
开发者ID:votanlean,项目名称:Magento-Pruebas,代码行数:11,代码来源:Info.php


示例8: _prepareSpecificInformation

 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $details = @unserialize($this->getInfo()->getAdditionalData());
     if (!isset($details['pbridge_data']['x_params'])) {
         return $transport;
     }
     $xParams = @unserialize($details['pbridge_data']['x_params']);
     if (isset($xParams['dd_bankaccountholder']) && !empty($xParams['dd_bankaccountholder'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Account holder')] = $xParams['dd_bankaccountholder'];
     }
     if (isset($xParams['dd_bankaccount'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Account number')] = sprintf('xxxx-%s', $xParams['dd_bankaccount']);
     }
     if (isset($xParams['dd_bankcode']) && !empty($xParams['dd_bankcode'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Bank code')] = $xParams['dd_bankcode'];
     }
     if (!empty($data)) {
         return $transport->setData(array_merge($data, $transport->getData()));
     } else {
         return $transport;
     }
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:33,代码来源:Debit.php


示例9: _prepareSpecificInformation

 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($this->getInfo()->getGwapBoletoType()) {
         $data[Mage::helper('payment')->__('Banco')] = $this->getInfo()->getGwapBoletoType();
     }
     if ($this->getInfo()->getOrder() && $this->getInfo()->getOrder()->hasData()) {
         $order = $this->getInfo()->getOrder();
         $orderId = $order->getId();
         $customerId = $order->getCustomerId();
         if ($this->getInfo()->getOrder()->getId()) {
             $gwapItem = Mage::getModel('gwap/order')->load($this->getInfo()->getOrder()->getId(), 'order_id');
             if ($gwapItem->getStatus() == Allpago_Gwap_Model_Order::STATUS_CAPTUREPAYMENT || $gwapItem->getStatus() == Allpago_Gwap_Model_Order::STATUS_CREATED) {
                 $store = Mage::getModel('core/store')->load($order->getStoreId());
                 /* @var $store Mage_Core_Model_Store */
                 $boletoUrl = $store->getUrl('allpago_gwap/imprimir/boleto', array('id' => $orderId, 'ci' => $customerId));
                 $transport->addData(array(Mage::helper('payment')->__('Reimprimir Boleto') => "<a href=\"{$boletoUrl}\" target=\"_blank\">Clique aqui para abrir o boleto</a>"));
             }
         }
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
开发者ID:adrianomelo5,项目名称:magento,代码行数:32,代码来源:Boleto.php


示例10: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($this->getInfo()->getFastcashDepostitoType()) {
         $data[Mage::helper('payment')->__('Banco')] = $this->getInfo()->getFastcashDepostitoType();
     }
     //        if( $this->getInfo()->getOrder() && $this->getInfo()->getOrder()->hasData() ){
     //            $order = $this->getInfo()->getOrder();
     //            $orderId = $order->getId();
     //            $customerId = $order->getCustomerId();
     //            if ($this->getInfo()->getOrder()->getId()) {
     //                $fastcashItem = Mage::getModel('fastcash/order')->load($this->getInfo()->getOrder()->getId(), 'order_id');
     //                if( $fastcashItem->getStatus() == Miziagui_Fastcash_Model_Order::STATUS_CAPTUREPAYMENT || $fastcashItem->getStatus() == Miziagui_Fastcash_Model_Order::STATUS_CREATED ){
     //                    $store = Mage::getModel('core/store')->load($order->getStoreId());
     //                    /* @var $store Mage_Core_Model_Store */
     //                    $depositoUrl = $store->getUrl('fastcash/imprimir/deposito', array('id'=>$orderId, 'ci'=>$customerId));
     //                    $transport->addData(array(
     //                       Mage::helper('payment')->__('Reimprimir Deposito') => "<a href=\"{$depositoUrl}\" target=\"_blank\">Clique aqui para abrir o deposito</a>")
     //                       );
     //
     //                }
     //            }
     //        }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
开发者ID:smiziara,项目名称:Fastcash-Magento,代码行数:29,代码来源:Deposito.php


示例11: _construct

 protected function _construct()
 {
     parent::_construct();
     /* 
     	$this->setTemplate('webpos/admin/webpos/payment/method/info/cash.phtml'); 
     */
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:7,代码来源:Cash.php


示例12: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setInfoMessage(Mage::helper('vtmandiri/data')->_getInfoTypeIsImage() == true ? '<img src="' . $this->getSkinUrl('images/Veritrans.png') . '"/>' : '<b>' . Mage::helper('vtmandiri/data')->_getTitle() . '</b>');
     $this->setPaymentMethodTitle(Mage::helper('vtmandiri/data')->_getTitle());
     $this->setTemplate('vtmandiri/info.phtml');
 }
开发者ID:victorkho,项目名称:telor,代码行数:7,代码来源:Info.php


示例13: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $info = $this->getInfo();
     $data[Mage::helper("payment")->__("Payment Type")] = "Secure Token";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
开发者ID:rcclaudrey,项目名称:dev,代码行数:8,代码来源:Info.php


示例14: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('payex/partpayment/info.phtml');
     // Template for Checkout page
     if ($this->getRequest()->getRequestedActionName() === 'progress') {
         $this->setTemplate('payex/partpayment/title.phtml');
     }
 }
开发者ID:AndreKlang,项目名称:Magento-Payex,代码行数:9,代码来源:PartPayment.php


示例15: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     $oDataObj = parent::_prepareSpecificInformation();
     $aData = $this->getIsSecureMode() === FALSE ? $this->getMethod()->cms_dibs_getAdminOrderInfo() : $this->getMethod()->cms_dibs_getOrderInfo();
     foreach ($aData as $sKey => $sVal) {
         $oDataObj->setData($sKey, $sVal);
     }
     return $oDataObj;
 }
开发者ID:jacekelgda,项目名称:Magento,代码行数:9,代码来源:Info.php


示例16: _beforeToHtml

 protected function _beforeToHtml()
 {
     // If we are not on a checkout page we want to display a different template
     $request = $this->getRequest();
     if (!($request->getRequestedRouteName() == 'checkout' && $request->getRequestedControllerName() == 'onepage')) {
         $this->setTemplate('fontis/australia/payment/bpay/details.phtml');
     }
     parent::_beforeToHtml();
 }
开发者ID:rob3000,项目名称:fontis_australia,代码行数:9,代码来源:Info.php


示例17: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Cheque / DD No') => $info->getCheckNo(), Mage::helper('payment')->__('Drawee Bank') => $info->getDraweebank()));
     return $transport;
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:11,代码来源:Cheque.php


示例18: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Credit Card No Last 4') => $info->getCcLast4(), Mage::helper('payment')->__('Card Type') => $info->getCcType(), Mage::helper('payment')->__('Exp Date') => $info->getCcExpMonth() . ' / ' . $info->getCcExpYear(), Mage::helper('payment')->__('Card Owner') => $info->getCcOwner()));
     return $transport;
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:11,代码来源:Pay.php


示例19: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Service Name') => $info->getBankServiceName(), Mage::helper('payment')->__('Service Number') => $info->getBankServiceNumber(), Mage::helper('payment')->__('Bank Name') => $info->getBankName(), Mage::helper('payment')->__('Bank Name') => $info->getBankReference()));
     return $transport;
 }
开发者ID:sjonmx,项目名称:conekta-magento,代码行数:11,代码来源:Bank.php


示例20: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Transaction Id') => $info->getTransactionId()));
     return $transport;
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:11,代码来源:Neft.php



注:本文中的Mage_Payment_Block_Info类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Mage_Payment_Block_Info_Cc类代码示例发布时间:2022-05-23
下一篇:
PHP Mage_Payment_Block_Form_Cc类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap