_initCheckout(); $this->_checkout->prepareOrderReview($this->_initToken()); $this->_view->loadLayout('paypal_express_review'); $this->getResponse()->setBody( $this->_view ->getLayout() ->getBlock('express.review.shipping.method') ->setQuote($this->_getQuote()) ->toHtml() ); return; } catch (\Magento\Framework\Exception\LocalizedException $e) { $this->messageManager->addExceptionMessage( $e, $e->getMessage() ); } catch (\Exception $e) { $this->messageManager->addExceptionMessage( $e, __('We can\'t update shipping method.') ); } $this->getResponse()->setBody( '' ); } }