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


PHP Mage_Sales_Model_Order_Invoice::setTransactionId方法代码示例

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


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

示例1: processInvoice

 /**
  * Mock capture transaction id in invoice
  *
  * @param Mage_Sales_Model_Order_Invoice $invoice
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function processInvoice($invoice, $payment)
 {
     $invoice->setTransactionId(1);
     return $this;
 }
开发者ID:par-orillonsoft,项目名称:magento_work,代码行数:12,代码来源:Authorizenet.php

示例2: processInvoice

 /**
  * Mark capture transaction id in invoice
  *
  * @param Mage_Sales_Model_Order_Invoice $invoice
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function processInvoice($invoice, $payment)
 {
     $lastCaptureTransId = '';
     $cardsStorage = $this->getCardsStorage($payment);
     foreach ($cardsStorage->getCards() as $card) {
         $lastCapId = $card->getData('last_capture_trans_id');
         if ($lastCapId && !empty($lastCapId) && !is_null($lastCapId)) {
             $lastCaptureTransId = $lastCapId;
             break;
         }
     }
     $invoice->setTransactionId($lastCaptureTransId);
     return $this;
 }
开发者ID:ankita-parashar,项目名称:magento,代码行数:21,代码来源:Gorilla_ChasePaymentech_Model_Gateway.php

示例3: processInvoice

 /**
  * Set capture transaction ID to invoice for informational purposes
  * @param Mage_Sales_Model_Order_Invoice $invoice
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function processInvoice($invoice, $payment)
 {
     $invoice->setTransactionId($payment->getLastTransId());
     return $this;
 }
开发者ID:beejhuff,项目名称:magento-1.13.0.2,代码行数:11,代码来源:Gate.php

示例4: processInvoice

 /**
  * Set capture transaction ID and enable Void to invoice for informational purposes
  * @param Mage_Sales_Model_Order_Invoice $invoice
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function processInvoice($invoice, $payment)
 {
     if ($payment->getLastTransId()) {
         $invoice->setTransactionId($payment->getLastTransId());
         $invoice->setCanVoidFlag(true);
         if (Mage::helper('sales')->canSendNewInvoiceEmail($payment->getOrder()->getStoreId())) {
             $invoice->setEmailSent(true);
             $invoice->sendEmail();
         }
         return $this;
     }
     return false;
 }
开发者ID:rorteg,项目名称:rafaelmage,代码行数:19,代码来源:Standard.php


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