@pinerohit11/testwidget 0.2.118 → 0.2.120
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 -3
- package/dist/index.mjs +4 -3
- 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();
|
@@ -2626,6 +2626,7 @@ function GetPaymentPage(props) {
|
|
2626
2626
|
const hasError = validateAchData();
|
2627
2627
|
if (hasError) return;
|
2628
2628
|
else {
|
2629
|
+
setLoading2(true);
|
2629
2630
|
let dataForm = {
|
2630
2631
|
fractalpayPublicKey: fractalpayClientKey,
|
2631
2632
|
label: (achData == null ? void 0 : achData.name) || "John Doe",
|
@@ -2633,7 +2634,7 @@ function GetPaymentPage(props) {
|
|
2633
2634
|
routing_number: achData == null ? void 0 : achData.routingNumber,
|
2634
2635
|
bank_name: achData == null ? void 0 : achData.bankName,
|
2635
2636
|
account_type: achData == null ? void 0 : achData.accountType,
|
2636
|
-
amount: props.amount || 0,
|
2637
|
+
amount: String(props.amount || 0),
|
2637
2638
|
isSaveAch: saveACHinfo,
|
2638
2639
|
customer_id: props == null ? void 0 : props.customerId,
|
2639
2640
|
order_id: props == null ? void 0 : props.orderID,
|
@@ -2656,7 +2657,7 @@ function GetPaymentPage(props) {
|
|
2656
2657
|
} catch (error2) {
|
2657
2658
|
if (import_axios3.default.isAxiosError(error2)) {
|
2658
2659
|
setLoading2(false);
|
2659
|
-
setError((
|
2660
|
+
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
2661
|
} else {
|
2661
2662
|
console.error("Unexpected error", error2);
|
2662
2663
|
}
|
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();
|
@@ -2588,6 +2588,7 @@ function GetPaymentPage(props) {
|
|
2588
2588
|
const hasError = validateAchData();
|
2589
2589
|
if (hasError) return;
|
2590
2590
|
else {
|
2591
|
+
setLoading2(true);
|
2591
2592
|
let dataForm = {
|
2592
2593
|
fractalpayPublicKey: fractalpayClientKey,
|
2593
2594
|
label: (achData == null ? void 0 : achData.name) || "John Doe",
|
@@ -2595,7 +2596,7 @@ function GetPaymentPage(props) {
|
|
2595
2596
|
routing_number: achData == null ? void 0 : achData.routingNumber,
|
2596
2597
|
bank_name: achData == null ? void 0 : achData.bankName,
|
2597
2598
|
account_type: achData == null ? void 0 : achData.accountType,
|
2598
|
-
amount: props.amount || 0,
|
2599
|
+
amount: String(props.amount || 0),
|
2599
2600
|
isSaveAch: saveACHinfo,
|
2600
2601
|
customer_id: props == null ? void 0 : props.customerId,
|
2601
2602
|
order_id: props == null ? void 0 : props.orderID,
|
@@ -2618,7 +2619,7 @@ function GetPaymentPage(props) {
|
|
2618
2619
|
} catch (error2) {
|
2619
2620
|
if (axios3.isAxiosError(error2)) {
|
2620
2621
|
setLoading2(false);
|
2621
|
-
setError((
|
2622
|
+
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
2623
|
} else {
|
2623
2624
|
console.error("Unexpected error", error2);
|
2624
2625
|
}
|