• Rishi Mehta is an PHP architect. His expert knowledge helps many international clients including India to extend the span of their business. If you are impressed with his articles on this blog - approaching him for freelance projects would not be bad deal.

WordPress WooCommerce - Setup PAYPAL for INR

WordPress WooCommerce Currency

WordPress is very popular CMS and to enhance its functionality to the level of eCommerce, WooCommerce has done a great job by creating plugin.

Today I am going to talk about WordPress WooCommerce - Setup PAYPAL for INR (instead of USD). Most of eCommerce developers know that Paypal is most common medium for online transaction now and it provides only few currency support as a part of standard. And that makes a big STOP for Indian users to use Paypal.

I Was Stuck At

One of my client from India wanted to create an eCommerce Website and the need was quiet simple in just couple of words, the currency transaction should be in Indian Rupees (INR) and Paypal would be the mediator. As the entire project going to target India only.

I go to Paypal developer API and tested some default code. That worked fine with the $. Then I changed the currency setting in WooCommerce to INR then tested it for Paypal and it has started giving error "Paypal disabled, your currency not supported by Paypal". I stuck. Then I had Googled a lot and finally got solution for this.

The Problem

After long search I found that Paypal is not supporting the Indian Rupees as currency and I need to  change currency from INR to USD when some order placed to eCommerce website and then send it to Paypal for transaction to be done. I found some solution on tech blogs but almost all about symbol conversion none of them said about currency conversion.

The Solution

Steps

  1. Go to theme folder
  2. Open function.php file and paste in #4Other way is to create a new file as a HOOK and include it in function.php. 2nd one is advisable as if you change/edit theme's function.php file then it would revert back at the time of update.
  3. Checking in WooCommerce Currency Settings whether your desired currency is available or not.
  4. IF NOT add the code OR skip this step.
    add_filter( 'woocommerce_currencies', 'inr_currency' );
    
    function inr_currency( $currencies ) {
        $currencies['INR'] = __( 'Indian Currency', 'woocommerce' );
        return $currencies;
    }
    
    add_filter('woocommerce_currency_symbol', 'inr_currency_symbol', 10, 2);
    
    function inr_currency_symbol( $currency_symbol, $currency ) {
        switch( $currency ) {
        case 'INR': $currency_symbol = '₹'; break;
     //Need to add Rupees Symbol font to show INR symbol instead of SQUARE symbol
    }
    return $currency_symbol;
  5. Above code will add INR and its symbol in WooCommerce currency list. So now INR can be selected from backed settings.
  6. Now as Paypal is not supporting this currency, WooCommerce wont includeINR as valid currency for transactions. So we need to add validation in WooCommercePaypal configuration. now this things to add inwoocommerce plugin file. we are editing a core file ofwoocommerce for this. please add your currency in array at line 77 in file plugin/woocommerce/classes/gateways/paypal/class-wc-gateway-paypal.php
    function is_valid_for_use() {
            if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paypal_supported_currencies', array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'INR' ) ) ) ) return false;
    
            return true;
        }
  7. After adding above code now you can do transaction via Paypal by adding account details. But wait still it's not done. We have just fixed for WooCommerce plugin yet and the second phase for Paypal still remains. Means as discussed above that Paypal doesn't accept INR as currency if you buy something for INR 1000 Paypal consider as USD 1000 and you are enough smarter to understand, ti's wrong and need to be fixed up. Don't worry here is the solution that I found by adding one more filter. THIS FILTER WILL CONVERT INR TO USD before sending them toPaypal.
    function convert_inr_to_usd($paypal_args){
    
        if ( $paypal_args['currency_code'] == 'INR'){
            $convert_rate = get_exchange_rate(); 
            //Set converting rate getting call back function
            $count = 1;
    
            while( isset($paypal_args['amount_' . $count]) ){
                $paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);
                $count++;
            }
        }
        return $paypal_args;
    }
    add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');
  8. Above code will convert INR to USD at the rate what you have mentioned and currency rates are changeable property on daily basis. So I integrated Google Exchange Rates for automated process for currency rates. Now it will update the exchange rate value directly from Google convert it. Code will get currency rate and give it to our main function. so we will get full automated currency conversion functionality for Paypal at single place.Code is Updated after igoogle retired.To work with Below code, you need to register for your app_id : https://openexchangerates.org/signup/free
    function get_exchange_rate() {
        $file = 'latest.json';
    $appId = 'Your_APP_ID';
    
    // Open CURL session:
    $ch = curl_init("http://openexchangerates.org/api/$file?app_id=$appId");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    
    // Get the data:
    $json = curl_exec($ch);
    curl_close($ch);
    
    // Decode JSON response:
    $exchangeRates = json_decode($json);
    
    // Returning Value:
    return $exchangeRates->rates->INR;
    }

You can use it for your own currency also, just replace currency name and symbol. you can also change conversion to euro instead of USD. just change USD code with EURO code in above code.

  • Thanks...this is just what i was looking for....I will get back with a comment as soon as I try it....

  • ok..I'm facing a problem at the stage where it redirects to paypal...the amount is showing as 0$...what could be possibly wrong..can anyone help...thanks

    • is it solved ? or you need assistance. Let us know, so i can help you out also if its solved. reply here, what was the issue. so we can check if its some copy mistake by you or its in my code.

  • can you put code in comments or send me link so i can check into it. most probably one thing happen that your function name should be wrong in exchange rate function.

    1) make sure you have exchange rate function properly declare.
    $convert_rate = get_exchange_rate();
    function get_exchange_rate($from='USD', $to='INR') {
    >> get_exchange_rate must be same. so check in it. if still issue. send your code so i can check it.

  • SCStechindo

    Hi,

    Can you specify where to put for all the code specifically?
    Or all the code can go to Theme Functions.php file?

    If this work, this will be a huge help for me.
    Thank You

    • There are 2 option to do.
      1) You can add full code in theme Functions.php file.
      2) create one file with all code and include it in theme Functions.php file.

      I mostly preferred 2nd option as i can use it than multiple times in multiple theme. and also in-case of changing-upgrading theme file still remains, i need to just again include it.

  • archloxx

    dear Rishi,

    I did not do step 4 as i have the currency added through a plugin.

    I did step 6 perfectly

    I added codes in steps 7 & 8 to the file at "plugin/woocommerce/classes/gateways/paypal/class-wc-gateway-paypal.php"

    but i still get the cart to be have value of zero 0
    similar to Salman Patel...

    regards

    • Hi archloxx,

      Steps 7 - 8 need to add in your theme function file. so it will work. only step 4 need to add in plugin file. everything else will be go into theme function file.

  • archloxx

    am getting some clues i guess... what does 'inr_in_paypal' refer to? shouldn't there be a function with this name? somewhere?

    • yup. i updated code. it was by mistake added there in copy paste procedure. 🙂

  • Got it correct till displaying as INR. But the same is showing as USD in Paypal.
    Do I need to integrate both 7 & 8 Code or only 8?
    Where I need to integrate Code 8?

    Thanks

  • Hi All,

    sorry for the 0 value you are getting. it just cause of special character convert in html and url goes wrong in google checkout.

    like & = &

    i updated step 8 code for that. please update it or just change google url to this and it will work.

    http://www.google.com/ig/calculator?hl=en&q=1%s=?%s

  • Franklin John

    Thanks Rishi, This little piece of information helped me a lot!!

  • chita

    Thank u very much rishi, This code help me and save my time. i was confused how to setup paypal with indian rupee.

    Thant u agin.

    • You are Welcome. i know that there is no information on code conversion when i was finding. so i made it for others who also having issue.

  • Arvind Draj

    Thanks Rishi it's a great support, but i have another same problem gravity forms paypal inr-->usd convertion.. can u help me on this..

  • Imran Athar

    Hi Rishi,
    Thanks for the post it supported and saved time alot I have any other problem with credit card as in woocomerce i have configured Mijereh for credit card support in payment getways now i am facing the same problem that when i select credit card i will be shifted to Mijreh but the amount (which is in AED) is swtiched in USD so suppose the amount is "125 AED" it is becoming "125 USD" can we some how do above steps to convert rate and then post in USD??

    Thanks in advance..

    • Hi Imran,
      I am little bit busy this week on ccevenue woocommerce issues i am facing for INR :-). but i will check on this and reply you if i get it working.

  • Maximo Mejia

    Have you worked this out for Google Wallet? I have an idea of how to implement it but don't know enough php to do it as a filter. I only know how to alter the wc-gateway-google-wallet.php file. Would really appreciate any help.

    Thanks

    • Hi Maximo,

      I didn't use google wallet before. please send me plugin link which you are using for it. so i can download it and let you know how you can do it for google wallet.

  • Ahmed

    hello rishi.. nice article.. can u please tell me where do we need to add that filter (step 7)

    • HI Ahmed,

      Just add step 7 and 8 both in your theme function file.

      • Ahmed

        do u mean index.php or functions.php ? sorry but i m new to wordpress so asking u stupid questions.

        • Hi Ahmed,

          Add it in function.php file

        • Ahmed

          ya thanks rishi.. got it 🙂

  • Henry

    Now there's a new plug-in to handle this for every currency pairing that you may look for.
    It is called "PayPal Currency Converter for WooCommerce's PayPal Payment Gateway" and can be found at http://intelligent-it.asia/product/paypal-currency-converter/

    • Hi Henry,

      Yah plugin is looking good but its paid. it doesn't seems to use paid plugin for free code stuff. so you better check on that too. if you find any free solution, let us know. i will check that too.

      Thanks,
      Rishi Mehta

  • Ahmed

    hi rishi.. sorry to bother u again.. i have activated the child theme. so do i need to add the code in step 7 and 8 in main theme function.php or in the child theme?

    • Hi Ahmed,

      Thats np. you can add it in both function file whatever you like. but i suggest, add it in main theme function file. so if you change child theme again, you don't need to copy code again.

  • Parth

    hello rishi, i tried what you said above... but still it isn't converting my amount from usd to inr... please help.. it redirect with same inr amount to usd

    • Hi Parth,
      Pls check step 7 and 8. Did you add them in your template function file ? cause that code add additional filter for paypal conversion. check and let me know if you still cannot solve it.

  • sampath

    thank you man done a good job i used this code and it worked well.

  • Eka

    Thank you very much, your code works wonderfully!

  • Ahmed

    hey rishi.. i just now updated woocommerce to the latest version and this trick has stopped working. can u please check whats the problem. before the update evrything was working fine

    • Ahmed

      i guess because the igoogle has retired u need to make some modifications in the code..

  • Anand
  • Hi All,

    As from Nov 1 2013, iGoogle is retired, above currency conversion code will not work. I am still finding any free api to replace. If any one already have let me know. i will update according to it.

  • Hi All,

    step 8, igoogle Code is updated now and its working with exchange rate api. you can register free from given url and implement code.

    Thx @a147a24571a2512dc3a4ef56dcc2f77d:disqus for quick inform on igoogle.

    • Ahmed

      🙂

      • ahmed

        bro i dont know y but still when i m redirected to paypal page i get amount as 0. Previously evrythng was working fine. its happening from the time i have updated woocommerce 3 days back. can u please test it once with the latest version of woocommerce? 🙁

        • I didn't test it on latest version yet. but still for confirmation. after update woocommerce, did you update step 6 code in woocommerce core file ?

          • yes bro. i repeated steps 6,7 & 8. i am not able to understand why does it shows amount as 0.

  • Basanth Kumar

    Works Perfect!!! Thanks 🙂

  • George

    Hello Rishi,
    Great work from you,I implemented your method and it worked perfectly (well almost),until I started getting a validation error after customers transact using paypal.
    Validation error: PayPal amounts do not match (gross 62.99). Order status changed from pending to on-hold.
    As a result of this validation error,my inventory does not update since the order status is not complete,this inevitably is creating problems in my stock management.Any help would be highly appreciated.Thanks in advance.

  • tiwi

    it really gonna help me so much if you make video tutorial about this paypal thing please 🙁

    • Hi Tiwi,

      Will check. i am quite busy in my projects. so not possible right now. but thanks for your feedback. we are planning to starting video tutorial blog post in future. so you will be notify on that later. 🙂

  • Abdullah Helayel

    THANK YOU THANK YOU THANK YOU!!

  • Tejas

    Hello Rishi,
    I have tried your method and got success as you have described. But, there seems to be a problem with payment. As soon as I use my credit card I get the warning message that "paypal does not allow domestic payment" then $1 get deducted from credit card as service tax and you don't get your payment done.
    Any solution for this? I talked to the paypal care, but they don't have any solution for this either.

    • Hi Tejas,

      Will check on it and let yo know if its come after recent update.

      • Tejas

        bit.ly/1qoUuql
        this is my website

  • Hi Rishi,

    Have you checked if this method is working with woocommerce 2.1.12 ?

    • Hi Ahmed,

      Didin't checked on woocommerce 2.1.12. Let me know if its not working will check if hook is changed or some code is improved in woocommerce.

  • Amit

    Hey Rishi, thats the great & fantastic work i love it.. code worked finally but i have some issue at the time of PayPal Gateway window .. the currency is not converting fron INR to USD ....!! let me tell u what i have done ... in my code .. Step1- in Theme function.php Added -------------(((((((((

    // WordPress WooCommerce – Setup PAYPAL for INR

    add_filter( 'woocommerce_currencies', 'inr_currency' );

    function inr_currency( $currencies ) {

    $currencies['INR'] = __( 'Indian Currency', 'woocommerce' );

    return $currencies;

    }

    add_filter('woocommerce_currency_symbol', 'inr_currency_symbol', 10, 2);

    function inr_currency_symbol( $currency_symbol, $currency ) {

    switch( $currency ) {

    case 'INR': $currency_symbol = '₹'; break;

    //Need to add Rupees Symbol font to show INR symbol instead of SQUARE symbol

    }

    return $currency_symbol;

    }

    function convert_inr_to_usd($paypal_args){

    if ( $paypal_args['currency_code'] == 'INR'){

    $convert_rate = get_exchange_rate();

    //Set converting rate getting call back function

    $count = 1;

    while( isset($paypal_args['amount_' . $count]) ){

    $paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);

    $count++;

    }

    }

    return $paypal_args;

    }

    add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');

    function get_exchange_rate() {

    $file = 'latest.json';

    $appId = 'beae37f455d5452794e77c13eb2bf20f';

    // Open CURL session:

    $ch = curl_init("http://openexchangerates.org/api/{$file}?app_id={$appId}");

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    // Get the data:

    $json = curl_exec($ch);

    curl_close($ch);

    // Decode JSON response:

    $exchangeRates = json_decode($json);

    // Returning Value:

    return $exchangeRates->rates->INR;

    }

    )))))

    & then replaced the code of 77 line in class-wc-gateway-paypal.php page location is in my plugins --->>> /wp-content/plugins/woocommerce/includes/gateways/paypal ... Added this code .....

    ((((

    function is_valid_for_use() {

    if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paypal_supported_currencies', array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'INR' ) ) ) ) return false;

    return true;

    }

    ))))

    i will be very thankful to you.. i think i have done 99.99% work by your help but here is 0.01 is left os pls pls help ....... Thanks in Advance

    • Hi,

      I checked it. I fount that it will be problem cause of curly bracket.

      $ch = curl_init("http://openexchangerates.org/api/{$file}?app_id={$appId}");

      Remove curly bracket from this line. open exchange updated that api call function.

      • Amit

        Hi Rishi,

        First of all thanks to reply me ..!!

        i have changed it as u told ..

        http://openexchangerates.org/api/latest.json?app_id=beae37f455d5452794e77c13eb2bf20f

        in place of $ch = curl_init("http://openexchangerates.org/a...{$file}?app_id={$appId}");

        ------------------------------------------------------------------------------------------------
        //This is my code line..

        add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');

        function get_exchange_rate() {

        $file = 'latest.json';

        $appId = 'beae37f455d5452794e77c13eb2bf20f';

        // Open CURL session:

        $ch = curl_init("http://openexchangerates.org/api/$file?app_id=$appId");

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        // Get the data:

        $json = curl_exec($ch);

        curl_close($ch);

        // Decode JSON response:

        $exchangeRates = json_decode($json);

        // Returning Value:

        return $exchangeRates->rates->INR;

        }

        -------------------------------------------------------------------------------------------------

        but here is not any change .. Rs 800 is showing in product page ..but at the time of sandbox checking payment value is showing in $ 800 & payment..
        You could ask me question as per the same, what i have done regarding this .. revert u sure .. a lots googled but not getting solution .. May u pls again reply ..

        Very Thanks in advance Rishi,

        • Hi,

          Let me know which version of woocommerce you are using. so i can check on it if ts working or not.

      • Amit

        add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');

        function get_exchange_rate() {

        $file = 'latest.json';

        $appId = 'beae37f455d5452794e77c13eb2bf20f';

        // Open CURL session:

        $ch = curl_init("http://openexchangerates.org/api/$file?app_id=$appId");

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        // Get the data:

        $json = curl_exec($ch);

        curl_close($ch);

        // Decode JSON response:

        $exchangeRates = json_decode($json);

        // Returning Value:

        return $exchangeRates->rates->INR;

        }

        -------------------------------------------------------------------

        One another thing need to tell u..

        my website URl is this http://www.webnetcreatives.com/

        but in a defined folder i have upload files for my lated project "asrdeep" http://www.webnetcreatives.com/asrdeep/ & for https://openexchangerates.org/signup/free used this url http://www.webnetcreatives.com/asrdeep/ is this issue is coming by this ?? or others ..?? pls help

  • Hi Rishi,

    In which file should I paste the code?

    function convert_inr_to_usd($paypal_args){

    if ( $paypal_args['currency_code'] == 'INR'){
    $convert_rate = get_exchange_rate();
    //Set converting rate getting call back function
    $count = 1;

    while( isset($paypal_args['amount_' . $count]) ){
    $paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);
    $count++;
    }
    }
    return $paypal_args;
    }
    add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');

    • You need to paste this code into active theme function.php file.

  • Hi Rishi,

    Thanks for this great script.

    As instructed, I skipped the STEP 4, since the INR symbol is included in WooCommerce 2.1.12

    I moved on to the next step i.e. STEP 6 and added the INR symbol to the class-wc-gateway-paypal.php located within the folder /public_html/wp-content/plugins/woocommerce/includes/gateways/paypal

    And the code looks like this.

    function is_valid_for_use()
    {
    if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paypal_supported_currencies', array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'RUB', 'INR' ) ) ) )
    {
    return false;
    }
    return true;
    }

    Now I moved on the STEP 7 and added the following code to the functions.php file of my active theme.

    function convert_inr_to_usd($paypal_args)

    {
    if ( $paypal_args['currency_code'] == 'INR')

    {
    $convert_rate = get_exchange_rate();
    //Set converting rate getting call back function
    $count = 1;
    while( isset($paypal_args['amount_' . $count]) ){
    $paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);
    $count++;
    }

    }
    return $paypal_args;
    }

    add_filter('woocommerce_paypal_args', 'convert_inr_to_usd');

    Add the following code as well to the functions.php file.

    function get_exchange_rate()

    {
    $file = 'latest.json';
    $appId = 'xxxxx-Added-My-App-IDxxxxxx';

    // Open CURL session:
    $ch = curl_init("http://openexchangerates.org/api/$file?app_id=$appId");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    // Get the data:
    $json = curl_exec($ch);
    curl_close($ch);

    // Decode JSON response:
    $exchangeRates = json_decode($json);

    // Returning Value:
    return $exchangeRates->rates->INR;
    }

    And I using the following Plugin to accept payments via PayPal.
    http://www.angelleye.com/product/paypal-for-woocommerce-plugin/

    Using PayPal Express to accept the payments.

    By when I try to checkout using PayPal I'm getting the following error.

    "10605 - Currency is not supported"

    Would really appreciate, if you could please help me out with fixing this.

    Thanks In Advance !

    • Hi,

      Above script and tutorial is for default paypal payment gateway coming with woocommerce. its not checked or used for any other paypal plugin of wordpress. Still if you want to use it on other plugin, find similar kind of code in that plugin files and replaces with this.

      Also if you check the script properly its having wordpress hooks which are only works with paypal default payment gateway. similarly you need to find your plugin's wordpress hooks. so your code run at specific moment in plugin.

  • Sukhveer Singh

    Thanks a lot sir. But problem with the 1st code i use this one:-

    // add INR to WooCommerce
    add_filter( 'woocommerce_currencies', 'add_INR_currency' );
    function add_INR_currency( $currencies ) {
    $currencies['INR'] = __( 'Indian Rupees', 'woocommerce' );
    return $currencies;
    }
    add_filter('woocommerce_currency_symbol', 'add_INR_currency_symbol', 10, 2);
    function add_INR_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case 'INR': $currency_symbol = '₹'; break;
    }
    return $currency_symbol;
    }
    // allow INR for WooCommerce
    add_filter( 'woocommerce_paypal_supported_currencies', 'paypal_INR_current' );
    function paypal_INR_current($currency_array) {
    $currency_array[] = 'INR';
    return $currency_array;
    }

  • yavar

    thank you so much

  • mANi

    I am using

    WooCommerce Version: 2.2.8 and WordPress Version:4.0 do you have any solution for it?

  • Deepak

    Hi,

    Thanks a lot for the help. Now paypal is enabled in my woocommerce plugin. I ve registered and got my app_id. I've pasted your updated code in theme function.php. But after placing order, the value is still showing in dollars not in rupees in pay pal. Pls help.

  • Deepak

    Hi Rishi,
    Thank you very much for the script. Its finally working. All I need to to was combine the script 7 & 8. Once again thanks a lot.:)

  • AKS

    Hi There,

    I followed you article and applied all the changes as suggested but as soon as I apply codes from Step 7 & 8 on function.php, I get white screen of death on WP. My versions are WP 4.0.1 & WC 2.2.8. Are these codes incompatible with new versions.

  • Hello Risihi,

    Thats awesome, thank you.
    I just have a question, when I apply the coupon, it wont be calculated when I proceed to checkout, can you tell me why please ?

    • Stefan Jelev

      I was wondering exactly the same. Ideas, anyone?

  • Found it 🙂 thanks

    Just we add

    if ( $paypal_args['discount_amount_cart'] > 0 ) {

    $paypal_args['discount_amount_cart'] = round( $paypal_args['discount_amount_cart'] / $convert_rate, 2);

    }
    after the while loop. Appreciated

  • Ashu Sharma

    Hello Rishi,

    it's work fine
    its convert INR to USD bt show in USD in end

    its change 130rs. total into 2.08USD and shows USD in final from the current rate

    solved this issue and shows INR in final payment

    @rishimehta:disqus

  • Hi Rishi. Are you familiar with Shopify? We shifted from wordpress to shopify and now facing the same issue. It would be great if you could help.

  • subimal bandyopadhyay

    Thanks a million Rishi for this beautiful help. Now I can use paypal & payumoney both for INR.

  • Nitin

    Hi Rishi,
    I have wordpress elearning website in india and cater to clients in US & UK. I am using woo commerce plugin for checkout & currency converter (geoip) plugins for US & UK customers checkout price in their currency.
    How can US customer check out in USD via paypal. please advise. Thanks Nitin

  • That is ok ..but how do i configure paypal..its asking zipcode and state during configuration for merchant account

  • jmelwani

    great job, I just implemented it on http://sattvicfoods.in

    I've tested it out and no issues so far. Lets hope to validate against some customers.

  • soumen pandit

    thanks for suite coding documentaion for help

  • Hey Rishi

    please could you send paypal payment coding send me,pls lot.

  • rajesh jangid

    hi rishi mehta how to include new file with hook name in function.php file in wordpress

  • hi I am facing issue at the time of two Non Support paypal Currency Convert to USD

    i m using Currency Switcher as per Geolocation.
    i have use code on function.php as per you said.and i am able to change MUR to USD.
    Now i am using same code for FJD to USD Conversion. Its not working.

    Then what is Resolution?

  • Amir Hasan
  • Hi,
    This works well! Thanks for solution.
    One issue I am facing is tax.. My shop has tax on items. That tax is sent to paypal as well, and it is not being converted to dollars while sending..
    Can you please help?

  • Kumar

    Hi There,
    I think Step 4 is not mandatory as INR symbol is already in woocommerce . Now, When i add INR in class Paypal.php (line 77 , step 7, , My woocommerce site break with HTTP ERROR 500 . pl advice . thanks