Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Different currency codes for different customers based on location

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Different currency codes for different customers based on location

Tagged: PayPal India

  • This topic has 15 replies, 3 voices, and was last updated 6 years, 3 months ago by wzp.
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • Author
    Posts
  • February 1, 2019 at 10:09 am #15297
    maheshkurmi
    Spectator

    I have created buy now button at simphy.com/pricing.

    I can successfully complete transaction from Indian paypal account if I set currency of product as INR but transaction fails if currency is set as USD with follwing message

    We aren't able to process your payment using your PayPal account at this time. Please go back to the merchant and try using a different payment method.

    After digging a lot I came to conclusion that currency should be INR for indian users and USD(?) for other countries.Is there any solution for this?

    the following document will make you more clear

    https://www.paypalobjects.com/digitalassets/c/website/marketing/apac/IN/enable-inr-for-merchants/enabling-inr-payments-direct-website-ec.pdf.

    Kindly help, because I have to deal meanly with customers outside india.

    February 1, 2019 at 11:43 pm #79139
    admin
    Keymaster

    This is a restriction from PayPal. You will need to contact PayPal’s support for this.

    February 4, 2019 at 1:55 am #79140
    maheshkurmi
    Spectator

    If we set currancy in INR in Wpestore all transaction within india are done successfully and if we set currency as USD transactions from other countries are done successfully. So setting difference currency based on user’s location/ip in wpestore should do the trick. Isn’t there some curency converter kindof addon in wpestore, where buyer can select his/her currency in usd or INR (or it is done automatically).

    I have already sent you link for possible solution as suggested by paypal.

    thanks

    February 4, 2019 at 3:55 am #79141
    wzp
    Moderator

    So setting difference currency based on user’s location/ip in wpestore should do the trick.

    That’s very unreliable. What about the Chinese user who uses TOR? Ditto for VPN users.

    February 4, 2019 at 11:27 am #79142
    maheshkurmi
    Spectator

    Is there any paypal setting related to it? What do we do to receive home and abroad payments simultaneously? Or it is done by paypal itself.

    BTW I already have business account, and I am waiting for reply from them for the same query.

    February 4, 2019 at 8:48 pm #79143
    wzp
    Moderator

    Is this question related to your earlier issues, using PayPal India?

    https://support.tipsandtricks-hq.com/forums/topic/troublw-wit-integration-with-paypal

    As stated in the external article I referred you to, the RBI has imposed very strict regulations, concerning currency movement and conversions.

    PayPal India may, or may not be, substantially “different” from regular PayPal. The customer support at PayPal India is better equipped to answer your questions, regarding PayPal settings.

    February 8, 2019 at 10:57 am #79144
    maheshkurmi
    Spectator

    This is reply I got from paypal support

    Quote:

    Thank you for contacting PayPal Merchant Technical Support. I’m happy to help!

    Yes you are right! In order to receive payments from Indian buyers, it should be in INR, but you can receive USD payments from other countries.

    I would suggest you to use the currency switcher and switch currency based on the locale. That is INR for Indian buyers and USD for rest of the countries.

    Please note that Indian domestic payment must be exclusively made in INR currency. INR currency can only be process by Indian domestic payment only. International customer who tried to make payment to an Indian merchant need to process the payment in currency other than INR (example USD).

    I hope I was able to address your inquiry to your satisfaction.If there’s anything else I can do for you, don’t hesitate to let me know.

    Sincerely,

    Aswini

    Merchant Technical Support

    PayPal

    Now my concern is ..

    how to create currency switcher?

    February 8, 2019 at 11:21 am #79145
    maheshkurmi
    Spectator

    One more thing

    I came to know from community that we can use any currency switcher on wordpress site. please let me know which plugin is compatible with WPestrore because all seem to be compatible with WooCommerce.

    thanks

    February 10, 2019 at 3:16 am #79146
    maheshkurmi
    Spectator

    Please reply..

    February 10, 2019 at 8:56 am #79147
    admin
    Keymaster

    We only have the following addong that allows a customer to select currency:

    https://www.tipsandtricks-hq.com/ecommerce/wp-estore-multi-currency-addon-2030

    February 11, 2019 at 6:15 am #79148
    maheshkurmi
    Spectator

    I got it working after messing up for plugin source fo 2 days !

    1. Used GeoIP locator plugin to locate country
    2. if country is India I added two filters eStore_change_curr_code_before_payment_filter and

      eStore_change_price_before_payment_filter in my themes function.php

    3. updated plugin file eStore-extra-shortcodes/shortcode_include2.php for missing filters by adding

      `<br />

      $price = apply_filters(‘eStore_change_price_before_payment_filter’, $price);<br />

      $paypal_currency = apply_filters(‘eStore_change_curr_code_before_payment_filter’, $paypal_currency);<br />

      `

      at proper places in function wp_eStore_handle_buy_now_text_link_redirect

    4. Added conditional price display on pricing page
    5. Now everything works fine

    Obviously on plugin update I will lose changes but hoping that you will include these filters which I think you missed(on offence)?

    Is there something else that I need to take in account ?

    Thanks for your support

    February 11, 2019 at 3:58 pm #79149
    wzp
    Moderator

    Is there something else that I need to take in account ?

    What happens if I am in the US and I use a VPN or TOR exit point, in India, since the IP address will look like I’m in India?

    February 11, 2019 at 7:47 pm #79150
    maheshkurmi
    Spectator

    Even paypal representative couldnt solve this problem. Am I the only one facing this problem?

    Is home currency and general abroad currency(usd) are to be set by all paypal users?

    By the way what do you do for this(if u dont mind !)?

    Can multicurrency add on plugin solve this issue?

    Thanks

    February 11, 2019 at 8:08 pm #79151
    wzp
    Moderator

    We use “regular PayPal,” which does not have the same restrictions as PayPal India.

    February 14, 2019 at 4:16 am #79152
    maheshkurmi
    Spectator

    Using currency change on checkout with filters I am able to get payments form India and outside India, but there is a new issue on pluginside.

    I am getting payment received and payment sent successfully at seller and buyer mail, showing transactions completed.

    But software license manager can’t create license because WPestore treats it as a failed transaction giving this message on my seller mail

    ===== Exact Reason for This Failure =====

    The transaction failed for the following reason…

    Invalid Product Currency Detected! The payment was made in currency: INR


    DEBUUG LOG


    [02/14/2019 4:03 AM] – SUCCESS :Paypal Class Initiated by 173.0.81.1 eStore Version: 8.0.7

    [02/14/2019 4:03 AM] – SUCCESS :Post string [removed]

    [02/14/2019 4:03 AM] – SUCCESS :Checking if PayPal IPN response is valid

    [02/14/2019 4:03 AM] – SUCCESS :Connecting to: https://www.paypal.com/cgi-bin/webscr

    [02/14/2019 4:03 AM] – SUCCESS :IPN successfully verified.

    [02/14/2019 4:03 AM] – SUCCESS :Creating product Information to send.

    [02/14/2019 4:03 AM] – SUCCESS :Transaction Type (Buy Now/Subscribe): web_accept

    [02/14/2019 4:03 AM] – SUCCESS :Item Number: 7

    [02/14/2019 4:03 AM] – SUCCESS :Item Name: Simphy-Test-2

    [02/14/2019 4:03 AM] – SUCCESS :Item Quantity: 1

    [02/14/2019 4:03 AM] – SUCCESS :Item Price: 14.00

    [02/14/2019 4:03 AM] – SUCCESS :Item Shipping:

    [02/14/2019 4:03 AM] – SUCCESS :Item Currency: INR

    [02/14/2019 4:03 AM] – SUCCESS :Price paid: 14.00, True price: 0.2

    [02/14/2019 4:03 AM] – FAILURE :Invalid Product Currency Detected! The payment was made in currency: INR

    [02/14/2019 4:03 AM] – FAILURE :You specified to receive payment in: USD for this product. Check eStore settings or this product’s Buy Now/Subscription section and correct the currency code to fix this issue.

    [02/14/2019 4:03 AM] – FAILURE :IPN product validation failed.

    [02/14/2019 4:03 AM] – SUCCESS :Paypal class finished.


    Reason seems that the default currency in Wpestore is USD, while I changed currency to INR via filter based on location.

    Any solution?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ