@pinerohit11/testwidget 0.2.117 → 0.2.119
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.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2480,7 +2480,7 @@ function GetPaymentPage(props) {
|
|
2480
2480
|
return Object.keys(errors).length > 0;
|
2481
2481
|
};
|
2482
2482
|
const submitFunc = async (e) => {
|
2483
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
2483
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
2484
2484
|
e.preventDefault();
|
2485
2485
|
if (activetab !== "ach") {
|
2486
2486
|
const hasError = validateCardData();
|
@@ -2633,7 +2633,7 @@ function GetPaymentPage(props) {
|
|
2633
2633
|
routing_number: achData == null ? void 0 : achData.routingNumber,
|
2634
2634
|
bank_name: achData == null ? void 0 : achData.bankName,
|
2635
2635
|
account_type: achData == null ? void 0 : achData.accountType,
|
2636
|
-
amount: props.amount || 0,
|
2636
|
+
amount: String(props.amount || 0),
|
2637
2637
|
isSaveAch: saveACHinfo,
|
2638
2638
|
customer_id: props == null ? void 0 : props.customerId,
|
2639
2639
|
order_id: props == null ? void 0 : props.orderID,
|
@@ -2656,7 +2656,7 @@ function GetPaymentPage(props) {
|
|
2656
2656
|
} catch (error2) {
|
2657
2657
|
if (import_axios3.default.isAxiosError(error2)) {
|
2658
2658
|
setLoading2(false);
|
2659
|
-
setError((
|
2659
|
+
setError((_D = (_C = (_y = (_x = (_w = error2.response) == null ? void 0 : _w.data) == null ? void 0 : _x.message) == null ? void 0 : _y.error) != null ? _C : (_B = (_A = (_z = error2.response) == null ? void 0 : _z.data) == null ? void 0 : _A.message) == null ? void 0 : _B.amount) != null ? _D : "Something went wrong");
|
2660
2660
|
} else {
|
2661
2661
|
console.error("Unexpected error", error2);
|
2662
2662
|
}
|
@@ -4605,7 +4605,7 @@ function AddCardEasyPay(props) {
|
|
4605
4605
|
}
|
4606
4606
|
}
|
4607
4607
|
};
|
4608
|
-
return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(DataScript, null), /* @__PURE__ */ import_react21.default.createElement(AddCardStyle, null), /* @__PURE__ */ import_react21.default.createElement(Loader_default, { loading }), error && /* @__PURE__ */ import_react21.default.createElement("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" } }, /* @__PURE__ */ import_react21.default.createElement(ErrorCardMessage_default, { error, onClose: handleClose })),
|
4608
|
+
return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(DataScript, null), /* @__PURE__ */ import_react21.default.createElement(AddCardStyle, null), /* @__PURE__ */ import_react21.default.createElement(Loader_default, { loading }), error && /* @__PURE__ */ import_react21.default.createElement("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" } }, /* @__PURE__ */ import_react21.default.createElement(ErrorCardMessage_default, { error, onClose: handleClose })), success && /* @__PURE__ */ import_react21.default.createElement(SuccessCardMsz_default, { onClose: handleCloseSeccess }), !error && !success && /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
|
4609
4609
|
"div",
|
4610
4610
|
{
|
4611
4611
|
className: "container-creditcard add-card modal-content",
|
package/dist/index.mjs
CHANGED
@@ -2442,7 +2442,7 @@ function GetPaymentPage(props) {
|
|
2442
2442
|
return Object.keys(errors).length > 0;
|
2443
2443
|
};
|
2444
2444
|
const submitFunc = async (e) => {
|
2445
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
2445
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
2446
2446
|
e.preventDefault();
|
2447
2447
|
if (activetab !== "ach") {
|
2448
2448
|
const hasError = validateCardData();
|
@@ -2595,7 +2595,7 @@ function GetPaymentPage(props) {
|
|
2595
2595
|
routing_number: achData == null ? void 0 : achData.routingNumber,
|
2596
2596
|
bank_name: achData == null ? void 0 : achData.bankName,
|
2597
2597
|
account_type: achData == null ? void 0 : achData.accountType,
|
2598
|
-
amount: props.amount || 0,
|
2598
|
+
amount: String(props.amount || 0),
|
2599
2599
|
isSaveAch: saveACHinfo,
|
2600
2600
|
customer_id: props == null ? void 0 : props.customerId,
|
2601
2601
|
order_id: props == null ? void 0 : props.orderID,
|
@@ -2618,7 +2618,7 @@ function GetPaymentPage(props) {
|
|
2618
2618
|
} catch (error2) {
|
2619
2619
|
if (axios3.isAxiosError(error2)) {
|
2620
2620
|
setLoading2(false);
|
2621
|
-
setError((
|
2621
|
+
setError((_D = (_C = (_y = (_x = (_w = error2.response) == null ? void 0 : _w.data) == null ? void 0 : _x.message) == null ? void 0 : _y.error) != null ? _C : (_B = (_A = (_z = error2.response) == null ? void 0 : _z.data) == null ? void 0 : _A.message) == null ? void 0 : _B.amount) != null ? _D : "Something went wrong");
|
2622
2622
|
} else {
|
2623
2623
|
console.error("Unexpected error", error2);
|
2624
2624
|
}
|
@@ -4567,7 +4567,7 @@ function AddCardEasyPay(props) {
|
|
4567
4567
|
}
|
4568
4568
|
}
|
4569
4569
|
};
|
4570
|
-
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(DataScript, null), /* @__PURE__ */ React20.createElement(AddCardStyle, null), /* @__PURE__ */ React20.createElement(Loader_default, { loading }), error && /* @__PURE__ */ React20.createElement("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" } }, /* @__PURE__ */ React20.createElement(ErrorCardMessage_default, { error, onClose: handleClose })),
|
4570
|
+
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(DataScript, null), /* @__PURE__ */ React20.createElement(AddCardStyle, null), /* @__PURE__ */ React20.createElement(Loader_default, { loading }), error && /* @__PURE__ */ React20.createElement("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" } }, /* @__PURE__ */ React20.createElement(ErrorCardMessage_default, { error, onClose: handleClose })), success && /* @__PURE__ */ React20.createElement(SuccessCardMsz_default, { onClose: handleCloseSeccess }), !error && !success && /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|
4571
4571
|
"div",
|
4572
4572
|
{
|
4573
4573
|
className: "container-creditcard add-card modal-content",
|