Solved

Exchange rate in CGI

Posted on 2001-08-13
7
182 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
> .. 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
Comment Utility
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
Comment Utility
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
Comment Utility
This has sent me in the right direction after finding the modules it should work.... Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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 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 …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

18 Experts available now in Live!

Get 1:1 Help Now