Skip to content

Commit

Permalink
Merge pull request #32 from jackie-od/master
Browse files Browse the repository at this point in the history
Fixing issue with Depersonalization
  • Loading branch information
nikolai-overdose authored Sep 27, 2021
2 parents dbb3709 + f566163 commit 36c930b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Controller/Payment/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ public function execute()
{
$this->logger->debug([__METHOD__ => 'start']);

/**
* Fix issue with session clear during order email sending.
* @see \Magento\PageCache\Model\DepersonalizeChecker::checkIfDepersonalize
*/
$this->getRequest()->setParams(array_merge(
$this->getRequest()->getParams(),
['ajax' => 1]
));

$token = $this->getRequest()->getParam('token');
$laybuyStatus = $this->getRequest()->getParam('status');
$quote = $this->checkoutSession->getQuote();
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Laybuy_Laybuy" setup_version="0.1.1">
<module name="Laybuy_Laybuy" setup_version="0.1.2">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit 36c930b

Please sign in to comment.