@pelcro/react-pelcro-js 3.6.0-beta.4 → 3.6.0-beta.5
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 +3 -2
- package/dist/index.esm.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -16832,12 +16832,13 @@ function PaymentMethodView({
|
|
|
16832
16832
|
showCoupon,
|
|
16833
16833
|
showExternalPaymentMethods
|
|
16834
16834
|
}) {
|
|
16835
|
-
var _window$Pelcro$site$r
|
|
16835
|
+
var _window$Pelcro$site$r;
|
|
16836
16836
|
|
|
16837
16837
|
const {
|
|
16838
16838
|
t
|
|
16839
16839
|
} = useTranslation("checkoutForm");
|
|
16840
16840
|
const cardProcessor = getSiteCardProcessor();
|
|
16841
|
+
const supportsVantiv = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_gateway_settings);
|
|
16841
16842
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16842
16843
|
className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
|
|
16843
16844
|
}, cardProcessor === "stripe" && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -16863,7 +16864,7 @@ function PaymentMethodView({
|
|
|
16863
16864
|
className: "plc-mb-2"
|
|
16864
16865
|
}, /*#__PURE__*/React__default['default'].createElement(CouponCode, null), /*#__PURE__*/React__default['default'].createElement(DiscountedPrice, null)), /*#__PURE__*/React__default['default'].createElement(TaxAmount, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16865
16866
|
className: "plc-grid plc-mt-4 plc-gap-y-2"
|
|
16866
|
-
}, /*#__PURE__*/React__default['default'].createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !
|
|
16867
|
+
}, /*#__PURE__*/React__default['default'].createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !supportsVantiv ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(PelcroPaymentRequestButton, null), /*#__PURE__*/React__default['default'].createElement(PaypalSubscribeButton, null)) : showExternalPaymentMethods && supportsVantiv ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(PaypalSubscribeButton, null)) : null)))));
|
|
16867
16868
|
}
|
|
16868
16869
|
|
|
16869
16870
|
const SubscriptionRenewView = ({
|
package/dist/index.esm.js
CHANGED
|
@@ -16802,12 +16802,13 @@ function PaymentMethodView({
|
|
|
16802
16802
|
showCoupon,
|
|
16803
16803
|
showExternalPaymentMethods
|
|
16804
16804
|
}) {
|
|
16805
|
-
var _window$Pelcro$site$r
|
|
16805
|
+
var _window$Pelcro$site$r;
|
|
16806
16806
|
|
|
16807
16807
|
const {
|
|
16808
16808
|
t
|
|
16809
16809
|
} = useTranslation("checkoutForm");
|
|
16810
16810
|
const cardProcessor = getSiteCardProcessor();
|
|
16811
|
+
const supportsVantiv = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_gateway_settings);
|
|
16811
16812
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16812
16813
|
className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
|
|
16813
16814
|
}, cardProcessor === "stripe" && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -16833,7 +16834,7 @@ function PaymentMethodView({
|
|
|
16833
16834
|
className: "plc-mb-2"
|
|
16834
16835
|
}, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement("div", {
|
|
16835
16836
|
className: "plc-grid plc-mt-4 plc-gap-y-2"
|
|
16836
|
-
}, /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !
|
|
16837
|
+
}, /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PelcroPaymentRequestButton, null), /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : showExternalPaymentMethods && supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : null)))));
|
|
16837
16838
|
}
|
|
16838
16839
|
|
|
16839
16840
|
const SubscriptionRenewView = ({
|