@pelcro/react-pelcro-js 3.9.2 → 3.9.3

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
@@ -15421,7 +15421,7 @@ const PaymentMethodContainerWithoutStripe = ({
15421
15421
  /*====== Start Tap integration ========*/
15422
15422
 
15423
15423
  const submitUsingTap = () => {
15424
- var _ref, _ref2, _state$updatedPrice;
15424
+ var _ref, _ref2, _ref3, _state$updatedPrice;
15425
15425
 
15426
15426
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
15427
15427
 
@@ -15454,7 +15454,7 @@ const PaymentMethodContainerWithoutStripe = ({
15454
15454
  }, 0);
15455
15455
  };
15456
15456
 
15457
- const totalAmount = (_ref = (_ref2 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref2 !== void 0 ? _ref2 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref !== void 0 ? _ref : getOrderItemsTotal();
15457
+ const totalAmount = (_ref = (_ref2 = (_ref3 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref3 !== void 0 ? _ref3 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref2 !== void 0 ? _ref2 : getOrderItemsTotal()) !== null && _ref !== void 0 ? _ref : 0.1;
15458
15458
  tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
15459
15459
  if (result.error) {
15460
15460
  // Inform the user if there was an error
@@ -16666,7 +16666,7 @@ const PaymentMethodContainerWithoutStripe = ({
16666
16666
  source,
16667
16667
  error
16668
16668
  }) => {
16669
- var _ref3, _ref4, _state$updatedPrice2;
16669
+ var _ref4, _ref5, _state$updatedPrice2;
16670
16670
 
16671
16671
  if (error) {
16672
16672
  return handlePaymentError(error);
@@ -16692,7 +16692,7 @@ const PaymentMethodContainerWithoutStripe = ({
16692
16692
  }, 0);
16693
16693
  };
16694
16694
 
16695
- (_ref3 = (_ref4 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref4 !== void 0 ? _ref4 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref3 !== void 0 ? _ref3 : getOrderItemsTotal();
16695
+ (_ref4 = (_ref5 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref5 !== void 0 ? _ref5 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal();
16696
16696
  return handlePayment(source);
16697
16697
  }).catch(error => {
16698
16698
  return handlePaymentError(error);
package/dist/index.esm.js CHANGED
@@ -15391,7 +15391,7 @@ const PaymentMethodContainerWithoutStripe = ({
15391
15391
  /*====== Start Tap integration ========*/
15392
15392
 
15393
15393
  const submitUsingTap = () => {
15394
- var _ref, _ref2, _state$updatedPrice;
15394
+ var _ref, _ref2, _ref3, _state$updatedPrice;
15395
15395
 
15396
15396
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
15397
15397
 
@@ -15424,7 +15424,7 @@ const PaymentMethodContainerWithoutStripe = ({
15424
15424
  }, 0);
15425
15425
  };
15426
15426
 
15427
- const totalAmount = (_ref = (_ref2 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref2 !== void 0 ? _ref2 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref !== void 0 ? _ref : getOrderItemsTotal();
15427
+ const totalAmount = (_ref = (_ref2 = (_ref3 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref3 !== void 0 ? _ref3 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref2 !== void 0 ? _ref2 : getOrderItemsTotal()) !== null && _ref !== void 0 ? _ref : 0.1;
15428
15428
  tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
15429
15429
  if (result.error) {
15430
15430
  // Inform the user if there was an error
@@ -16636,7 +16636,7 @@ const PaymentMethodContainerWithoutStripe = ({
16636
16636
  source,
16637
16637
  error
16638
16638
  }) => {
16639
- var _ref3, _ref4, _state$updatedPrice2;
16639
+ var _ref4, _ref5, _state$updatedPrice2;
16640
16640
 
16641
16641
  if (error) {
16642
16642
  return handlePaymentError(error);
@@ -16662,7 +16662,7 @@ const PaymentMethodContainerWithoutStripe = ({
16662
16662
  }, 0);
16663
16663
  };
16664
16664
 
16665
- (_ref3 = (_ref4 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref4 !== void 0 ? _ref4 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref3 !== void 0 ? _ref3 : getOrderItemsTotal();
16665
+ (_ref4 = (_ref5 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref5 !== void 0 ? _ref5 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal();
16666
16666
  return handlePayment(source);
16667
16667
  }).catch(error => {
16668
16668
  return handlePaymentError(error);
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.9.2",
4
+ "version": "3.9.3",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",