Using PayPal Payments Standard, the site works just fine with live PayPal. A couple of years ago I had tested Magento with Sandbox and that too worked fine.
I am now trying to do some test transactions and have changed the settings to the Sandbox Merchant email, and set 'Sandbox Mode' to Yes.
The test customer is taken correctly to PayPal Sandbox, completes the transaction and receives the correct PayPal receipt email (into the Sandbox customer account). He is then taken back to Magento where he gets the 'Your order has been received' screen. However the order confirmation email is not sent (the test customer has a live email address to receive this into) and the transaction still stays as 'Pending Payment'.
As far as I know nothing has changed since I last used Sandbox, and this is now driving me crazy; I have spent literally days fiddling with Sandbox and Magento settings but just can't get it to work. Even more annoying when switching back to PayPal live everything works as it should!
Solved! Go to Solution.
Here is how you can set this for the PayPal Sandbox for testing mode.
Above things are most considerable when you are setting your Magento Payment method as PayPal.
Thanks for this, but it wasn't the PayPal config that was the problem.
I followed the link to your page where you mentioned that you had this problem when the store is in Developer mode, and that was my problem. Obviously I don't want the store live when it is going to Sandbox!
This is something that needs addressing in either Magento or PayPal Sandbox; no one would want to use Sandbox on a live store!