/** * Review order after returning from PayPal */ public function reviewAction() { try { $this->_initCheckout(); $this->_checkout->prepareOrderReview($this->_initToken()); $this->loadLayout(); $this->_initLayoutMessages('paypal/session'); $this->getLayout()->getBlock('paypal.express.review')->setQuote($this->_getQuote())->setCanEditShippingAddress($this->_checkout->mayEditShippingAddress())->getChild('details')->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.')); Mage::logException($e); } $this->_redirect('checkout/cart'); }