In my asp.net(c#) shopping cart web application.
I need to implement a currency converter for helping the buyers to know how much cost in their own currency.
When a buyer selects his country.I need to show the converted amount based on his country. Please give examples/reference links for solving the same.
Currency converters aim to maintain real-time information on current market or bank exchange rates, so that the calculated result changes whenever the value of either of the component currencies does. They do so by connecting to a database of current currency exchange rates.
A conversion rate is the ratio between two currencies, most commonly used in foreign exchange markets, which designates how much of one currency is needed to exchange for the equivalent value of another currency.
And this process of exchanging one country's currency to another is known as currency exchange.
Suppose that the EUR/USD exchange rate is 1.20 and you'd like to convert $100 U.S. dollars into euros. Simply divide the $100 by 1.20. The result is the number of euros: 83.33. Converting euros to U.S. dollars means reversing that process: multiply the number of euros by 1.20 to get the number of U.S. dollars.
You can use a web service like http://webservices.lb.lt/ExchangeRates/ExchangeRates.asmx to get the currency rates and calculate the details in your application.
Be careful state that the rates are indicative and might be different in billed charges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With