Solved

Exchange rate in CGI

Posted on 2001-08-13
7
184 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now