mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Revert to not add data-user-id-token
if data-sdk-client-token
exist for now
This commit is contained in:
parent
e1271c4087
commit
2829e3a8a5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue