@pelcro/react-pelcro-js 3.19.0-beta.11 → 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 +6 -2
- package/dist/index.esm.js +6 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -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
|
@@ -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 = {
|