Solved

Exchange rate in CGI

Posted on 2001-08-13
7
200 Views
Last Modified: 2013-12-25
Any help appreciated on this one.....

I currently have a UK based web site which accepts on-line payments in US dollars (via 3rd Party). The value of the payment is displayed on the page in UK pounds and I put the US dollar equivelant embedded in a CGI script which links to 'Paypal' (3rd Party payment).

The problem is going to be with currency variations the amount displayed in UK pounds will not be the same as the amount in the embedded link. I need some way to update this value which is passed across to 'Paypal' and to make things worse I have no knowledge of scripting so any replies please keep it simple....

Thanks

Paul
0
Comment
Question by:piddle61
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
ID: 6383576
Are you using perl for CGI-scripts?
Then you may use
   use Finance::Currency::Convert;
just needs to add a line for UK pounds, then you can use
   $converter=new Finance::Currency::Convert;
   $pound=$converter->convert(100, "USD", "UKP");
to convert 100 US$ to UK punds
0
 

Author Comment

by:piddle61
ID: 6385299
I'm quickly trying to get my head around Perl & GCI scripts, your advice seems sound I will try it out with the help of some for our IT people and all being OK I think you'll get my points.... Thanks
0
 

Author Comment

by:piddle61
ID: 6410328
Sorry not to get back to this question... Have been away.. I am using a shell account on a unix box to learn perl and then basically put it on a web server supporting CGI scripts displaying info on HTML page.  I have put the above into a perl file and ran it on the server but it returned errors... I currently have the know-how of using variables and displaying variable on a web page... If you could just give me a little more help on the above script I would be a happy bunny.... Thanks
0
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 6412181
> .. If you could just give me a little more help ..
If you post the errors/problems here.

Usualy you will not have the required modules installed.
Let me know.
0
 
LVL 8

Expert Comment

by:jhurst
ID: 6420597
I think that in view of your own assessment of your own abilities you need more help here than we are likely to be able to give you in this exchange.
0
 

Author Comment

by:piddle61
ID: 6430117
Possibly right, althugh I have nearly managed to get the modules installed and have made a working script that will save a manually entered exchange rate, then call it up for use in further HTML..... I'm gonna award the point for sending me in the right direction.... Thanks
0
 

Author Comment

by:piddle61
ID: 6430122
This has sent me in the right direction after finding the modules it should work.... Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question