TWDesign Posted July 20, 2012 Share Posted July 20, 2012 In the older PayPal module version I could ALMOST get the thing to work. The problem is with non-decimal currencies like Japanese Yen. In particular if the product was entered into the BO as a fractional value (e.g. 95.238095 yen to allow for a tax inclusive [5%] final amount of 100 yen). In particular, by doing some hacking of the paypal.php file and paypalpayment.php file I was able to get PayPal to successfully take the payment (needed to add some hard coded php round() functions to make the totals zero decimals). BUT the process still failed on the Prestashop side because there is some function in PS that compares the total paid in PayPal to the original total amount of the order. So the order would get stuck in "payment error" mode. I need to find the PayPal module function that does this validation and force it to compare the ROUNDED original order amount to the PayPal amount and if the 2 agree, set the order status to payment received. Which file do I need to look in? Which function or line of code makes that validation comparison? Any help would be gratefully accepted. Link to comment Share on other sites More sharing options...
Dannielle Posted July 20, 2012 Share Posted July 20, 2012 Probably module i one great problem with paypal, but on my case what I had is the limited account that I had with them that even up to now the dispute hasn't been resolve. 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