mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Prevent Do not pass SDK token and ID token error by not adding data-user-id-token
when using data-sdk-client-token
This commit is contained in:
parent
49b50962d1
commit
c13b9b2621
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export const loadPaypalScript = (config, onLoaded, onError = null) => {
|
|||
|
||||
// Adds data-user-id-token to script options.
|
||||
const userIdToken = config?.save_payment_methods?.id_token;
|
||||
if(userIdToken) {
|
||||
if(userIdToken && !sdkClientToken) {
|
||||
scriptOptions['data-user-id-token'] = userIdToken;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue