mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
make sure user is logged in when detecting the buyer-country in debug mode
This commit is contained in:
parent
9e2f1f4bf9
commit
3803ba935c
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
$this->settings->get( 'intent' ) : 'capture',
|
||||
);
|
||||
if (
|
||||
defined( 'WP_DEBUG' ) && \WP_DEBUG
|
||||
defined( 'WP_DEBUG' ) && \WP_DEBUG && is_user_logged_in()
|
||||
&& WC()->customer && WC()->customer->get_billing_country()
|
||||
) {
|
||||
$params['buyer-country'] = WC()->customer->get_billing_country();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue