Skip to content

Commit

Permalink
Added session destroy on success.
Browse files Browse the repository at this point in the history
  • Loading branch information
drebroff committed Feb 8, 2021
1 parent 80afbba commit ccd1e2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Controller/Checkout/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ public function execute()

$errorCode = $status->getErrorCode();
$sessionId = $status->getCtrlCustomData();

$this->checkoutSession->destroy();
$this->checkoutSession->setSessionId($sessionId);

$orderId = $status->getOrderID();

$session = $this->checkoutSession;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The author of this plugin can NEVER be held responsible for this software.
There is no warranty what so ever. You accept this by using this software.

## Changelog
* 1.2.2 - Added session destroy on success.
* 1.2.1 - Alipay disable fix. Credit Card configuration added.
* 1.2.0 - Added payment method selection and online refund. Iframe removed.
* 1.1.3 - Removed deprecated methods
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"payxpert/connect2pay": "*"
},
"type": "magento2-module",
"version": "1.2.1",
"version": "1.2.2",
"license": [
"Apache-2.0"
],
Expand Down

0 comments on commit ccd1e2b

Please sign in to comment.