@pelcro/react-pelcro-js 3.22.0-beta.25 → 3.22.0-beta.26

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
@@ -18161,17 +18161,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18161
18161
  if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
18162
18162
  initTapScript();
18163
18163
  }
18164
- if (cardProcessor === "cybersource") {
18165
- if (!window.FLEX) {
18166
- window.Pelcro.helpers.loadSDK("https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js", "cybersource-cdn");
18167
- document.querySelector('script[src="https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js"]').addEventListener("load", () => {
18168
- initCybersourceScript();
18169
- });
18170
- return;
18171
- }
18172
- if (!selectedPaymentMethodId) {
18164
+ if (cardProcessor === "cybersource" && !selectedPaymentMethodId && !window.FLEX) {
18165
+ window.Pelcro.helpers.loadSDK("https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js", "cybersource-cdn");
18166
+ document.querySelector('script[src="https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js"]').addEventListener("load", () => {
18173
18167
  initCybersourceScript();
18174
- }
18168
+ });
18169
+ }
18170
+ if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18171
+ initCybersourceScript();
18175
18172
  }
18176
18173
  });
18177
18174
  }, [selectedPaymentMethodId]);
package/dist/index.esm.js CHANGED
@@ -18131,17 +18131,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18131
18131
  if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
18132
18132
  initTapScript();
18133
18133
  }
18134
- if (cardProcessor === "cybersource") {
18135
- if (!window.FLEX) {
18136
- window.Pelcro.helpers.loadSDK("https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js", "cybersource-cdn");
18137
- document.querySelector('script[src="https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js"]').addEventListener("load", () => {
18138
- initCybersourceScript();
18139
- });
18140
- return;
18141
- }
18142
- if (!selectedPaymentMethodId) {
18134
+ if (cardProcessor === "cybersource" && !selectedPaymentMethodId && !window.FLEX) {
18135
+ window.Pelcro.helpers.loadSDK("https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js", "cybersource-cdn");
18136
+ document.querySelector('script[src="https://flex.cybersource.com/cybersource/assets/microform/0.4/flex-microform.min.js"]').addEventListener("load", () => {
18143
18137
  initCybersourceScript();
18144
- }
18138
+ });
18139
+ }
18140
+ if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18141
+ initCybersourceScript();
18145
18142
  }
18146
18143
  });
18147
18144
  }, [selectedPaymentMethodId]);
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.22.0-beta.25",
4
+ "version": "3.22.0-beta.26",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",