@pelcro/react-pelcro-js 3.10.1-beta.5 → 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 CHANGED
@@ -15900,9 +15900,10 @@ const PaymentMethodContainerWithoutStripe = ({
15900
15900
  });
15901
15901
  }
15902
15902
 
15903
- if (cardProcessor === "tap" && !selectedPaymentMethodId) {
15903
+ if (cardProcessor === "tap" && !selectedPaymentMethodId && Tapjsli) {
15904
15904
  var _window$Pelcro$site$r3;
15905
15905
 
15906
+ console.log("Tap JSLI", Tapjsli);
15906
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);
15907
15908
  let elements = tapKey.elements({});
15908
15909
  let style = {
@@ -15965,7 +15966,7 @@ const PaymentMethodContainerWithoutStripe = ({
15965
15966
  tapInstanceRef.current = tapKey;
15966
15967
  tapInstanceCard.current = card;
15967
15968
  }
15968
- }, [selectedPaymentMethodId]);
15969
+ }, [selectedPaymentMethodId, Tapjsli]);
15969
15970
 
15970
15971
  const initPaymentRequest = (state, dispatch) => {
15971
15972
  try {
package/dist/index.esm.js CHANGED
@@ -15870,9 +15870,10 @@ const PaymentMethodContainerWithoutStripe = ({
15870
15870
  });
15871
15871
  }
15872
15872
 
15873
- if (cardProcessor === "tap" && !selectedPaymentMethodId) {
15873
+ if (cardProcessor === "tap" && !selectedPaymentMethodId && Tapjsli) {
15874
15874
  var _window$Pelcro$site$r3;
15875
15875
 
15876
+ console.log("Tap JSLI", Tapjsli);
15876
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);
15877
15878
  let elements = tapKey.elements({});
15878
15879
  let style = {
@@ -15935,7 +15936,7 @@ const PaymentMethodContainerWithoutStripe = ({
15935
15936
  tapInstanceRef.current = tapKey;
15936
15937
  tapInstanceCard.current = card;
15937
15938
  }
15938
- }, [selectedPaymentMethodId]);
15939
+ }, [selectedPaymentMethodId, Tapjsli]);
15939
15940
 
15940
15941
  const initPaymentRequest = (state, dispatch) => {
15941
15942
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.10.1-beta.5",
4
+ "version": "3.10.1-beta.6",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",