We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit feb2463b authored by rikterbeek's avatar rikterbeek

#33 fixing status is selected what is configured when order is created for hpp and pos

parent 940b2e44
...@@ -97,13 +97,6 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa ...@@ -97,13 +97,6 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
*/ */
protected $_adyenLogger; protected $_adyenLogger;
/**
* Request object
*
* @var \Magento\Framework\App\RequestInterface
*/
protected $_request;
/** /**
* @param \Adyen\Payment\Model\Api\PaymentRequest $paymentRequest * @param \Adyen\Payment\Model\Api\PaymentRequest $paymentRequest
* @param \Magento\Framework\UrlInterface $urlBuilder * @param \Magento\Framework\UrlInterface $urlBuilder
...@@ -178,9 +171,9 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa ...@@ -178,9 +171,9 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
$order = $payment->getOrder(); $order = $payment->getOrder();
$order->setCanSendNewEmailFlag(false); $order->setCanSendNewEmailFlag(false);
$state = \Magento\Sales\Model\Order::STATE_NEW; $stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW);
$stateObject->setState($state);
$stateObject->setStatus($this->_adyenHelper->getAdyenAbstractConfigData('order_status')); $stateObject->setStatus($this->_adyenHelper->getAdyenAbstractConfigData('order_status'));
$stateObject->setIsNotified(false);
} }
/** /**
......
...@@ -186,9 +186,9 @@ class Pos extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa ...@@ -186,9 +186,9 @@ class Pos extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
$order = $payment->getOrder(); $order = $payment->getOrder();
$order->setCanSendNewEmailFlag(false); $order->setCanSendNewEmailFlag(false);
$state = \Magento\Sales\Model\Order::STATE_NEW; $stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW);
$stateObject->setState($state);
$stateObject->setStatus($this->_adyenHelper->getAdyenAbstractConfigData('order_status')); $stateObject->setStatus($this->_adyenHelper->getAdyenAbstractConfigData('order_status'));
$stateObject->setIsNotified(false);
} }
/** /**
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
<sort_order>3</sort_order> <sort_order>3</sort_order>
<place_order_url>adyen/process/redirect</place_order_url> <place_order_url>adyen/process/redirect</place_order_url>
<order_place_redirect_url>adyen/process/redirect</order_place_redirect_url> <order_place_redirect_url>adyen/process/redirect</order_place_redirect_url>
<payment_action>order</payment_action>
<group>adyen</group> <group>adyen</group>
</adyen_hpp> </adyen_hpp>
<adyen_sepa> <adyen_sepa>
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
<sort_order>5</sort_order> <sort_order>5</sort_order>
<place_order_url>adyen/process/redirect</place_order_url> <place_order_url>adyen/process/redirect</place_order_url>
<order_place_redirect_url>adyen/process/redirect</order_place_redirect_url> <order_place_redirect_url>adyen/process/redirect</order_place_redirect_url>
<payment_action>order</payment_action>
<group>adyen</group> <group>adyen</group>
</adyen_pos> </adyen_pos>
</payment> </payment>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment