quoteRepository = $quoteRepository; parent::__construct( $context, $customerSession, $checkoutSession, $orderFactory, $checkoutFactory, $paypalSession, $urlHelper, $customerUrl ); } /** * Return shipping options items for shipping address from request * * @return void */ public function execute() { try { $quoteId = $this->getRequest()->getParam('quote_id'); $this->_quote = $this->quoteRepository->get($quoteId); $this->_initCheckout(); $response = $this->_checkout->getShippingOptionsCallbackResponse($this->getRequest()->getParams()); $this->getResponse()->setBody($response); } catch (\Exception $e) { $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e); } } }