diff --git a/Controller/Payment/Response.php b/Controller/Payment/Response.php index 5777570..cb8e991 100644 --- a/Controller/Payment/Response.php +++ b/Controller/Payment/Response.php @@ -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(); diff --git a/etc/module.xml b/etc/module.xml index afc006b..fcf8483 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -5,7 +5,7 @@ */ --> - +