fsdreamscapes Posted December 18, 2007 Share Posted December 18, 2007 (edited) There is a discrepancy code in the ipn.php which might be causing your problem. The hard coded discrepancy is $0.05 based on the selected currency in the order. This piece of code is a security checking in order to prevent hackers from modifying the button code by changing the total amount to $0.01. There used to be rounding problem in osCommerce 2.2 MS2, so it checks the total amount with the order record, with a tiny discrepancy to get rid off the rounding problem. Please make sure that you have set both USD and NZD with at least 2 decimal places. Alternately, you can set PayPal IPN module to 'Only USD' or 'Only NZD', depends on the primary currency of your PayPal account. PayPal IPN module will calculate the exchange rate before sending the order amount, so be sure to update the exchange rate at least once per day to keep it as accurate as possible. (It would be a good idea to run a cron job to update currencies automatically as well) I have it set to only receive USD via PayPal IPN... It's doing that fine, my prices are in USD (default currency) for my products, and paypal is billing in USD... The problem is that the order totals in osC are showing up in NZD... If the user is set at USD on the currency options and goes and pays everything works... If a user is set to NZD on the currency options and goes and pays, the osC values show the price in NZD, while PayPal correctly charges the USD. The problem is that I don't get a verified confirmation at the osC end... It seems that PayPal is correctly sending back 'payment complete' data but osC must be checking that against the osC checkout price and then not updating the order... Also on my Admin and Orders listing all the prices are in NZD rather than USD... Is there a way to force the checkout to use only USD while allowing customers to see the price in their local currencies? I already have my cron job working as of two days ago... It's updating the exchange rate every hour... Edited December 18, 2007 by fsdreamscapes Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.