mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Add buyer-country for guests too
This commit is contained in:
parent
fde0aae9a0
commit
8a6437b558
1 changed files with 1 additions and 1 deletions
|
@ -1000,7 +1000,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
);
|
||||
if (
|
||||
$this->environment->current_environment_is( Environment::SANDBOX )
|
||||
&& defined( 'WP_DEBUG' ) && \WP_DEBUG && is_user_logged_in()
|
||||
&& defined( 'WP_DEBUG' ) && \WP_DEBUG
|
||||
&& WC()->customer instanceof \WC_Customer && WC()->customer->get_billing_country()
|
||||
&& 2 === strlen( WC()->customer->get_billing_country() )
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue