mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add logic of apple to session, validation and shipping
This commit is contained in:
parent
63ab1e383d
commit
7394c809b7
4 changed files with 306 additions and 123 deletions
|
@ -33,25 +33,23 @@ import ApplepayManager from "./ApplepayManager";
|
|||
let paypalLoaded = false;
|
||||
let applePayLoaded = false;
|
||||
|
||||
/* const tryToBoot = () => {
|
||||
const tryToBoot = () => {
|
||||
if (!bootstrapped && paypalLoaded && applePayLoaded) {
|
||||
console.log('Trying to bootstrap')
|
||||
bootstrapped = true;
|
||||
bootstrap();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
// Load ApplePay SDK
|
||||
/*loadCustomScript({ url: buttonConfig.sdk_url }).then(() => {
|
||||
console.log('ApplePay SDK loaded', buttonConfig.sdk_url)
|
||||
loadCustomScript({ url: buttonConfig.sdk_url }).then(() => {
|
||||
applePayLoaded = true;
|
||||
//tryToBoot();
|
||||
});*/
|
||||
tryToBoot();
|
||||
});
|
||||
|
||||
// Load PayPal
|
||||
loadPaypalScript(ppcpConfig, () => {
|
||||
paypalLoaded = true;
|
||||
//tryToBoot();
|
||||
tryToBoot();
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue