currency not switching to paypal
-
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.
- You must be logged in to reply to this topic.