File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
namespace Mondu \Mondu \Observer ;
3
3
4
4
use Magento \Framework \Event \Observer ;
5
+ use Magento \Sales \Model \Order ;
5
6
use Mondu \Mondu \Helpers \ContextHelper ;
6
7
use Mondu \Mondu \Helpers \Logger \Logger ;
7
8
use Mondu \Mondu \Helpers \PaymentMethod ;
@@ -45,8 +46,12 @@ public function _execute(Observer $observer)
45
46
$ order ->addStatusHistoryComment (
46
47
__ ('Mondu: Order Status changed to Payment Review because it needs manual confirmation ' )
47
48
);
48
- $ order ->setState (\Magento \Sales \Model \Order::STATE_PAYMENT_REVIEW );
49
- $ order ->setStatus (\Magento \Sales \Model \Order::STATE_PAYMENT_REVIEW );
49
+ $ order ->setState (Order::STATE_PAYMENT_REVIEW );
50
+ $ order ->setStatus (Order::STATE_PAYMENT_REVIEW );
51
+ $ order ->save ();
52
+ } else {
53
+ $ order ->setState (Order::STATE_PROCESSING );
54
+ $ order ->setStatus (Order::STATE_PROCESSING );
50
55
$ order ->save ();
51
56
}
52
57
}
Original file line number Diff line number Diff line change 2
2
"name" : " mondu_gmbh/magento2-payment" ,
3
3
"description" : " Mondu payment method for magento 2" ,
4
4
"type" : " magento2-module" ,
5
- "version" : " 2.2.2 " ,
5
+ "version" : " 2.3.0 " ,
6
6
"license" : [
7
7
" MIT"
8
8
],
Original file line number Diff line number Diff line change 103
103
<label >Installments by Invoice Description</label >
104
104
<config_path >payment/monduinstallmentbyinvoice/description</config_path >
105
105
</field >
106
- <field id =" order_status" translate =" label" type =" select" sortOrder =" 13" showInDefault =" 1" showInWebsite =" 1" canRestore =" 1" >
107
- <label >New Order Status</label >
108
- <source_model >Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model >
109
- <config_path >payment/mondu/order_status</config_path >
110
- </field >
111
106
<field id =" allowspecific" translate =" label" type =" allowspecific" sortOrder =" 14" showInDefault =" 9"
112
107
showInWebsite =" 1" showInStore =" 1" >
113
108
<label >Payment From Applicable Countries</label >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
3
- <module name =" Mondu_Mondu" setup_version =" 2.2.2 " >
3
+ <module name =" Mondu_Mondu" setup_version =" 2.3.0 " >
4
4
<sequence >
5
5
<module name =" Magento_Sales" />
6
6
<module name =" Magento_Payment" />
You can’t perform that action at this time.
0 commit comments