I'm trying to setup PayPal express checkout to bypass redirect to Magento review page.
I have followed directions posted on stackoverflow link below but I am still redirected to http://mysite.com/index.php/paypal/express/review/ review page the button has changed to pay now but I am redirected before I can complete checkout.
Anybody point me in the right direction?
Changed
\app\code\core\Mage\Paypal\Controller\Express\Abstract.php
returnAction() for:
$this->_redirect('//review');
changed:
$this->_redirect('//review');
to:
$this->_redirect('//placeOrder');
Go to: \app\code\core\Mage\Paypal\Controller\Express\Abstract.php
and search in returnAction() for:
$this->_redirect('//review');
There you have to change:
$this->_redirect('//review');
Best Answer
Actually all the solutions mentioned here required to edit the Magento core. This is known as bad practise and does not keep your shop updateable.
What you need to do for a clean solution:
1) Create your module
Avoe/Paypal/etc/config.xml
app/etc/Avoe_Paypal.xml
2) Rewrite config, add useraction 'commit':
3) Create observer to redirect:
There is also a small Magento extension which was just released yesterday, to remove the review step:
https://github.com/tim-bezhashvyly/Sandfox_RemovePaypalExpressReviewStep