diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index f686cb636..eed68e66b 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -704,6 +704,7 @@ class SmartButton implements SmartButtonInterface { if ( defined( 'WP_DEBUG' ) && \WP_DEBUG && is_user_logged_in() && WC()->customer && WC()->customer->get_billing_country() + && 2 === strlen( WC()->customer->get_billing_country() ) ) { $params['buyer-country'] = WC()->customer->get_billing_country(); }