co.ador Posted July 23, 2010 Share Posted July 23, 2010 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 ? Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/ Share on other sites More sharing options...
inversesoft123 Posted July 23, 2010 Share Posted July 23, 2010 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. Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/#findComment-1089991 Share on other sites More sharing options...
co.ador Posted July 23, 2010 Author Share Posted July 23, 2010 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? Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/#findComment-1089995 Share on other sites More sharing options...
inversesoft123 Posted July 23, 2010 Share Posted July 23, 2010 As per my knowledge paypal do not apply service charge to buyers. Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/#findComment-1089996 Share on other sites More sharing options...
co.ador Posted July 23, 2010 Author Share Posted July 23, 2010 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? Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/#findComment-1089997 Share on other sites More sharing options...
co.ador Posted July 24, 2010 Author Share Posted July 24, 2010 Does any body has any Idea on the topic under discussion? Link to comment https://forums.phpfreaks.com/topic/208635-how-can-i-implement-a-site-with-different-currencies-listing-prices/#findComment-1090495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.