Add intent type to the smart button URL param

This commit is contained in:
Mészáros Róbert 2020-04-13 11:24:33 +03:00
parent 07bda403e3
commit 717b7d1689

View file

@ -81,6 +81,7 @@ class SmartButton implements SmartButtonInterface
//ToDo: Probably only needed, when DCC
'vault' => 'true',
'commit' => is_checkout() ? 'true' : 'false',
'intent' => $this->settings->get('intent')
];
$smartButtonUrl = add_query_arg($params, 'https://www.paypal.com/sdk/js');