mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix onboarding callback
Looks like the global function were not available for the PayPal SDK since #844
This commit is contained in:
parent
e27efcd363
commit
c3b2472389
1 changed files with 7 additions and 6 deletions
|
@ -127,13 +127,14 @@ const ppcp_onboarding = {
|
|||
},
|
||||
};
|
||||
|
||||
function ppcp_onboarding_sandboxCallback(...args) {
|
||||
return ppcp_onboarding.loginSeller('sandbox', ...args);
|
||||
}
|
||||
|
||||
function ppcp_onboarding_productionCallback(...args) {
|
||||
return ppcp_onboarding.loginSeller('production', ...args);
|
||||
}
|
||||
window.ppcp_onboarding_sandboxCallback = function(...args) {
|
||||
return ppcp_onboarding.loginSeller('sandbox', ...args);
|
||||
};
|
||||
|
||||
window.ppcp_onboarding_productionCallback = function(...args) {
|
||||
return ppcp_onboarding.loginSeller('production', ...args);
|
||||
};
|
||||
|
||||
(() => {
|
||||
const productionCredentialElementsSelectors = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue