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 5 years, 9 months ago by wzp.
-
AuthorPosts
-
February 1, 2019 at 10:09 am #15297maheshkurmiSpectator
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
Kindly help, because I have to deal meanly with customers outside india.
February 1, 2019 at 11:43 pm #79139adminKeymasterThis is a restriction from PayPal. You will need to contact PayPal’s support for this.
February 4, 2019 at 1:55 am #79140maheshkurmiSpectatorIf 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 #79141wzpModeratorSo 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 #79142maheshkurmiSpectatorIs 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 #79143wzpModeratorIs 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 #79144maheshkurmiSpectatorThis 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 #79145maheshkurmiSpectatorOne 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 #79146maheshkurmiSpectatorPlease reply..
February 10, 2019 at 8:56 am #79147adminKeymasterWe 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 #79148maheshkurmiSpectatorI got it working after messing up for plugin source fo 2 days !
- Used GeoIP locator plugin to locate country
- if country is India I added two filters
eStore_change_curr_code_before_payment_filter
andeStore_change_price_before_payment_filter
in my themes function.php - 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
- Added conditional price display on pricing page
- 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 #79149wzpModeratorIs 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 #79150maheshkurmiSpectatorEven 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 #79151wzpModeratorWe use “regular PayPal,” which does not have the same restrictions as PayPal India.
February 14, 2019 at 4:16 am #79152maheshkurmiSpectatorUsing 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?
-
AuthorPosts
- You must be logged in to reply to this topic.