Ta for all replies. Code looks good Dim, will try that.
I assumed it wouldn't exactly match value they will be charged when they get into Worldpay where they are presented with a choice of currency and it then shows the appropriate sum, although I had assumed the charges fell on us rather than them so difference would be small. Still, easy enough to check that out.
Couldn't find any facility on Worldpay except processing an email after the order.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Shopping cart euro conversion
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Shopping cart euro conversion"
Collapse
-
That's an excellent point - the exchange rate on the foreign currency markets would have only marginal relevance to the actual rate used in processing payment. I know you originally specified an approximate conversion, but people don't read the words next to the figures, and whinge when the final figure varies.Originally posted by PAH View PostIsn't a general conversion rate asking for trouble, if it doesn't match what your payment processor conversion rate (+ commission, handling fees etc, etc) is?
Last thing you want is to advertise an example calculation, then the punters get charged a totally different amount. Bound to end in tears.
Does the company that provides payment processing offer some kind of web service that would allow you to get a more accurate approximation? Better still would be if users could select their currency of choice and see all prices presented in that. Though then that price would become binding, I would imagine.
Leave a comment:
-
You just need to caveat it when you display the price in Euros, that this is an indicative cost and may vary from the amount charged by the payment processor. Same as eBay does for their converted currencies.Originally posted by PAH View PostIsn't a general conversion rate asking for trouble, if it doesn't match what your payment processor conversion rate (+ commission, handling fees etc, etc) is?
Last thing you want is to advertise an example calculation, then the punters get charged a totally different amount. Bound to end in tears.
Leave a comment:
-
Isn't a general conversion rate asking for trouble, if it doesn't match what your payment processor conversion rate (+ commission, handling fees etc, etc) is?
Last thing you want is to advertise an example calculation, then the punters get charged a totally different amount. Bound to end in tears.
Leave a comment:
-
I use Yahoo to get the exchange rate.
Here's some quick and dirty C# code:
usage:Code:using System; using System.IO; using System.Net; namespace DimPrawn.ASP.NET.Support { /// <summary> /// Summary description for LookupCurrency. /// </summary> public class LookupCurrency { public LookupCurrency() { } public decimal GetExchangeRate(string fromCurrencyCode, string toCurrencyCode) { decimal exchangeRate = 0.0m; string url = string.Format(URL, fromCurrencyCode, toCurrencyCode); Uri uri = new Uri(url); string content = FetchPage(uri); Numeric.IsNumber(content, out exchangeRate); return exchangeRate; } private string FetchPage(Uri uri) { string content = null; WebResponse response = null; try { // Create a request for this uri WebRequest request = WebRequest.Create(uri); // First we only want to ge the HEADER to determine the type of resource at this url request.Method = "HEAD"; // Fetch the response response = request.GetResponse(); if ( response is HttpWebResponse ) { _statusCode = ((HttpWebResponse)response).StatusCode.ToString(); _statusDescription = ((HttpWebResponse)response).StatusDescription; if ( _statusCode.Equals( "OK" ) ) { // read the headers WebHeaderCollection headers = response.Headers; // get the content type string contentType = headers["Content-type"]; // If HTML, we will read the content if (contentType.StartsWith("application/octet-stream")) { // Fetch full content request = WebRequest.Create(uri); // Fetch the response response = request.GetResponse(); if ( response is HttpWebResponse ) { _statusCode = ((HttpWebResponse)response).StatusCode.ToString(); _statusDescription = ((HttpWebResponse)response).StatusDescription; if ( _statusCode.Equals( "OK" ) ) { StreamReader sr = new StreamReader( response.GetResponseStream( ) ); content = sr.ReadToEnd( ); } else { _errorCount++; } } else { _errorCount++; } } } } } catch(Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); _errorCount++; } finally { if (response != null) { response.Close(); } } return content; } private string _statusCode; private string _statusDescription; private int _errorCount; private const string URL = "http://finance.yahoo.com/d/quotes.csv?s={0}{1}=X&f=a&e=.txt"; } }
Code:LookupCurrency currencyRate = new LookupCurrency(); Decimal exchangeRate = currencyRate.GetExchangeRate("GBP", "EUR");
Leave a comment:
-
Well can you "call" Google - it seems to know the latest exchange rate, e.g. do a search for "100 GBP to EUR", you only have to parse the response.Originally posted by xoggoth View PostI want to show an approximate value of an order in Euros on my shopping cart. I could just manually update a rate at regular intervals but as there are so many useful little gadgets around I was wondering if there might be a freeware/cheap link thingy one can embed in a website that I can retrieve in jscript?
Cheers for any ideas.
Leave a comment:
-
Ok. I think you'll end up paying for that sort of thing. I've never seen anywhere that does it for free but then I haven't researched it that thoroughly
.
Maybe you could use their (free) email service some how (maybe extracting the rate you need and plugging into your database?).
Looking at it though, you might be breaking some rules if you use the data commercially (http://www.xe.com/cus/)
Leave a comment:
-
Ta mule, have found a few neat little converters like that to add to website but am ideally looking for something that needs no user input and will just supply me with a multiplier so I can work out a euro cost from pound cost and show on order page.
Leave a comment:
-
Shopping cart euro conversion
I want to show an approximate value of an order in Euros on my shopping cart. I could just manually update a rate at regular intervals but as there are so many useful little gadgets around I was wondering if there might be a freeware/cheap link thingy one can embed in a website that I can retrieve in jscript?
Cheers for any ideas.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Business expenses: What IT contractors can and cannot claim from HMRC Yesterday 08:44
- April’s umbrella PAYE risk: how contractors’ end-clients are prepping Jan 29 05:45
- How EV tax changes of 2025-2028 add up for contractor limited company directors Jan 28 08:11
- Under the terms he was shackled by, Ray McCann’s Loan Charge Review probably is a fair resolution Jan 27 08:41
- Contractors, a £25million crackdown on rogue company directors is coming Jan 26 05:02
- How to run a contractor limited company — efficiently. Part one: software Jan 22 23:31
- Forget February as an MSC contractor seeking clarity, and maybe forget fairness altogether Jan 22 19:57
- What contractors should take from Honest Payroll Ltd’s failure Jan 21 07:05
- HMRC tax avoidance list ‘proves promoters’ nothing-to-lose mentality’ Jan 20 09:17
- Digital ID won’t be required for Right To Work, but more compulsion looms Jan 19 07:41

Leave a comment: