mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +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) => {
|
const dataClientIdAttributeHandler = (script, config) => {
|
||||||
if(config.user === 0) {
|
|
||||||
document.body.append(script);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch(config.endpoint, {
|
fetch(config.endpoint, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue