@pelcro/react-pelcro-js 3.10.1-beta.17 → 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 +8 -7
- package/dist/index.esm.js +8 -7
- 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) {
|
|
@@ -17122,13 +17122,14 @@ const PaymentMethodContainer = props => {
|
|
|
17122
17122
|
setIsStripeLoaded(true);
|
|
17123
17123
|
});
|
|
17124
17124
|
}
|
|
17125
|
-
|
|
17126
|
-
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17127
|
-
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17128
|
-
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17129
|
-
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17130
|
-
}
|
|
17131
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
|
+
}
|
|
17132
17133
|
}, []);
|
|
17133
17134
|
|
|
17134
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) {
|
|
@@ -17092,13 +17092,14 @@ const PaymentMethodContainer = props => {
|
|
|
17092
17092
|
setIsStripeLoaded(true);
|
|
17093
17093
|
});
|
|
17094
17094
|
}
|
|
17095
|
-
|
|
17096
|
-
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
17097
|
-
console.log("Inside Payment Method Container and window.Tapjsli is not loaded");
|
|
17098
|
-
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
17099
|
-
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
17100
|
-
}
|
|
17101
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
|
+
}
|
|
17102
17103
|
}, []);
|
|
17103
17104
|
|
|
17104
17105
|
if (isStripeLoaded) {
|