@pelcro/react-pelcro-js 3.10.1-beta.12 → 3.10.1-beta.13
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 +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15910,10 +15910,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15910
15910
|
}
|
|
15911
15911
|
}, [selectedPaymentMethodId]);
|
|
15912
15912
|
React.useEffect(() => {
|
|
15913
|
-
if (cardProcessor === "tap" && !selectedPaymentMethodId &&
|
|
15913
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
|
|
15914
15914
|
var _window$Pelcro$site$r3;
|
|
15915
15915
|
|
|
15916
|
-
console.log("
|
|
15916
|
+
console.log(" window.Tapjsli script is loaded");
|
|
15917
15917
|
const tapKey = window.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);
|
|
15918
15918
|
let elements = tapKey.elements({});
|
|
15919
15919
|
let style = {
|
package/dist/index.esm.js
CHANGED
|
@@ -15880,10 +15880,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15880
15880
|
}
|
|
15881
15881
|
}, [selectedPaymentMethodId]);
|
|
15882
15882
|
useEffect(() => {
|
|
15883
|
-
if (cardProcessor === "tap" && !selectedPaymentMethodId &&
|
|
15883
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
|
|
15884
15884
|
var _window$Pelcro$site$r3;
|
|
15885
15885
|
|
|
15886
|
-
console.log("
|
|
15886
|
+
console.log(" window.Tapjsli script is loaded");
|
|
15887
15887
|
const tapKey = window.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);
|
|
15888
15888
|
let elements = tapKey.elements({});
|
|
15889
15889
|
let style = {
|