@pelcro/react-pelcro-js 3.10.1-beta.7 → 3.10.1-beta.9
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 -15
- package/dist/index.esm.js +12 -15
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10117,18 +10117,15 @@ 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
|
+
} // Load Tap SDKs
|
|
10121
10121
|
|
|
10122
10122
|
|
|
10123
|
-
|
|
10124
|
-
// Load Tap SDKs
|
|
10125
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10123
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10126
10124
|
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
});
|
|
10125
|
+
if (supportsTap) {
|
|
10126
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10127
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
10128
|
+
}
|
|
10132
10129
|
};
|
|
10133
10130
|
const loadAuth0SDK = () => {
|
|
10134
10131
|
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
@@ -15870,9 +15867,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15870
15867
|
const vantivInstanceRef = React__default['default'].useRef(null);
|
|
15871
15868
|
const tapInstanceRef = React__default['default'].useRef(null);
|
|
15872
15869
|
const tapInstanceCard = React__default['default'].useRef(null);
|
|
15870
|
+
const cardProcessor = getSiteCardProcessor();
|
|
15873
15871
|
React.useEffect(() => {
|
|
15874
|
-
const cardProcessor = getSiteCardProcessor();
|
|
15875
|
-
|
|
15876
15872
|
if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
|
|
15877
15873
|
var _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
15878
15874
|
|
|
@@ -15899,11 +15895,12 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15899
15895
|
}
|
|
15900
15896
|
});
|
|
15901
15897
|
}
|
|
15902
|
-
|
|
15903
|
-
|
|
15898
|
+
}, [selectedPaymentMethodId]);
|
|
15899
|
+
React.useEffect(() => {
|
|
15900
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
|
|
15904
15901
|
var _window$Pelcro$site$r3;
|
|
15905
15902
|
|
|
15906
|
-
console.log("Tap JSLI
|
|
15903
|
+
console.log("Yes Tap JSLI is enabled and activated");
|
|
15907
15904
|
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);
|
|
15908
15905
|
let elements = tapKey.elements({});
|
|
15909
15906
|
let style = {
|
|
@@ -15966,7 +15963,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15966
15963
|
tapInstanceRef.current = tapKey;
|
|
15967
15964
|
tapInstanceCard.current = card;
|
|
15968
15965
|
}
|
|
15969
|
-
}, [selectedPaymentMethodId]);
|
|
15966
|
+
}, [selectedPaymentMethodId, window.Tapjsli]);
|
|
15970
15967
|
|
|
15971
15968
|
const initPaymentRequest = (state, dispatch) => {
|
|
15972
15969
|
try {
|
package/dist/index.esm.js
CHANGED
|
@@ -10087,18 +10087,15 @@ 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
|
+
} // Load Tap SDKs
|
|
10091
10091
|
|
|
10092
10092
|
|
|
10093
|
-
|
|
10094
|
-
// Load Tap SDKs
|
|
10095
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10093
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10096
10094
|
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
});
|
|
10095
|
+
if (supportsTap) {
|
|
10096
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10097
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
10098
|
+
}
|
|
10102
10099
|
};
|
|
10103
10100
|
const loadAuth0SDK = () => {
|
|
10104
10101
|
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
@@ -15840,9 +15837,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15840
15837
|
const vantivInstanceRef = React__default.useRef(null);
|
|
15841
15838
|
const tapInstanceRef = React__default.useRef(null);
|
|
15842
15839
|
const tapInstanceCard = React__default.useRef(null);
|
|
15840
|
+
const cardProcessor = getSiteCardProcessor();
|
|
15843
15841
|
useEffect(() => {
|
|
15844
|
-
const cardProcessor = getSiteCardProcessor();
|
|
15845
|
-
|
|
15846
15842
|
if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
|
|
15847
15843
|
var _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
15848
15844
|
|
|
@@ -15869,11 +15865,12 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15869
15865
|
}
|
|
15870
15866
|
});
|
|
15871
15867
|
}
|
|
15872
|
-
|
|
15873
|
-
|
|
15868
|
+
}, [selectedPaymentMethodId]);
|
|
15869
|
+
useEffect(() => {
|
|
15870
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
|
|
15874
15871
|
var _window$Pelcro$site$r3;
|
|
15875
15872
|
|
|
15876
|
-
console.log("Tap JSLI
|
|
15873
|
+
console.log("Yes Tap JSLI is enabled and activated");
|
|
15877
15874
|
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);
|
|
15878
15875
|
let elements = tapKey.elements({});
|
|
15879
15876
|
let style = {
|
|
@@ -15936,7 +15933,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15936
15933
|
tapInstanceRef.current = tapKey;
|
|
15937
15934
|
tapInstanceCard.current = card;
|
|
15938
15935
|
}
|
|
15939
|
-
}, [selectedPaymentMethodId]);
|
|
15936
|
+
}, [selectedPaymentMethodId, window.Tapjsli]);
|
|
15940
15937
|
|
|
15941
15938
|
const initPaymentRequest = (state, dispatch) => {
|
|
15942
15939
|
try {
|