當前位置: 首頁>>代碼示例>>PHP>>正文


PHP logger::addInfo方法代碼示例

本文整理匯總了PHP中logger::addInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP logger::addInfo方法的具體用法?PHP logger::addInfo怎麽用?PHP logger::addInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在logger的用法示例。


在下文中一共展示了logger::addInfo方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: processTransaction

 /**
  * Given a paymillTransaction response, as an array, prform desired operations
  *
  * @param array             $autWS
  * @param PagosonlineMethod $paymentMethod Payment method
  *
  * @return PagosonlineManager Self object
  *
  * @throws PaymentException
  */
 private function processTransaction($autWS, PagosonlineMethod $paymentMethod)
 {
     /**
      * Payment paid done
      *
      * Paid process has ended ( No matters result )
      */
     $this->paymentEventDispatcher->notifyPaymentOrderDone($this->paymentBridge, $paymentMethod);
     $this->logger->addInfo($paymentMethod->getPaymentName() . 'processTransaction', get_object_vars($autWS));
     /**
      * if pagosonline return code 15 o 9994 the order status is pending
      */
     if (in_array($autWS->codigoRespuesta, array('15', '9994'))) {
         //payment is still pending nothing to do
     } elseif ($autWS->codigoRespuesta == 1) {
         $this->paymentEventDispatcher->notifyPaymentOrderSuccess($this->paymentBridge, $paymentMethod);
     } else {
         $this->paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $paymentMethod);
         throw new PaymentException();
     }
     /**
      * Log the response of gateway
      */
     return $this;
 }
開發者ID:hason,項目名稱:paymentsuite,代碼行數:35,代碼來源:PagosonlineManager.php

示例2: checkTransactionStatus

 public function checkTransactionStatus($transactionId)
 {
     //All information of transaction response
     $statusTransactionWS = $this->pagosonlineComm->consultarEstadoTransaccion($this->accountId, $transactionId);
     $paymentMethod = new PagosonlineGatewayMethod();
     $paymentMethod->setPagosonlineGatewayTransactionId($statusTransactionWS->transaccionId);
     $paymentMethod->setStatus($statusTransactionWS->estadoId);
     $paymentMethod->setReference($statusTransactionWS->referencia);
     $paymentMethod->setAmount($statusTransactionWS->valor);
     $this->logger->addInfo($paymentMethod->getPaymentName() . 'processTransactionCheck', get_object_vars($statusTransactionWS));
     /**
      * if pagosonline return code 15 o 9994 the order status is pending
      */
     $this->paymentEventDispatcher->notifyPaymentOrderLoad($this->paymentBridge, $paymentMethod);
     if ($statusTransactionWS->codigoRespuesta == 1) {
         $this->paymentEventDispatcher->notifyPaymentOrderSuccess($this->paymentBridge, $paymentMethod);
     } elseif (!in_array($statusTransactionWS->codigoRespuesta, array(15, 9994))) {
         //status 15 or 9994 payment is still in pending nothing to do
         $this->paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $paymentMethod);
     }
 }
開發者ID:hason,項目名稱:paymentsuite,代碼行數:21,代碼來源:PagosonlineGatewayManager.php

示例3: processTransaction

 /**
  * Given a Dineromail response, as a SimpleXMLElement, perform desired operations
  *
  * @param  SimpleXMLElement  $xml Dineromail response
  * @return DineromailManager Self object
  */
 public function processTransaction($xml)
 {
     $paymentMethod = new DineromailMethod();
     $this->logger->addInfo($paymentMethod->getPaymentName() . 'processTransaction: ' . $xml->asXML());
     switch ($status = $xml->ESTADO) {
         case self::STATUS_PENDING:
             break;
         case self::STATUS_ACCEPTED:
         case self::STATUS_DENIED:
             $paymentMethod->setDineromailTransactionId($xml->ID);
             $paymentMethod->setAmount($xml->MONTO);
             $this->paymentEventDispatcher->notifyPaymentOrderLoad($this->paymentBridge, $paymentMethod);
             break;
         default:
     }
     if ($status == self::STATUS_ACCEPTED) {
         $this->paymentEventDispatcher->notifyPaymentOrderSuccess($this->paymentBridge, $paymentMethod);
     }
     if ($status == self::STATUS_DENIED) {
         $this->paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $paymentMethod);
     }
     return $this;
 }
開發者ID:hason,項目名稱:paymentsuite,代碼行數:29,代碼來源:DineromailManager.php

示例4: processTransaction

 /**
  *
  * @param $result \soap response
  * @param DineromailApiMethod $paymentMethod Payment method
  *
  * @throws \PaymentSuite\PaymentCoreBundle\Exception\PaymentException
  * @return DineromailApiMethod                                        Self object
  *
  */
 private function processTransaction($result, DineromailApiMethod $paymentMethod)
 {
     $this->logger->addInfo($paymentMethod->getPaymentName() . 'processTransaction Result', get_object_vars($result));
     $paymentMethod->setDineromailApiReference($result->MerchantTransactionId);
     $paymentMethod->setDineromailApiTransactionId($result->TransactionId);
     /**
      * Payment paid done
      *
      * Paid process has ended ( No matters result )
      */
     $this->paymentEventDispatcher->notifyPaymentOrderDone($this->paymentBridge, $paymentMethod);
     switch ($result->Status) {
         case 'OK':
         case 'COMPLETED':
             $this->paymentEventDispatcher->notifyPaymentOrderSuccess($this->paymentBridge, $paymentMethod);
             break;
         case 'PENDING':
             break;
         default:
             $this->paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $paymentMethod);
             throw new PaymentException();
     }
     return $this;
 }
開發者ID:hason,項目名稱:paymentsuite,代碼行數:33,代碼來源:DineromailApiManager.php


注:本文中的logger::addInfo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。