• 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wp.insider

    (@wpinsider-1)

    This addon reads the currency code setup from your WooCommerce settings.

    I think you need to override that value from a custom code right? I can add a filter there so you can override the currency code via your custom code maybe?

    Thread Starter hardik2web

    (@hardik2web)

    Hi,
    I would really appreciate if you can add a filter to override the currency code.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change currency code that is passed to Paypal’ is closed to new replies.