本文整理汇总了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);
}
示例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;
}
}
示例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);
}
示例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;
}
}
示例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;
}
}