dano1967 Posted January 23, 2007 Share Posted January 23, 2007 Brian,I think that dano's problem is that while you support different currencies, (GBP and USD, for instance) the amount sent is always in the database currency. This means that it only works correctly if the payment currency is the same as the database currency; one currency at a time. It will work for a USD only site or a GBP only site, but as soon as you allow the customer to choose among currencies, it breaks. To support multiple currencies, it appears that a payment module must call the currency class to convert between the database units and the payment units. This sounds like yet another undocumented (or poorly documented) feature of the osC payment module requirements. I suppose one should look at a module that works correctly with multiple currencies to determine how to get it right. --Glen Give the man a cupie doll!!!! :thumbsup: Actually, the code can be ripped out of the old Paypal IPN module - I looked. In the settings, one has the option to specify the Paypal transaction currency, or to conduct the transaction in the currency currently selected by the user. Given a few months, maybe years, I'm sure I could hack it together myself.... >_< This is an important distinction, because for people like me that base all their prices on USD, but allow Canadians to purchase in CAD and Americans or Europeans etc... to purchase in USD, the Paypal currency should match the currency used to generate the invoice. Otherwise it can make it almost impossible to reconcile the financial transactions at the end of the month. dano1967 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.