@pelcro/react-pelcro-js 3.10.1-beta.4 → 3.10.1-beta.6
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 +12 -8
- package/dist/index.esm.js +12 -8
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10117,15 +10117,18 @@ const loadPaymentSDKs = () => {
|
|
|
10117
10117
|
const scriptUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? PRODUCTION_URL : PRELIVE_URL;
|
|
10118
10118
|
window.Pelcro.helpers.loadSDK(scriptUrlToUse, "vantiv-eprotect-sdk");
|
|
10119
10119
|
}
|
|
10120
|
-
} //
|
|
10120
|
+
} //Lazy load Tap SDK
|
|
10121
10121
|
|
|
10122
10122
|
|
|
10123
|
-
|
|
10123
|
+
whenUserReady(() => {
|
|
10124
|
+
// Load Tap SDKs
|
|
10125
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10124
10126
|
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10127
|
+
if (supportsTap) {
|
|
10128
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10129
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
10130
|
+
}
|
|
10131
|
+
});
|
|
10129
10132
|
};
|
|
10130
10133
|
const loadAuth0SDK = () => {
|
|
10131
10134
|
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
@@ -15897,9 +15900,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15897
15900
|
});
|
|
15898
15901
|
}
|
|
15899
15902
|
|
|
15900
|
-
if (cardProcessor === "tap" && !selectedPaymentMethodId) {
|
|
15903
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && Tapjsli) {
|
|
15901
15904
|
var _window$Pelcro$site$r3;
|
|
15902
15905
|
|
|
15906
|
+
console.log("Tap JSLI", Tapjsli);
|
|
15903
15907
|
const tapKey = Tapjsli((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.tap_gateway_settings.publishable_key);
|
|
15904
15908
|
let elements = tapKey.elements({});
|
|
15905
15909
|
let style = {
|
|
@@ -15962,7 +15966,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15962
15966
|
tapInstanceRef.current = tapKey;
|
|
15963
15967
|
tapInstanceCard.current = card;
|
|
15964
15968
|
}
|
|
15965
|
-
}, [selectedPaymentMethodId]);
|
|
15969
|
+
}, [selectedPaymentMethodId, Tapjsli]);
|
|
15966
15970
|
|
|
15967
15971
|
const initPaymentRequest = (state, dispatch) => {
|
|
15968
15972
|
try {
|
package/dist/index.esm.js
CHANGED
|
@@ -10087,15 +10087,18 @@ const loadPaymentSDKs = () => {
|
|
|
10087
10087
|
const scriptUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? PRODUCTION_URL : PRELIVE_URL;
|
|
10088
10088
|
window.Pelcro.helpers.loadSDK(scriptUrlToUse, "vantiv-eprotect-sdk");
|
|
10089
10089
|
}
|
|
10090
|
-
} //
|
|
10090
|
+
} //Lazy load Tap SDK
|
|
10091
10091
|
|
|
10092
10092
|
|
|
10093
|
-
|
|
10093
|
+
whenUserReady(() => {
|
|
10094
|
+
// Load Tap SDKs
|
|
10095
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10094
10096
|
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10097
|
+
if (supportsTap) {
|
|
10098
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10099
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
10100
|
+
}
|
|
10101
|
+
});
|
|
10099
10102
|
};
|
|
10100
10103
|
const loadAuth0SDK = () => {
|
|
10101
10104
|
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
@@ -15867,9 +15870,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15867
15870
|
});
|
|
15868
15871
|
}
|
|
15869
15872
|
|
|
15870
|
-
if (cardProcessor === "tap" && !selectedPaymentMethodId) {
|
|
15873
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && Tapjsli) {
|
|
15871
15874
|
var _window$Pelcro$site$r3;
|
|
15872
15875
|
|
|
15876
|
+
console.log("Tap JSLI", Tapjsli);
|
|
15873
15877
|
const tapKey = Tapjsli((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.tap_gateway_settings.publishable_key);
|
|
15874
15878
|
let elements = tapKey.elements({});
|
|
15875
15879
|
let style = {
|
|
@@ -15932,7 +15936,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15932
15936
|
tapInstanceRef.current = tapKey;
|
|
15933
15937
|
tapInstanceCard.current = card;
|
|
15934
15938
|
}
|
|
15935
|
-
}, [selectedPaymentMethodId]);
|
|
15939
|
+
}, [selectedPaymentMethodId, Tapjsli]);
|
|
15936
15940
|
|
|
15937
15941
|
const initPaymentRequest = (state, dispatch) => {
|
|
15938
15942
|
try {
|