mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
[bugfix] switch intent to capture
This commit is contained in:
parent
011a4d2d45
commit
d1c4d470d9
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class SmartButton implements SmartButtonInterface
|
|||
//ToDo: Probably only needed, when DCC
|
||||
'vault' => $this->dccIsEnabled() ? 'false' : 'false',
|
||||
'commit' => is_checkout() ? 'true' : 'false',
|
||||
'intent' => ($this->settings->has('intent')) ? $this->settings->get('intent') : 'commit',
|
||||
'intent' => ($this->settings->has('intent')) ? $this->settings->get('intent') : 'capture',
|
||||
];
|
||||
if (defined('WP_DEBUG') && \WP_DEBUG && WC()->customer) {
|
||||
$params['buyer-country'] = WC()->customer->get_billing_country();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue