Skip to content

Commit

Permalink
Auto stash before merge of "master" and "origin/master"
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie committed Mar 25, 2024
1 parent 92a672b commit da3d175
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.2.1
- Improved order management flow for 'PENDING' and 'CANCELLED' payments

## 2.2.0
- Change flow for PENDING payments coming from Satispay API
-
Expand Down
5 changes: 3 additions & 2 deletions Controller/Redirect/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ public function execute()
$this->_redirect('checkout/onepage/success');
return;
}
if ($satispayPayment->status == 'PENDING') {

if ($satispayPayment->status == 'PENDING') {

$satispayCancel = \SatispayGBusiness\Payment::update($paymentId, [
'action' => 'CANCEL',
]);


if ($satispayCancel->status === 'CANCELED') {
$order->registerCancellation(__('Payment has been cancelled.'));
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Satispay Magento2 Plugin",
"type": "magento2-module",
"license": "MIT",
"version": "2.2.0",
"version": "2.2.1",

"keywords": [
"satispay",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Satispay_Satispay" setup_version="2.2.0">
<module name="Satispay_Satispay" setup_version="2.2.1">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down

0 comments on commit da3d175

Please sign in to comment.