@pelcro/react-pelcro-js 3.19.0-beta.10 → 3.19.0-beta.12
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 +7 -3
- package/dist/index.esm.js +7 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10960,7 +10960,7 @@ const loadPaymentSDKs = () => {
|
|
|
10960
10960
|
}
|
|
10961
10961
|
if (!window.EprotectIframeClient) {
|
|
10962
10962
|
const PRELIVE_URL = "https://request.eprotect.vantivprelive.com/eProtect/js/eProtect-iframe-client.min.js";
|
|
10963
|
-
const PRODUCTION_URL = "https://request.eprotect.vantivcnp.com/eProtect/js/eProtect-iframe-
|
|
10963
|
+
const PRODUCTION_URL = "https://request.eprotect.vantivcnp.com/eProtect/js/eProtect-iframe-client3.min.js";
|
|
10964
10964
|
const scriptUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? PRODUCTION_URL : PRELIVE_URL;
|
|
10965
10965
|
window.Pelcro.helpers.loadSDK(scriptUrlToUse, "vantiv-eprotect-sdk");
|
|
10966
10966
|
}
|
|
@@ -17806,9 +17806,10 @@ const PaymentMethodContainer = props => {
|
|
|
17806
17806
|
const {
|
|
17807
17807
|
whenUserReady
|
|
17808
17808
|
} = usePelcro.getStore();
|
|
17809
|
+
const cardProcessor = getSiteCardProcessor();
|
|
17809
17810
|
React.useEffect(() => {
|
|
17810
17811
|
whenUserReady(() => {
|
|
17811
|
-
if (!window.Stripe) {
|
|
17812
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
17812
17813
|
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
17813
17814
|
setIsStripeLoaded(true);
|
|
17814
17815
|
});
|
|
@@ -17823,8 +17824,11 @@ const PaymentMethodContainer = props => {
|
|
|
17823
17824
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
17824
17825
|
store: store$k
|
|
17825
17826
|
}, props))));
|
|
17827
|
+
} else {
|
|
17828
|
+
return /*#__PURE__*/React__default['default'].createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
17829
|
+
store: store$k
|
|
17830
|
+
}, props));
|
|
17826
17831
|
}
|
|
17827
|
-
return null;
|
|
17828
17832
|
};
|
|
17829
17833
|
|
|
17830
17834
|
const StripeInputStyle = {
|
package/dist/index.esm.js
CHANGED
|
@@ -10930,7 +10930,7 @@ const loadPaymentSDKs = () => {
|
|
|
10930
10930
|
}
|
|
10931
10931
|
if (!window.EprotectIframeClient) {
|
|
10932
10932
|
const PRELIVE_URL = "https://request.eprotect.vantivprelive.com/eProtect/js/eProtect-iframe-client.min.js";
|
|
10933
|
-
const PRODUCTION_URL = "https://request.eprotect.vantivcnp.com/eProtect/js/eProtect-iframe-
|
|
10933
|
+
const PRODUCTION_URL = "https://request.eprotect.vantivcnp.com/eProtect/js/eProtect-iframe-client3.min.js";
|
|
10934
10934
|
const scriptUrlToUse = window.Pelcro.site.read().vantiv_gateway_settings.environment === "production" ? PRODUCTION_URL : PRELIVE_URL;
|
|
10935
10935
|
window.Pelcro.helpers.loadSDK(scriptUrlToUse, "vantiv-eprotect-sdk");
|
|
10936
10936
|
}
|
|
@@ -17776,9 +17776,10 @@ const PaymentMethodContainer = props => {
|
|
|
17776
17776
|
const {
|
|
17777
17777
|
whenUserReady
|
|
17778
17778
|
} = usePelcro.getStore();
|
|
17779
|
+
const cardProcessor = getSiteCardProcessor();
|
|
17779
17780
|
useEffect(() => {
|
|
17780
17781
|
whenUserReady(() => {
|
|
17781
|
-
if (!window.Stripe) {
|
|
17782
|
+
if (!window.Stripe && cardProcessor === "stripe") {
|
|
17782
17783
|
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
17783
17784
|
setIsStripeLoaded(true);
|
|
17784
17785
|
});
|
|
@@ -17793,8 +17794,11 @@ const PaymentMethodContainer = props => {
|
|
|
17793
17794
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
17794
17795
|
store: store$k
|
|
17795
17796
|
}, props))));
|
|
17797
|
+
} else {
|
|
17798
|
+
return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
17799
|
+
store: store$k
|
|
17800
|
+
}, props));
|
|
17796
17801
|
}
|
|
17797
|
-
return null;
|
|
17798
17802
|
};
|
|
17799
17803
|
|
|
17800
17804
|
const StripeInputStyle = {
|