Change currency code that is passed to Paypal
-
Hi,
Excellent plugin. Thanks for making my life easier.I have a website with multiple currencies and it is setup in such a way that for people in Canada it shows the price in CAD and for the rest of the world it shows the price in USD. Now on the checkout page when a user outside canada is ordering, the price shows correctly but the currency code that is passed to PAYPAL is CAD instead of USD. I did some research on my end and found that in the “woo-paypal-pro-gateway-class.php” file there is a function defined “create_paypal_request” where it sets the currency code
‘CURRENCYCODE’ => get_option(‘woocommerce_currency’),I tried extending the class using functions file but it does not work, so I was just wondering if you can guide me to the right direction.
Also, I have another plugin added woocommerce product price based on countries which handles the logic for showing the prices as per user’s country.
I have update to the latest version of WordPress and your plugin.
Let me know if you need additional information.
Thanks,
Hardik.https://www.ads-software.com/plugins/woocommerce-paypal-pro-payment-gateway/
- The topic ‘Change currency code that is passed to Paypal’ is closed to new replies.