Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Failure.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  public function execute()
15  {
16  $lastQuoteId = $this->getOnepage()->getCheckout()->getLastQuoteId();
17  $lastOrderId = $this->getOnepage()->getCheckout()->getLastOrderId();
18 
19  if (!$lastQuoteId || !$lastOrderId) {
20  return $this->resultRedirectFactory->create()->setPath('checkout/cart');
21  }
22 
23  return $this->resultPageFactory->create();
24  }
25 }