mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 18:00:15 +08:00
make sure buyer-country is populated, when used
This commit is contained in:
parent
60e7ff2b44
commit
f94a95eab0
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ class SmartButton implements SmartButtonInterface
|
||||||
'intent' => ($this->settings->has('intent')) ?
|
'intent' => ($this->settings->has('intent')) ?
|
||||||
$this->settings->get('intent') : 'capture',
|
$this->settings->get('intent') : 'capture',
|
||||||
];
|
];
|
||||||
if (defined('WP_DEBUG') && \WP_DEBUG && WC()->customer) {
|
if (defined('WP_DEBUG') && \WP_DEBUG && WC()->customer && WC()->customer->get_billing_country()) {
|
||||||
$params['buyer-country'] = WC()->customer->get_billing_country();
|
$params['buyer-country'] = WC()->customer->get_billing_country();
|
||||||
}
|
}
|
||||||
$payee = $this->payeeRepository->payee();
|
$payee = $this->payeeRepository->payee();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue