Title: Unsuported Paypal Currency Conversion
Last modified: September 22, 2016

---

# Unsuported Paypal Currency Conversion

 *  Resolved [bxtendit](https://wordpress.org/support/users/bkhassim/)
 * (@bkhassim)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/)
 * I am trying to find out if EDD might have hooks and/or a snippet that could enable
   the conversion of an unsupported Paypal currency to a supported one before it
   is sent to Paypal for processing.
 * It is something that is available with Woocommerce for example:
 * function woocommerce_paypal_args_for_inr($paypal_args){
    if ( $paypal_args[‘currency_code’]
   == ‘INR’){
 *  $convert_rate = getFromYahoo();
 *  $count = 1;
    while( isset($paypal_args[‘amount_’ . $count]) ){ $paypal_args[‘
   amount_’ . $count] = round( $paypal_args[‘amount_’ . $count] / $convert_rate,
   2); $count++; } $paypal_args[‘tax_cart’] = round( $paypal_args[‘tax_cart’] / 
   $convert_rate, 2); } return $paypal_args; } add_filter(‘woocommerce_paypal_args’,‘
   woocommerce_paypal_args_for_inr’);
 * function getFromYahoo()
    { $from = ‘USD’; /*change it to your required currencies*/
   $to = ‘INR’; $url = ‘[http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=&#8217](http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=&#8217);.
   $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 */ return $allData[
   1]; }
 * Any help or suggestions would be greatly appreciated
 * Thanks you
    -  This topic was modified 9 years, 11 months ago by [bxtendit](https://wordpress.org/support/users/bkhassim/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/#post-8211892)
 * Have you considered using one of the multi-currency plugins?
 * [http://www.wproute.com/2014/04/multi-currency-for-edd/](http://www.wproute.com/2014/04/multi-currency-for-edd/)
   
   [https://aelia.co/shop/currency-switcher-for-easy-digital-downloads/](https://aelia.co/shop/currency-switcher-for-easy-digital-downloads/)
 *  Thread Starter [bxtendit](https://wordpress.org/support/users/bkhassim/)
 * (@bkhassim)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/#post-8212039)
 * Thanks for your quick reply Pippin,
 * I did consider the multi currency plugins and will surely use one. However, I
   will still be left with a currency that Paypal will not be able to process (not
   INR incidentally).
 * As per the link you provided **Currency Switcher for Easy Digital Downloads**,
   they offer this note in the product description:
 * _**Please Note** Your ability to accept payment in each currency will depend 
   on your payment gateway and/or payment processing company, so your Customers 
   will need to complete their purchase in the appropriate currency._
 * Thanks again for your help.
    Regards
 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/#post-8212597)
 * The multi-currency plugins allow you to enable / disable currencies on a per-
   gateway basis, so they take care of that issue too.
 *  Thread Starter [bxtendit](https://wordpress.org/support/users/bkhassim/)
 * (@bkhassim)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/#post-8213722)
 * Alright, will definitely look into it
    Thanks Pippin

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unsuported Paypal Currency Conversion’ is closed to new replies.

 * ![](https://ps.w.org/easy-digital-downloads/assets/icon.svg?rev=3455837)
 * [Easy Digital Downloads – eCommerce Payments and Subscriptions made easy](https://wordpress.org/plugins/easy-digital-downloads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-digital-downloads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-digital-downloads/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-digital-downloads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-digital-downloads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-digital-downloads/reviews/)

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)

 * 4 replies
 * 2 participants
 * Last reply from: [bxtendit](https://wordpress.org/support/users/bkhassim/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/unsuported/#post-8213722)
 * Status: resolved