python - Django - Internationalization of rates -


i'm creating website django 1.8 , i've met detail, must display price list in local currency of country in displayed not know how convert between prices (eg, equivalence between price in usd , eur) please me.

thank you.

as others have said, currency conversion can dangerous currency market volatile , changing. in order want, you'll need few things:

  • an ip based geolocation service determine currency might used to. these unreliable @ best, , might not currency user wants. there lots of these services, ranging cheap "only fortune 500 companies can afford these". research , figure out best you. don't work ipv6, you'll have hole there.
  • a currency conversion api. see stackoverflow answer. perhaps more reliable ip geolocation services, still should considered unreliable.

you want clear , warn users conversion rates estimates. there should big asterisk , warning next every estimated currency conversion if @ all.

if you're taking payments, take them in whatever currency want, , bank final conversion.

generally, want bad idea every angle.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -