Support » Plugin: WooCommerce PayPal Checkout Payment Gateway » Please ensure you are passing currency to the sdk url

  • Resolved nikosmdtps

    (@nikosmdtps)


    Hello, i hope you are well.

    I have a problem with the combination of your plugin and Price Based on Country for WooCommerce plugin: When i change the country at the checkout page, sometime the currency changes as well (eg from USD to EUR). Then, i cannot use Paypal Checkout at all.

    I see this error at the console:

    Error: Expected currency from order api call to be USD, got EUR. Please ensure you are passing currency=EUR to the sdk url

    Please see the answer of Price Based on Country for Woocommerce plugin’s author: https://wordpress.org/support/topic/problem-with-paypal-checkout-gateway/#post-12897690

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mattdallan

    (@mattdallan)

    Hi @nikosmdtps

    Thanks for reporting this issue.

    Using the new PayPal Javascript JS requires us to send the stores currency as a script argument when loading the PayPal form. If the currency changes after the initial load of the checkout page, I can see PayPal throwing an error for that.

    Based on the ticket you’ve linked, it looks like this was fixed in v2.0.8 of Price Based on Country for WooCommerce.

    Thanks!

    Thread Starter nikosmdtps

    (@nikosmdtps)

    Hello mattdallan

    Thanks a lot for your response.
    Yes, i just checked and it is fixed in v2.0.8.
    Have a nice day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please ensure you are passing currency to the sdk url’ is closed to new replies.