woocommerce-gateway-paypal-express-checkout
woocommerce-gateway-paypal-express-checkout copied to clipboard
Country not being used to initialize PayPal form
The country from WooCommerce's Checkout screen is being passed to PayPal, but unlike the other form fields, is not used to initialize a default value for the country selector on PayPal's side. (Tested by paying with a credit card, which needs to be removed from funding methods to hide, in settings).
Originally reported and discussed in https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/474.
This may be a higher priority issue now that PayPal has recently updated their checkout library to show an inline credit card form, but it doesn't include a country selector – so at the very least, the phone number input assumes a country code that may be incorrect.
This doc has some information on how it might determine the checkout locale, but the only way to influence the default country (in my testing) has been to set a different locale (i.e. WP site language). Passing no locale still doesn't make it default to the country that was passed. I haven't attempted to spoof my own location to check it's influence on the default country.