[bugfix] switch intent to capture

This commit is contained in:
David Remer 2020-06-29 12:16:06 +03:00
parent 011a4d2d45
commit d1c4d470d9

View file

@ -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();