当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Payment_Block_Info::_prepareSpecificInformation方法代码示例

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


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

示例1: _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

示例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 = 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

示例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();
     $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

示例4: _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

示例5: _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

示例6: _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

示例7: _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

示例8: _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

示例9: _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

示例10: _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

示例11: _prepareSpecificInformation

 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     return $transport;
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:10,代码来源:Cash.php

示例12: _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

示例13: _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')->__('DD Number') => $info->getDdNumber(), Mage::helper('payment')->__('MICR Code') => $info->getMicrCode()));
     return $transport;
 }
开发者ID:vijays91,项目名称:Magento-Custom-Payment-Method,代码行数:11,代码来源:Pay.php

示例14: _prepareSpecificInformation

 /**
  * Add reference id to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $referenceID = $info->getAdditionalInformation(Mage_Sales_Model_Payment_Method_Billing_AgreementAbstract::PAYMENT_INFO_REFERENCE_ID);
     $transport = new Varien_Object(array($this->__('Reference ID') => $referenceID));
     $transport = parent::_prepareSpecificInformation($transport);
     return $transport;
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:16,代码来源:Agreement.php

示例15: _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')->__('Denomination 1000#') => $info->getDeno1000(), Mage::helper('payment')->__('Denomination 500') => $info->getDeno500(), Mage::helper('payment')->__('Denomination 100') => $info->getDeno100(), Mage::helper('payment')->__('Denomination 50') => $info->getDeno50(), Mage::helper('payment')->__('Denomination 20') => $info->getDeno20(), Mage::helper('payment')->__('Denomination 10') => $info->getDeno10(), Mage::helper('payment')->__('Others') => $info->getOthersdd(), Mage::helper('payment')->__('DD Location') => $info->getLocalchq()));
     return $transport;
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:11,代码来源:Paymentmodulepack.php


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