nuchie1 Posted August 11, 2010 Share Posted August 11, 2010 When I try PayPal sandbox it sends me a message "Payment Error" Is this right or do I need to find the problem. I don't know if this is normal for sandbox or not. Link to comment Share on other sites More sharing options...
tomerg3 Posted August 12, 2010 Share Posted August 12, 2010 It's normal, check out http://www.presto-changeo.com/content/10-fixing-paypal-problems Link to comment Share on other sites More sharing options...
LovePrestashop Posted August 12, 2010 Share Posted August 12, 2010 Thanks tomerg3! I have a very weird problem and I have posted here: http://www.prestashop.com/forums/viewthread/65859/configuring___using_prestashop/weird_problem__my_paypal_redirects_to_wrong_page. Could you please help me? BIG THANKS !!!!!!!!!!! Link to comment Share on other sites More sharing options...
phrasespot Posted August 12, 2010 Share Posted August 12, 2010 It's normal, check out http://www.presto-changeo.com/content/10-fixing-paypal-problems This is a nice write up you have. However your logic for the code you give is faulty. Specifically elseif ($_POST['payment_status'] != 'Completed')Should be changed to elseif ($_POST['payment_status'] != 'Completed' && (!Configuration::get('PAYPAL_SANDBOX') || $_POST['payment_status'] != 'Pending')) That elseif resolves to:completed AND sandboxedORcompleted AND pendingAlso the bracketed OR will only be evaluated IFF the part before the && is true. maybe you meant :elseif ($_POST['payment_status'] != 'Completed' || (!Configuration::get('PAYPAL_SANDBOX') && $_POST['payment_status'] != 'Pending')) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now