File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## 2.2.1
8
+ - Improved order management flow for 'PENDING' and 'CANCELLED' payments
9
+
7
10
## 2.2.0
8
11
- Change flow for PENDING payments coming from Satispay API
9
12
-
Original file line number Diff line number Diff line change @@ -40,12 +40,13 @@ public function execute()
40
40
$ this ->_redirect ('checkout/onepage/success ' );
41
41
return ;
42
42
}
43
- if ($ satispayPayment ->status == 'PENDING ' ) {
43
+
44
+ if ($ satispayPayment ->status == 'PENDING ' ) {
44
45
45
46
$ satispayCancel = \SatispayGBusiness \Payment::update ($ paymentId , [
46
47
'action ' => 'CANCEL ' ,
47
48
]);
48
-
49
+
49
50
50
51
if ($ satispayCancel ->status === 'CANCELED ' ) {
51
52
$ order ->registerCancellation (__ ('Payment has been cancelled. ' ));
Original file line number Diff line number Diff line change 3
3
"description" : " Satispay Magento2 Plugin" ,
4
4
"type" : " magento2-module" ,
5
5
"license" : " MIT" ,
6
- "version" : " 2.2.0 " ,
6
+ "version" : " 2.2.1 " ,
7
7
8
8
"keywords" : [
9
9
" satispay" ,
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 =" Satispay_Satispay" setup_version =" 2.2.0 " >
3
+ <module name =" Satispay_Satispay" setup_version =" 2.2.1 " >
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