We have a client that wants a multilingual site with transactions in multiple currencies. Specifically, the customer should be charged in their native currency, so that they are billed the expected amount.
Here's how I'm currently thinking about it:
1. Let ubercart handle everything in USD (not that we're in the US, but most of his customers are, and besides only the US matter aye
)
2. Handle presentation of prices (also discounts, line items etc) in whatever currency the customer has selected (or has been selected for them) via the uc_format_currency function. That seems the most central place to do the conversion.
3. At the point of payment, ensure that the converted amount is handed to the gateway. I haven't gone too deep into this, but I hope that doing the conversion around uc_payment_balance should work.
I'd appreciate comments on whether this approach will work, and whether you guys think those two points of conversion (uc_format_currency and uc_payment_balance) will work.
I realise there's been a bit of discussion about this stuff before:
http://www.ubercart.org/forum/support/4758/ubercart_multilingual_site_mu...
http://www.ubercart.org/forum/support/819/multiple_currencies_products
but nothing tangible seems to have come out of it.
If it looks like the approach I've outlined is going to work out, I'm gonna start on a contrib module for it. Else I'd be keen to hear of the best way to tackle this problem.



