@pelcro/react-pelcro-js 3.33.0 → 3.33.1
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 +5 -5
- package/dist/index.esm.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -20735,7 +20735,7 @@ const ApplePayButton = _ref => {
|
|
|
20735
20735
|
total: {
|
|
20736
20736
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20737
20737
|
type: "final",
|
|
20738
|
-
amount: updatedPrice / 100
|
|
20738
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20739
20739
|
}
|
|
20740
20740
|
};
|
|
20741
20741
|
|
|
@@ -20779,12 +20779,12 @@ const ApplePayButton = _ref => {
|
|
|
20779
20779
|
const newTotal = {
|
|
20780
20780
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20781
20781
|
type: "final",
|
|
20782
|
-
amount: updatedPrice / 100
|
|
20782
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20783
20783
|
};
|
|
20784
20784
|
const newLineItems = [{
|
|
20785
20785
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20786
20786
|
type: "final",
|
|
20787
|
-
amount: updatedPrice / 100
|
|
20787
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20788
20788
|
}];
|
|
20789
20789
|
session.completePaymentMethodSelection(newTotal, newLineItems);
|
|
20790
20790
|
};
|
|
@@ -20796,14 +20796,14 @@ const ApplePayButton = _ref => {
|
|
|
20796
20796
|
// const newTotal = {
|
|
20797
20797
|
// label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
|
|
20798
20798
|
// type: "final",
|
|
20799
|
-
// amount: updatedPrice / 100
|
|
20799
|
+
// amount: (updatedPrice / 100).toFixed(2)
|
|
20800
20800
|
// };
|
|
20801
20801
|
|
|
20802
20802
|
// const newLineItems = [
|
|
20803
20803
|
// {
|
|
20804
20804
|
// label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
|
|
20805
20805
|
// type: "final",
|
|
20806
|
-
// amount: updatedPrice / 100
|
|
20806
|
+
// amount: (updatedPrice / 100).toFixed(2)
|
|
20807
20807
|
// }
|
|
20808
20808
|
// ];
|
|
20809
20809
|
|
package/dist/index.esm.js
CHANGED
|
@@ -20705,7 +20705,7 @@ const ApplePayButton = _ref => {
|
|
|
20705
20705
|
total: {
|
|
20706
20706
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20707
20707
|
type: "final",
|
|
20708
|
-
amount: updatedPrice / 100
|
|
20708
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20709
20709
|
}
|
|
20710
20710
|
};
|
|
20711
20711
|
|
|
@@ -20749,12 +20749,12 @@ const ApplePayButton = _ref => {
|
|
|
20749
20749
|
const newTotal = {
|
|
20750
20750
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20751
20751
|
type: "final",
|
|
20752
|
-
amount: updatedPrice / 100
|
|
20752
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20753
20753
|
};
|
|
20754
20754
|
const newLineItems = [{
|
|
20755
20755
|
label: (plan === null || plan === void 0 ? void 0 : plan.nickname) || orderLabel || `invoice #${invoice === null || invoice === void 0 ? void 0 : invoice.id}`,
|
|
20756
20756
|
type: "final",
|
|
20757
|
-
amount: updatedPrice / 100
|
|
20757
|
+
amount: (updatedPrice / 100).toFixed(2)
|
|
20758
20758
|
}];
|
|
20759
20759
|
session.completePaymentMethodSelection(newTotal, newLineItems);
|
|
20760
20760
|
};
|
|
@@ -20766,14 +20766,14 @@ const ApplePayButton = _ref => {
|
|
|
20766
20766
|
// const newTotal = {
|
|
20767
20767
|
// label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
|
|
20768
20768
|
// type: "final",
|
|
20769
|
-
// amount: updatedPrice / 100
|
|
20769
|
+
// amount: (updatedPrice / 100).toFixed(2)
|
|
20770
20770
|
// };
|
|
20771
20771
|
|
|
20772
20772
|
// const newLineItems = [
|
|
20773
20773
|
// {
|
|
20774
20774
|
// label: plan?.nickname || orderLabel || `invoice #${invoice?.id}`,
|
|
20775
20775
|
// type: "final",
|
|
20776
|
-
// amount: updatedPrice / 100
|
|
20776
|
+
// amount: (updatedPrice / 100).toFixed(2)
|
|
20777
20777
|
// }
|
|
20778
20778
|
// ];
|
|
20779
20779
|
|