@pelcro/react-pelcro-js 3.26.0-beta.39 → 3.26.0-beta.40

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
@@ -21705,7 +21705,7 @@ const ApplePayButton = _ref => {
21705
21705
  total: {
21706
21706
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21707
21707
  type: "final",
21708
- amount: updatedPrice / 100
21708
+ amount: (updatedPrice / 100).toFixed(2)
21709
21709
  }
21710
21710
  };
21711
21711
 
@@ -21749,12 +21749,12 @@ const ApplePayButton = _ref => {
21749
21749
  const newTotal = {
21750
21750
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21751
21751
  type: "final",
21752
- amount: updatedPrice / 100
21752
+ amount: (updatedPrice / 100).toFixed(2)
21753
21753
  };
21754
21754
  const newLineItems = [{
21755
21755
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21756
21756
  type: "final",
21757
- amount: updatedPrice / 100
21757
+ amount: (updatedPrice / 100).toFixed(2)
21758
21758
  }];
21759
21759
  session.completePaymentMethodSelection(newTotal, newLineItems);
21760
21760
  };
@@ -21766,14 +21766,14 @@ const ApplePayButton = _ref => {
21766
21766
  // const newTotal = {
21767
21767
  // label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
21768
21768
  // type: "final",
21769
- // amount: updatedPrice / 100
21769
+ // amount: (updatedPrice / 100).toFixed(2)
21770
21770
  // };
21771
21771
 
21772
21772
  // const newLineItems = [
21773
21773
  // {
21774
21774
  // label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
21775
21775
  // type: "final",
21776
- // amount: updatedPrice / 100
21776
+ // amount: (updatedPrice / 100).toFixed(2)
21777
21777
  // }
21778
21778
  // ];
21779
21779
 
package/dist/index.esm.js CHANGED
@@ -21675,7 +21675,7 @@ const ApplePayButton = _ref => {
21675
21675
  total: {
21676
21676
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21677
21677
  type: "final",
21678
- amount: updatedPrice / 100
21678
+ amount: (updatedPrice / 100).toFixed(2)
21679
21679
  }
21680
21680
  };
21681
21681
 
@@ -21719,12 +21719,12 @@ const ApplePayButton = _ref => {
21719
21719
  const newTotal = {
21720
21720
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21721
21721
  type: "final",
21722
- amount: updatedPrice / 100
21722
+ amount: (updatedPrice / 100).toFixed(2)
21723
21723
  };
21724
21724
  const newLineItems = [{
21725
21725
  label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
21726
21726
  type: "final",
21727
- amount: updatedPrice / 100
21727
+ amount: (updatedPrice / 100).toFixed(2)
21728
21728
  }];
21729
21729
  session.completePaymentMethodSelection(newTotal, newLineItems);
21730
21730
  };
@@ -21736,14 +21736,14 @@ const ApplePayButton = _ref => {
21736
21736
  // const newTotal = {
21737
21737
  // label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
21738
21738
  // type: "final",
21739
- // amount: updatedPrice / 100
21739
+ // amount: (updatedPrice / 100).toFixed(2)
21740
21740
  // };
21741
21741
 
21742
21742
  // const newLineItems = [
21743
21743
  // {
21744
21744
  // label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
21745
21745
  // type: "final",
21746
- // amount: updatedPrice / 100
21746
+ // amount: (updatedPrice / 100).toFixed(2)
21747
21747
  // }
21748
21748
  // ];
21749
21749
 
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.26.0-beta.39",
4
+ "version": "3.26.0-beta.40",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",