Jump to content

how can I implement a site with different currencies listing prices?


co.ador

Recommended Posts

We are building a site that will contain stores from different countries and will list the prices in the local country's currency. It is a site that will list stores by country and users will be able to buy online by credit card, debit card, cash, money orders through paypal and other local way of paying. But How can that be done through paypal? Or paypal only accept dollar exchange? or will the mexican peso be transfered to the paypal account from the mexican online stores affiliated in the site ?

I always use Yahoo API for that.'

 

<?php
$from   = 'USD'; /*change it to your required currencies */
$to     = 'INR';
$url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s='. $from . $to .'=X';
$handle = @fopen($url, 'r');

if ($handle) {
    $result = fgets($handle, 4096);
    fclose($handle);
}
$allData = explode(',',$result); /* Get all the contents to an array */
$dollarValue = $allData[1];

echo 'Value of $1 in Indian Rupees is Rs. '.$dollarValue;
?>

 

You can first convert local currency to USD and then redirect user to paypal gateway for payment. This is 1st solution from your side. second is paypal always charge user in their local currency.

you said:

 

second is paypal always charge user in their local currency.

 

I like the idea of charging the user in the local currency, I was wondering if they also charge their $0.30 cents plus the 2.9% in the local currency that the transaction was made?

 

 

 

Can you talk more about what you meant by paypal charging the user in the local currency? What about the 0.3 and 2.9% per transaction, are those charges going to be charged in the local currency or after they have been converted in USD?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.