mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Set data-client-token
regardless of user being logged-in
This commit is contained in:
parent
e2cf37297a
commit
ad921ef172
1 changed files with 0 additions and 5 deletions
|
@ -25,11 +25,6 @@ const storeToken = (token) => {
|
|||
}
|
||||
|
||||
const dataClientIdAttributeHandler = (script, config) => {
|
||||
if(config.user === 0) {
|
||||
document.body.append(script);
|
||||
return;
|
||||
}
|
||||
|
||||
fetch(config.endpoint, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue