/**
  * Review order after returning from PayPal
  */
 public function reviewAction()
 {
     /** @var Mage_Checkout_Model_Session */
     $checkoutSession = $this->_getCheckoutSession();
     if ($checkoutSession->getIsUseMultiShippingCheckout()) {
         /** @var array */
         $paymentData = (array) $checkoutSession->getMultiShippingPaymentData();
         $paymentData['is_return_from_paypal'] = true;
         $checkoutSession->setMultiShippingPaymentData($paymentData);
         $this->_redirect('checkout/multishipping/overview');
     }
     try {
         $this->_initCheckout();
         $this->_checkout->prepareOrderReview($this->_initToken());
         $this->loadLayout();
         $this->_initLayoutMessages('ebayenterprise_paypal/session');
         $reviewBlock = $this->getLayout()->getBlock('ebayenterprise_paypal.express.review');
         $reviewBlock->setQuote($this->_getQuote());
         $reviewBlock->getChild('details')->setQuote($this->_getQuote());
         if ($reviewBlock->getChild('shipping_method')) {
             $reviewBlock->getChild('shipping_method')->setQuote($this->_getQuote());
         }
         $this->renderLayout();
         return;
     } catch (Mage_Core_Exception $e) {
         $checkoutSession->addError($e->getMessage());
     } catch (Exception $e) {
         $checkoutSession->addError($this->__('Unable to initialize Express Checkout review.'));
         $this->_logger->logException($e, $this->_context->getMetaData(__CLASS__, [], $e));
     }
     $this->_redirect('checkout/cart');
 }
 /**
  * Review order after returning from PayPal
  */
 public function reviewAction()
 {
     try {
         $this->_initCheckout();
         $this->_checkout->prepareOrderReview($this->_initToken());
         $this->loadLayout();
         $this->_initLayoutMessages('ebayenterprise_paypal/session');
         $reviewBlock = $this->getLayout()->getBlock('ebayenterprise_paypal.express.review');
         $reviewBlock->setQuote($this->_getQuote());
         $reviewBlock->getChild('details')->setQuote($this->_getQuote());
         if ($reviewBlock->getChild('shipping_method')) {
             $reviewBlock->getChild('shipping_method')->setQuote($this->_getQuote());
         }
         $this->renderLayout();
         return;
     } catch (Mage_Core_Exception $e) {
         Mage::getSingleton('checkout/session')->addError($e->getMessage());
     } catch (Exception $e) {
         Mage::getSingleton('checkout/session')->addError($this->__('Unable to initialize Express Checkout review.'));
         $this->_logger->logException($e, $this->_context->getMetaData(__CLASS__, [], $e));
     }
     $this->_redirect('checkout/cart');
 }