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


PHP Object::setIsNotified方法代碼示例

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


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

示例1: initialize

 /**
  * Set order state and status
  *
  * @param string $paymentAction
  * @param \Magento\Framework\Object $stateObject
  * @return void
  */
 public function initialize($paymentAction, $stateObject)
 {
     $state = $this->getConfigData('order_status');
     $stateObject->setState($state);
     $stateObject->setStatus($state);
     $stateObject->setIsNotified(false);
 }
開發者ID:marcinNS,項目名稱:magento2-samples,代碼行數:14,代碼來源:Payinstore.php

示例2: initialize

 /**
  * Instantiate state and set it to state object
  *
  * @param string $paymentAction
  * @param \Magento\Framework\Object $stateObject
  * @return void
  */
 public function initialize($paymentAction, $stateObject)
 {
     switch ($paymentAction) {
         case \Magento\Paypal\Model\Config::PAYMENT_ACTION_AUTH:
         case \Magento\Paypal\Model\Config::PAYMENT_ACTION_SALE:
             $payment = $this->getInfoInstance();
             $order = $payment->getOrder();
             $order->setCanSendNewEmailFlag(false);
             $payment->setAmountAuthorized($order->getTotalDue());
             $payment->setBaseAmountAuthorized($order->getBaseTotalDue());
             $this->_generateSecureSilentPostHash($payment);
             $request = $this->_buildTokenRequest($payment);
             $response = $this->_postRequest($request);
             $this->_processTokenErrors($response, $payment);
             $order = $payment->getOrder();
             $order->setCanSendNewEmailFlag(false);
             $stateObject->setState(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT);
             $stateObject->setStatus('pending_payment');
             $stateObject->setIsNotified(false);
             break;
         default:
             break;
     }
 }
開發者ID:pavelnovitsky,項目名稱:magento2,代碼行數:31,代碼來源:Payflowlink.php

示例3: initialize

 /**
  * Set order state and status
  *
  * @param string $paymentAction
  * @param \Magento\Framework\Object $stateObject
  * @return void
  */
 public function initialize($paymentAction, $stateObject)
 {
     $state = $this->getConfigData('order_status');
     $this->_gateUrl = $this->getConfigData('cgi_url');
     $this->_testUrl = $this->getConfigData('cgi_url_test_mode');
     $this->_test = $this->getConfigData('test');
     $stateObject->setState($state);
     $stateObject->setStatus($state);
     $stateObject->setIsNotified(false);
 }
開發者ID:MagePsycho,項目名稱:magento2-module-payment-tmrobokassa,代碼行數:17,代碼來源:TMRobokassa.php

示例4: initialize

 /**
  * Instantiate state and set it to state object
  *
  * @param string $paymentAction
  * @param \Magento\Framework\Object $stateObject
  * @return void
  */
 public function initialize($paymentAction, $stateObject)
 {
     switch ($paymentAction) {
         case self::ACTION_AUTHORIZE:
         case self::ACTION_AUTHORIZE_CAPTURE:
             $payment = $this->getInfoInstance();
             $order = $payment->getOrder();
             $order->setCanSendNewEmailFlag(false);
             $payment->authorize(true, $order->getBaseTotalDue());
             // base amount will be set inside
             $payment->setAmountAuthorized($order->getTotalDue());
             $order->setState(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT, 'pending_payment', '', false);
             $stateObject->setState(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT);
             $stateObject->setStatus('pending_payment');
             $stateObject->setIsNotified(false);
             break;
         default:
             break;
     }
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:27,代碼來源:Directpost.php

示例5: initialize

 /**
  * Instantiate state and set it to state object
  *
  * @param string $paymentAction
  * @param \Magento\Framework\Object $stateObject
  * @return void
  */
 public function initialize($paymentAction, $stateObject)
 {
     switch ($paymentAction) {
         case \Magento\Paypal\Model\Config::PAYMENT_ACTION_AUTH:
         case \Magento\Paypal\Model\Config::PAYMENT_ACTION_SALE:
             $payment = $this->getInfoInstance();
             $order = $payment->getOrder();
             $order->setCanSendNewEmailFlag(false);
             $payment->setAmountAuthorized($order->getTotalDue());
             $payment->setBaseAmountAuthorized($order->getBaseTotalDue());
             $this->_setPaymentFormUrl($payment);
             $stateObject->setState(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT);
             $stateObject->setStatus('pending_payment');
             $stateObject->setIsNotified(false);
             break;
         default:
             break;
     }
 }
開發者ID:nja78,項目名稱:magento2,代碼行數:26,代碼來源:Hostedpro.php


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