Hi @parale3000,
Thanks for opening a ticket.
> checkout it redirects on Paypal but the country selected on the menu is US where as we are in a different country
The default country field is based on your stores base country which is then mapped to one of PayPal’s supported locale codes. According to PayPal’s documentation the locale code for Cyprus is en_US, which means the default country will be set to the US.
Thankfully there is a work-around for this.
If you would like Cyprus to be the default location, you can filter the value of woocommerce_paypal_express_checkout_paypal_locale and return 'en_CY'. Here’s a snippet to get you started:
function parale_ppec_cyprus_default_country( $default_locale_code ) {
return 'en_CY';
}
add_filter( 'woocommerce_paypal_express_checkout_paypal_locale', 'parale_ppec_cyprus_default_country', 10, 1 );
> We need to achieve a guest checkout without having to create an account which works fine when the US selection is there but when you change the country from the dropdown to Cyprus you get an extra form asking you to create an account which is compulsory.
This restriction is coming from PayPal and we cannot change this from our plugin. From my understanding, in order for PayPal to support taking payments in some countries, they need the customer to create an account.
To get more information on this, I would suggest contacting PayPal.
Let me know if you have any further questions 🙂
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
– Joey