Revert to not add data-user-id-token if data-sdk-client-token exist for now

This commit is contained in:
Emili Castells Guasch 2024-04-29 17:31:10 +02:00
parent e1271c4087
commit 2829e3a8a5

View file

@ -76,7 +76,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 && getCurrentPaymentMethod() !== 'ppcp-axo-gateway') {
if(userIdToken && !sdkClientToken) {
scriptOptions['data-user-id-token'] = userIdToken;
}