@pelcro/react-pelcro-js 3.25.0-beta.2 → 3.25.0-beta.3

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
@@ -18039,7 +18039,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18039
18039
  console.log("State", state);
18040
18040
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18041
18041
  if (isUsingExistingPaymentMethod) {
18042
- appendCybersourceFingerprintScripts();
18043
18042
  // no need to create a new source using cybersrce
18044
18043
  return handleCybersourcePayment(null, state);
18045
18044
  }
@@ -18250,7 +18249,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18250
18249
  }
18251
18250
  });
18252
18251
  }
18253
- appendCybersourceFingerprintScripts();
18254
18252
  const {
18255
18253
  key: jwk
18256
18254
  } = res;
@@ -18794,6 +18792,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18794
18792
  if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18795
18793
  initCybersourceScript();
18796
18794
  }
18795
+ if (cardProcessor === "cybersource") {
18796
+ appendCybersourceFingerprintScripts();
18797
+ }
18797
18798
  });
18798
18799
  }, [selectedPaymentMethodId]);
18799
18800
  const initPaymentRequest = (state, dispatch) => {
package/dist/index.esm.js CHANGED
@@ -18009,7 +18009,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18009
18009
  console.log("State", state);
18010
18010
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18011
18011
  if (isUsingExistingPaymentMethod) {
18012
- appendCybersourceFingerprintScripts();
18013
18012
  // no need to create a new source using cybersrce
18014
18013
  return handleCybersourcePayment(null, state);
18015
18014
  }
@@ -18220,7 +18219,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18220
18219
  }
18221
18220
  });
18222
18221
  }
18223
- appendCybersourceFingerprintScripts();
18224
18222
  const {
18225
18223
  key: jwk
18226
18224
  } = res;
@@ -18764,6 +18762,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18764
18762
  if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18765
18763
  initCybersourceScript();
18766
18764
  }
18765
+ if (cardProcessor === "cybersource") {
18766
+ appendCybersourceFingerprintScripts();
18767
+ }
18767
18768
  });
18768
18769
  }, [selectedPaymentMethodId]);
18769
18770
  const initPaymentRequest = (state, dispatch) => {
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.25.0-beta.2",
4
+ "version": "3.25.0-beta.3",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",