How To Set PayPal Guest Checkout Country In WooCommerce

By default Express PayPal’s Guest Checkout (also known as pay by Debit/Credit Card) will defaults to whatever language you set in WordPress’ dashboard.

That can be frustrating for many as some may want to have one language for their site and accept payment from another region.

Below is an example for Finland, you can check out the list of locale codes here under WordPress Locale Code section.

add_filter('woocommerce_paypal_express_checkout_paypal_locale','set_default_language_paypal_express');

function set_default_language_paypal_express()
{
    return 'fi_FI';
}

Some language/country may list a single code instead of underscore. Simply do what above example does and PayPal’s Guest Checkout should change to your preferred region while keeping site’s language intact.

No Comment Yet

Leave a Reply

Your email address will not be published. Required fields are marked *