@pelcro/react-pelcro-js 3.20.1-beta.1 → 3.20.1-beta.2

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
@@ -16786,6 +16786,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16786
16786
  const tapInstanceRef = React__default['default'].useRef(null);
16787
16787
  const tapInstanceCard = React__default['default'].useRef(null);
16788
16788
  React.useEffect(() => {
16789
+ if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16789
16790
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16790
16791
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16791
16792
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16814,6 +16815,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16814
16815
  }, [selectedPaymentMethodId]);
16815
16816
  React.useEffect(() => {
16816
16817
  whenUserReady(() => {
16818
+ if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16817
16819
  if (cardProcessor === "tap" && !window.Tapjsli) {
16818
16820
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16819
16821
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
package/dist/index.esm.js CHANGED
@@ -16756,6 +16756,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16756
16756
  const tapInstanceRef = React__default.useRef(null);
16757
16757
  const tapInstanceCard = React__default.useRef(null);
16758
16758
  useEffect(() => {
16759
+ if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16759
16760
  if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
16760
16761
  var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
16761
16762
  const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
@@ -16784,6 +16785,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16784
16785
  }, [selectedPaymentMethodId]);
16785
16786
  useEffect(() => {
16786
16787
  whenUserReady(() => {
16788
+ if (skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0) return;
16787
16789
  if (cardProcessor === "tap" && !window.Tapjsli) {
16788
16790
  window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
16789
16791
  window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
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.20.1-beta.1",
4
+ "version": "3.20.1-beta.2",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",