@pelcro/react-pelcro-js 3.10.1-beta.16 → 3.10.1-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +17 -30
- package/dist/index.esm.js +17 -30
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15417,7 +15417,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15417
15417
|
const isRenewingGift = (_props$isRenewingGift = props.isRenewingGift) !== null && _props$isRenewingGift !== void 0 ? _props$isRenewingGift : pelcroStore.isRenewingGift;
|
|
15418
15418
|
const invoice = (_props$invoice = props.invoice) !== null && _props$invoice !== void 0 ? _props$invoice : pelcroStore.invoice;
|
|
15419
15419
|
const cardProcessor = getSiteCardProcessor();
|
|
15420
|
-
const [isTapLoaded, setIsTapLoaded] = React.useState(
|
|
15420
|
+
const [isTapLoaded, setIsTapLoaded] = React.useState(false);
|
|
15421
15421
|
React.useEffect(() => {
|
|
15422
15422
|
whenUserReady(() => {
|
|
15423
15423
|
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
@@ -15977,29 +15977,15 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15977
15977
|
tapInstanceCard.current = card;
|
|
15978
15978
|
} else if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
15979
15979
|
console.log("window.Tapjsli script is NOT loaded");
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
// "https://secure.gosell.io/js/sdk/tap.min.js",
|
|
15990
|
-
// "tap-sdk"
|
|
15991
|
-
// );
|
|
15992
|
-
// setIsTapLoaded(true);
|
|
15993
|
-
// });
|
|
15994
|
-
// window.Pelcro.helpers.loadSDK(
|
|
15995
|
-
// "https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js",
|
|
15996
|
-
// "tap-bluebird"
|
|
15997
|
-
// );
|
|
15998
|
-
// window.Pelcro.helpers.loadSDK(
|
|
15999
|
-
// "https://secure.gosell.io/js/sdk/tap.min.js",
|
|
16000
|
-
// "tap-sdk"
|
|
16001
|
-
// );
|
|
16002
|
-
// setIsTapLoaded(true);
|
|
15980
|
+
whenUserReady(() => {
|
|
15981
|
+
console.log("Site is ready and trying to load window.Tapjsli script");
|
|
15982
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
15983
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
15984
|
+
setIsTapLoaded(true);
|
|
15985
|
+
});
|
|
15986
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
15987
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
15988
|
+
setIsTapLoaded(true);
|
|
16003
15989
|
}
|
|
16004
15990
|
}, [selectedPaymentMethodId, isTapLoaded]);
|
|
16005
15991
|
|
|
@@ -17136,13 +17122,14 @@ const PaymentMethodContainer = props => {
|
|
|
17136
17122
|
setIsStripeLoaded(true);
|
|
17137
17123
|
});
|
|
17138
17124
|
}
|
|
17139
|
-
|
|
17140
|
-
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17141
|
-
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17142
|
-
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17143
|
-
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17144
|
-
}
|
|
17145
17125
|
});
|
|
17126
|
+
|
|
17127
|
+
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17128
|
+
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17129
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17130
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17131
|
+
console.log("After loading the Tap JS script from within PaymentMethodContainer");
|
|
17132
|
+
}
|
|
17146
17133
|
}, []);
|
|
17147
17134
|
|
|
17148
17135
|
if (isStripeLoaded) {
|
package/dist/index.esm.js
CHANGED
|
@@ -15387,7 +15387,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15387
15387
|
const isRenewingGift = (_props$isRenewingGift = props.isRenewingGift) !== null && _props$isRenewingGift !== void 0 ? _props$isRenewingGift : pelcroStore.isRenewingGift;
|
|
15388
15388
|
const invoice = (_props$invoice = props.invoice) !== null && _props$invoice !== void 0 ? _props$invoice : pelcroStore.invoice;
|
|
15389
15389
|
const cardProcessor = getSiteCardProcessor();
|
|
15390
|
-
const [isTapLoaded, setIsTapLoaded] = useState(
|
|
15390
|
+
const [isTapLoaded, setIsTapLoaded] = useState(false);
|
|
15391
15391
|
useEffect(() => {
|
|
15392
15392
|
whenUserReady(() => {
|
|
15393
15393
|
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
@@ -15947,29 +15947,15 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15947
15947
|
tapInstanceCard.current = card;
|
|
15948
15948
|
} else if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
15949
15949
|
console.log("window.Tapjsli script is NOT loaded");
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
// "https://secure.gosell.io/js/sdk/tap.min.js",
|
|
15960
|
-
// "tap-sdk"
|
|
15961
|
-
// );
|
|
15962
|
-
// setIsTapLoaded(true);
|
|
15963
|
-
// });
|
|
15964
|
-
// window.Pelcro.helpers.loadSDK(
|
|
15965
|
-
// "https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js",
|
|
15966
|
-
// "tap-bluebird"
|
|
15967
|
-
// );
|
|
15968
|
-
// window.Pelcro.helpers.loadSDK(
|
|
15969
|
-
// "https://secure.gosell.io/js/sdk/tap.min.js",
|
|
15970
|
-
// "tap-sdk"
|
|
15971
|
-
// );
|
|
15972
|
-
// setIsTapLoaded(true);
|
|
15950
|
+
whenUserReady(() => {
|
|
15951
|
+
console.log("Site is ready and trying to load window.Tapjsli script");
|
|
15952
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
15953
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
15954
|
+
setIsTapLoaded(true);
|
|
15955
|
+
});
|
|
15956
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
15957
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
15958
|
+
setIsTapLoaded(true);
|
|
15973
15959
|
}
|
|
15974
15960
|
}, [selectedPaymentMethodId, isTapLoaded]);
|
|
15975
15961
|
|
|
@@ -17106,13 +17092,14 @@ const PaymentMethodContainer = props => {
|
|
|
17106
17092
|
setIsStripeLoaded(true);
|
|
17107
17093
|
});
|
|
17108
17094
|
}
|
|
17109
|
-
|
|
17110
|
-
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17111
|
-
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17112
|
-
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17113
|
-
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17114
|
-
}
|
|
17115
17095
|
});
|
|
17096
|
+
|
|
17097
|
+
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17098
|
+
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17099
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17100
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17101
|
+
console.log("After loading the Tap JS script from within PaymentMethodContainer");
|
|
17102
|
+
}
|
|
17116
17103
|
}, []);
|
|
17117
17104
|
|
|
17118
17105
|
if (isStripeLoaded) {
|