• Resolved creativewebdesigns03

    (@creativewebdesigns03)


    Just about a week ago, your plugin stopped working. We accept both CAD and USD. The prices are the same, just different currencies.
    If the default currency is set to CAD, Paypal indicates an error when using a US address and vice versa.

    This is the error:

    Error: Expected currency from order api call to be USD, got CAD. Please ensure you are passing currency=CAD to the sdk url.?https://developer.paypal.com/docs/checkout/reference/customize-sdk/?

    If we set the site to CAD and try to check out in USD, we got the reverse.

    Expected currency from order api call to be CAD, got USD.

    So that suggests that the Woo setting is being respected, and telling Paypal what to accept.? However, it’s not being updated?by the Countries plugin.

    The Paypal docs suggest that the user currency must be sent in the network request.  With a Canadian address set, mine looks like this:https://www.paypal.com/sdk/js?client-id=AbUOxmOs4hwM3AUv261Fko_byWI9rWcTMthalUlu1DxXkfQ3oxYn0kHanvN22agh_9ITN40gwN8sA0lG&currency=CAD&integration-date=2024-09-16&components=buttons%2Cfunding-eligibility%2Cbuttons&vault=false&commit=true&intent=capture&enable-funding=venmo%2Cpaylater

    Which does include?currency=CAD.? That’s what Paypal seems to be looking at.?

    If I instead try checking out in USD, that query string changes to currency=USD.  So it’s affected by the address set in the form, and not your geoIP.

    The Country plugin hasn’t received any updates since July, so it’s not caused by a recent update.? ?The plugin?WooCommerce PayPal Payments was updated 6 days ago,?and ? Woo itself also updated 6 days ago,?so it aligns with when things stopped working.

    Any ideas?

    This is the screenshot of the error that we get when trying to proceed to payment at paypal:
    Something went wrong. Please try again or choose another payment source.

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

    (@oscargare)

    Hi @creativewebdesigns03

    It’s a bug introduced in WooCommerce PayPal Payments 2.9.1. This bug also affects other multicurrency plugins.
    I released a new version of Price Based on Country with the fix one hour ago, but due to an internal problem with the plugin directory, this version is not available yet.

    Until “Price Based on Country 3.4.10” is listed in the plugin directory, you can use the previous version of WooCommerce PayPal Payments, version 2.8.3, which works without issues.

    Thread Starter creativewebdesigns03

    (@creativewebdesigns03)

    I see you just released the update.

    All works as expected now.

    Thank you for the quick response!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.