@fractalpay/fractalpay-next-dev 0.0.216 → 0.0.218
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 +69 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports, module) {
|
|
40
40
|
module.exports = {
|
|
41
41
|
name: "@fractalpay/fractalpay-next-dev",
|
|
42
|
-
version: "0.0.
|
|
42
|
+
version: "0.0.218",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -3168,7 +3168,7 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
|
|
|
3168
3168
|
{
|
|
3169
3169
|
id: "card_number",
|
|
3170
3170
|
className: "form-control card-number-new",
|
|
3171
|
-
style: { height: "46px" }
|
|
3171
|
+
style: { height: "46px", display: "inline-block" }
|
|
3172
3172
|
}
|
|
3173
3173
|
),
|
|
3174
3174
|
/* @__PURE__ */ jsx17("div", { className: "card-dtl", children: /* @__PURE__ */ jsxs10("div", { className: "exp-cvc-container exp-cvc-container-wrap", style: { margin: 0 }, children: [
|
|
@@ -3209,32 +3209,32 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
|
|
|
3209
3209
|
{
|
|
3210
3210
|
id: "card_number",
|
|
3211
3211
|
className: "form-control card-number-new",
|
|
3212
|
-
style: { height: `${isSky ? "36px" : "46px"}
|
|
3212
|
+
style: { height: `${isSky ? "36px" : "46px"}`, display: "inline-block" }
|
|
3213
3213
|
}
|
|
3214
3214
|
),
|
|
3215
3215
|
/* @__PURE__ */ jsx17("div", { className: "card-crdi card-expiry-new", children: /* @__PURE__ */ jsxs10("div", { className: "exp-date-year-container", children: [
|
|
3216
|
-
/* @__PURE__ */ jsx17("div", { className: "exp-date form-group", children: /* @__PURE__ */ jsx17(
|
|
3216
|
+
/* @__PURE__ */ jsx17("div", { className: "exp-date form-group ", style: { marginTop: "10px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
|
|
3217
3217
|
"div",
|
|
3218
3218
|
{
|
|
3219
3219
|
id: "exp_month",
|
|
3220
3220
|
className: "form-control required card-cvv-in",
|
|
3221
|
-
style: { height: "36px" }
|
|
3221
|
+
style: { height: "36px", display: "inline-block" }
|
|
3222
3222
|
}
|
|
3223
3223
|
) }),
|
|
3224
|
-
/* @__PURE__ */ jsx17("div", { className: "exp-year form-group", children: /* @__PURE__ */ jsx17(
|
|
3224
|
+
/* @__PURE__ */ jsx17("div", { className: "exp-year form-group ", style: { marginTop: "10px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
|
|
3225
3225
|
"div",
|
|
3226
3226
|
{
|
|
3227
3227
|
id: "exp_year",
|
|
3228
3228
|
className: "form-control required card-cvv-in",
|
|
3229
|
-
style: { height: "36px" }
|
|
3229
|
+
style: { height: "36px", display: "inline-block" }
|
|
3230
3230
|
}
|
|
3231
3231
|
) }),
|
|
3232
|
-
/* @__PURE__ */ jsx17("div", { className: "security-digit form-group", children: /* @__PURE__ */ jsx17(
|
|
3232
|
+
/* @__PURE__ */ jsx17("div", { className: "security-digit form-group ", style: { marginTop: "10px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
|
|
3233
3233
|
"div",
|
|
3234
3234
|
{
|
|
3235
3235
|
id: "cvv",
|
|
3236
3236
|
className: "form-control card-cvv-in required",
|
|
3237
|
-
style: { height: "36px" }
|
|
3237
|
+
style: { height: "36px", display: "inline-block" }
|
|
3238
3238
|
}
|
|
3239
3239
|
) })
|
|
3240
3240
|
] }) })
|
|
@@ -6631,7 +6631,8 @@ var FractalFieldsAddCardSky = ({ fractalStyles, tokenizerRef, extraInputs }) =>
|
|
|
6631
6631
|
"div",
|
|
6632
6632
|
{
|
|
6633
6633
|
id: "card_number",
|
|
6634
|
-
className: "form-control card-number-new"
|
|
6634
|
+
className: "form-control card-number-new",
|
|
6635
|
+
style: { display: "inline-block" }
|
|
6635
6636
|
}
|
|
6636
6637
|
)
|
|
6637
6638
|
] }) }),
|
|
@@ -6645,7 +6646,8 @@ var FractalFieldsAddCardSky = ({ fractalStyles, tokenizerRef, extraInputs }) =>
|
|
|
6645
6646
|
"div",
|
|
6646
6647
|
{
|
|
6647
6648
|
id: "exp_month",
|
|
6648
|
-
className: "form-control required card-cvv-in"
|
|
6649
|
+
className: "form-control required card-cvv-in",
|
|
6650
|
+
style: { display: "inline-block" }
|
|
6649
6651
|
}
|
|
6650
6652
|
)
|
|
6651
6653
|
] }),
|
|
@@ -6658,7 +6660,8 @@ var FractalFieldsAddCardSky = ({ fractalStyles, tokenizerRef, extraInputs }) =>
|
|
|
6658
6660
|
"div",
|
|
6659
6661
|
{
|
|
6660
6662
|
id: "exp_year",
|
|
6661
|
-
className: "form-control required card-cvv-in"
|
|
6663
|
+
className: "form-control required card-cvv-in",
|
|
6664
|
+
style: { display: "inline-block" }
|
|
6662
6665
|
}
|
|
6663
6666
|
)
|
|
6664
6667
|
] }),
|
|
@@ -6671,7 +6674,8 @@ var FractalFieldsAddCardSky = ({ fractalStyles, tokenizerRef, extraInputs }) =>
|
|
|
6671
6674
|
"div",
|
|
6672
6675
|
{
|
|
6673
6676
|
id: "cvv",
|
|
6674
|
-
className: "form-control card-cvv-in required"
|
|
6677
|
+
className: "form-control card-cvv-in required",
|
|
6678
|
+
style: { display: "inline-block" }
|
|
6675
6679
|
}
|
|
6676
6680
|
)
|
|
6677
6681
|
] }),
|
|
@@ -9566,9 +9570,9 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9566
9570
|
}
|
|
9567
9571
|
};
|
|
9568
9572
|
const handleCharge = async (data) => {
|
|
9569
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2
|
|
9573
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
9570
9574
|
try {
|
|
9571
|
-
let dataObj = {
|
|
9575
|
+
let dataObj = __spreadValues({
|
|
9572
9576
|
pass_fee_amount: Number(amount) - cashDiscount,
|
|
9573
9577
|
pass_fee,
|
|
9574
9578
|
Token: data == null ? void 0 : data.Token,
|
|
@@ -9577,106 +9581,69 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9577
9581
|
require3ds,
|
|
9578
9582
|
isPartial,
|
|
9579
9583
|
orderGuid: orderGuid || ordGuid
|
|
9580
|
-
}
|
|
9584
|
+
}, saveCardInfo ? {
|
|
9585
|
+
card: {
|
|
9586
|
+
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
9587
|
+
customer_id: customerId,
|
|
9588
|
+
gateway_token: (data == null ? void 0 : data.Token) || (data == null ? void 0 : data.gateway_token),
|
|
9589
|
+
name: cardData == null ? void 0 : cardData.cardName
|
|
9590
|
+
}
|
|
9591
|
+
} : null);
|
|
9581
9592
|
if (require3ds && (data == null ? void 0 : data.stripe_3ds_auth_id)) {
|
|
9582
9593
|
dataObj.stripe_3ds_auth_id = data == null ? void 0 : data.stripe_3ds_auth_id;
|
|
9583
9594
|
}
|
|
9584
9595
|
const chargeResponse = await axios9.post(`${masterBaseUrl}api/v1/gateway/charge/${session_token}`, dataObj);
|
|
9585
9596
|
if ((_a2 = chargeResponse == null ? void 0 : chargeResponse.data) == null ? void 0 : _a2.result) {
|
|
9586
|
-
let addCard;
|
|
9587
|
-
if (saveCardInfo && customerId) {
|
|
9588
|
-
try {
|
|
9589
|
-
let obj = {
|
|
9590
|
-
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
9591
|
-
customer_id: customerId,
|
|
9592
|
-
gateway_token: (data == null ? void 0 : data.gateway_token) || (data == null ? void 0 : data.Token)
|
|
9593
|
-
};
|
|
9594
|
-
addCard = await axios9.post(`${masterBaseUrl}api/v1/gateway/add-card/${session_token}`, obj);
|
|
9595
|
-
if ((_b2 = addCard == null ? void 0 : addCard.data) == null ? void 0 : _b2.result) {
|
|
9596
|
-
addCard = (_c2 = addCard == null ? void 0 : addCard.data) == null ? void 0 : _c2.data;
|
|
9597
|
-
}
|
|
9598
|
-
} catch (error2) {
|
|
9599
|
-
console.log(error2, "error");
|
|
9600
|
-
hideLoader();
|
|
9601
|
-
callback({
|
|
9602
|
-
error: ((_e2 = (_d2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _d2.data) == null ? void 0 : _e2.message) || "Something went wrong!",
|
|
9603
|
-
result: (_g2 = (_f2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _f2.data) == null ? void 0 : _g2.result,
|
|
9604
|
-
statusCode: (_h2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _h2.status
|
|
9605
|
-
});
|
|
9606
|
-
setError(((_j2 = (_i2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _i2.data) == null ? void 0 : _j2.message) || "Something went wrong!");
|
|
9607
|
-
}
|
|
9608
|
-
}
|
|
9609
9597
|
let callbackdata = {
|
|
9610
|
-
cardDetails:
|
|
9611
|
-
callback: __spreadProps(__spreadValues({}, (
|
|
9598
|
+
// cardDetails: { ...addCard, ...data },
|
|
9599
|
+
callback: __spreadProps(__spreadValues({}, (_b2 = chargeResponse == null ? void 0 : chargeResponse.data) == null ? void 0 : _b2.data), { name: cardData == null ? void 0 : cardData.cardName, isPreAuth })
|
|
9612
9600
|
};
|
|
9613
|
-
if (!saveCardInfo) {
|
|
9614
|
-
delete callbackdata.cardDetails;
|
|
9615
|
-
}
|
|
9616
9601
|
callback(callbackdata);
|
|
9617
9602
|
hideLoader();
|
|
9618
9603
|
handleClose();
|
|
9619
9604
|
}
|
|
9620
9605
|
} catch (error2) {
|
|
9621
|
-
setError(((
|
|
9606
|
+
setError(((_d2 = (_c2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.message) || "Something went wrong!");
|
|
9622
9607
|
callback({
|
|
9623
|
-
error: ((
|
|
9624
|
-
result: (
|
|
9625
|
-
statusCode: (
|
|
9608
|
+
error: ((_f2 = (_e2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _e2.data) == null ? void 0 : _f2.message) || "Something went wrong!",
|
|
9609
|
+
result: (_h2 = (_g2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _g2.data) == null ? void 0 : _h2.result,
|
|
9610
|
+
statusCode: (_i2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _i2.status
|
|
9626
9611
|
});
|
|
9627
9612
|
hideLoader();
|
|
9628
9613
|
}
|
|
9629
9614
|
};
|
|
9630
9615
|
const handlePreAuth = async (data) => {
|
|
9631
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2
|
|
9616
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
9632
9617
|
try {
|
|
9633
|
-
let dataObj = {
|
|
9618
|
+
let dataObj = __spreadValues({
|
|
9634
9619
|
Token: data == null ? void 0 : data.Token,
|
|
9635
9620
|
amount,
|
|
9636
9621
|
postal_code: data == null ? void 0 : data.postalCode
|
|
9637
|
-
}
|
|
9622
|
+
}, saveCardInfo ? {
|
|
9623
|
+
card: {
|
|
9624
|
+
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
9625
|
+
customer_id: customerId,
|
|
9626
|
+
gateway_token: (data == null ? void 0 : data.Token) || (data == null ? void 0 : data.gateway_token),
|
|
9627
|
+
name: cardData == null ? void 0 : cardData.cardName
|
|
9628
|
+
}
|
|
9629
|
+
} : null);
|
|
9638
9630
|
const preAuthResponse = await axios9.post(`${masterBaseUrl}api/v1/gateway/preauth/${session_token}`, dataObj);
|
|
9639
9631
|
if ((_a2 = preAuthResponse == null ? void 0 : preAuthResponse.data) == null ? void 0 : _a2.result) {
|
|
9640
9632
|
let addCard;
|
|
9641
|
-
if (saveCardInfo && customerId) {
|
|
9642
|
-
try {
|
|
9643
|
-
let obj = {
|
|
9644
|
-
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
9645
|
-
customer_id: customerId,
|
|
9646
|
-
gateway_token: (data == null ? void 0 : data.Token) || (data == null ? void 0 : data.gateway_token)
|
|
9647
|
-
};
|
|
9648
|
-
addCard = await axios9.post(`${masterBaseUrl}api/v1/gateway/add-card/${session_token}`, obj);
|
|
9649
|
-
if ((_b2 = addCard == null ? void 0 : addCard.data) == null ? void 0 : _b2.result) {
|
|
9650
|
-
addCard = (_c2 = addCard == null ? void 0 : addCard.data) == null ? void 0 : _c2.data;
|
|
9651
|
-
}
|
|
9652
|
-
} catch (error2) {
|
|
9653
|
-
console.log(error2, "error");
|
|
9654
|
-
hideLoader();
|
|
9655
|
-
setError(((_e2 = (_d2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _d2.data) == null ? void 0 : _e2.message) || "Something went wrong!");
|
|
9656
|
-
callback({
|
|
9657
|
-
error: ((_g2 = (_f2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _f2.data) == null ? void 0 : _g2.message) || "Something went wrong!",
|
|
9658
|
-
result: (_i2 = (_h2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _h2.data) == null ? void 0 : _i2.result,
|
|
9659
|
-
statusCode: (_j2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _j2.status
|
|
9660
|
-
});
|
|
9661
|
-
}
|
|
9662
|
-
}
|
|
9663
9633
|
let callbackdata = {
|
|
9664
|
-
cardDetails:
|
|
9665
|
-
callback: __spreadProps(__spreadValues({}, (
|
|
9634
|
+
// cardDetails: { ...addCard, ...data },
|
|
9635
|
+
callback: __spreadProps(__spreadValues({}, (_b2 = preAuthResponse == null ? void 0 : preAuthResponse.data) == null ? void 0 : _b2.data), { name: cardData == null ? void 0 : cardData.cardName, isPreAuth })
|
|
9666
9636
|
};
|
|
9667
|
-
if (!saveCardInfo) {
|
|
9668
|
-
delete callbackdata.cardDetails;
|
|
9669
|
-
}
|
|
9670
9637
|
callback(callbackdata);
|
|
9671
9638
|
hideLoader();
|
|
9672
9639
|
handleClose();
|
|
9673
9640
|
}
|
|
9674
9641
|
} catch (error2) {
|
|
9675
|
-
setError(((
|
|
9642
|
+
setError(((_d2 = (_c2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.message) || "Something went wrong!");
|
|
9676
9643
|
callback({
|
|
9677
|
-
error: ((
|
|
9678
|
-
result: (
|
|
9679
|
-
statusCode: (
|
|
9644
|
+
error: ((_f2 = (_e2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _e2.data) == null ? void 0 : _f2.message) || "Something went wrong!",
|
|
9645
|
+
result: (_h2 = (_g2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _g2.data) == null ? void 0 : _h2.result,
|
|
9646
|
+
statusCode: (_i2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _i2.status
|
|
9680
9647
|
});
|
|
9681
9648
|
hideLoader();
|
|
9682
9649
|
}
|
|
@@ -9887,7 +9854,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9887
9854
|
return validCard && validCVV && validExpirationDate;
|
|
9888
9855
|
};
|
|
9889
9856
|
const submitFunc = async (e) => {
|
|
9890
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2
|
|
9857
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2;
|
|
9891
9858
|
e.preventDefault();
|
|
9892
9859
|
const el = document.activeElement;
|
|
9893
9860
|
if (el instanceof HTMLElement) {
|
|
@@ -9937,7 +9904,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9937
9904
|
} else {
|
|
9938
9905
|
let callbackdata;
|
|
9939
9906
|
try {
|
|
9940
|
-
const payByBank = await axios9.post(`${masterBaseUrl}api/v1/gateway/bank-charge/${session_token}`, {
|
|
9907
|
+
const payByBank = await axios9.post(`${masterBaseUrl}api/v1/gateway/bank-charge/${session_token}`, __spreadValues({
|
|
9941
9908
|
label: achData == null ? void 0 : achData.name,
|
|
9942
9909
|
account_number: achData == null ? void 0 : achData.accountNumber,
|
|
9943
9910
|
routing_number: achData == null ? void 0 : achData.routingNumber,
|
|
@@ -9951,36 +9918,20 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9951
9918
|
surcharge: "0.00",
|
|
9952
9919
|
order_id: "",
|
|
9953
9920
|
company_name: (achData == null ? void 0 : achData.companyName) || ""
|
|
9954
|
-
}
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
account_type: achData == null ? void 0 : achData.accountType,
|
|
9964
|
-
customer_id: customerId || "",
|
|
9965
|
-
company_name: (achData == null ? void 0 : achData.companyName) || ""
|
|
9966
|
-
});
|
|
9967
|
-
if (result2.data.result) {
|
|
9968
|
-
callbackdata = {
|
|
9969
|
-
bankDetails: __spreadProps(__spreadValues({}, (_g2 = result2 == null ? void 0 : result2.data) == null ? void 0 : _g2.data), { account_type: achData == null ? void 0 : achData.accountType })
|
|
9970
|
-
};
|
|
9971
|
-
}
|
|
9972
|
-
} catch (error2) {
|
|
9973
|
-
hideLoader();
|
|
9974
|
-
setError(((_i2 = (_h2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _h2.data) == null ? void 0 : _i2.message) || "Something went wrong!");
|
|
9975
|
-
callback({
|
|
9976
|
-
error: ((_k2 = (_j2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _j2.data) == null ? void 0 : _k2.message) || "Something went wrong!",
|
|
9977
|
-
result: (_m2 = (_l2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _l2.data) == null ? void 0 : _m2.result,
|
|
9978
|
-
statusCode: (_n2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _n2.status
|
|
9979
|
-
});
|
|
9980
|
-
}
|
|
9921
|
+
}, saveACHinfo ? {
|
|
9922
|
+
bank: {
|
|
9923
|
+
name: achData == null ? void 0 : achData.name,
|
|
9924
|
+
account_number: achData == null ? void 0 : achData.accountNumber,
|
|
9925
|
+
routing_number: achData == null ? void 0 : achData.routingNumber,
|
|
9926
|
+
bank_name: achData == null ? void 0 : achData.bankName,
|
|
9927
|
+
account_type: achData == null ? void 0 : achData.accountType,
|
|
9928
|
+
customer_id: customerId || "",
|
|
9929
|
+
company_name: (achData == null ? void 0 : achData.companyName) || ""
|
|
9981
9930
|
}
|
|
9931
|
+
} : null));
|
|
9932
|
+
if ((_f2 = payByBank == null ? void 0 : payByBank.data) == null ? void 0 : _f2.result) {
|
|
9982
9933
|
callbackdata = __spreadProps(__spreadValues({}, callbackdata), {
|
|
9983
|
-
callback: __spreadProps(__spreadValues({}, (
|
|
9934
|
+
callback: __spreadProps(__spreadValues({}, (_g2 = payByBank == null ? void 0 : payByBank.data) == null ? void 0 : _g2.data), { name: achData == null ? void 0 : achData.name, isPreAuth })
|
|
9984
9935
|
});
|
|
9985
9936
|
callback(callbackdata);
|
|
9986
9937
|
handleClose();
|
|
@@ -9988,7 +9939,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9988
9939
|
}
|
|
9989
9940
|
} catch (error2) {
|
|
9990
9941
|
console.log(error2, "errororor");
|
|
9991
|
-
let data = (
|
|
9942
|
+
let data = (_h2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _h2.data;
|
|
9992
9943
|
if (typeof (data == null ? void 0 : data.message) == "object") {
|
|
9993
9944
|
Object.values(data == null ? void 0 : data.message).forEach((message) => {
|
|
9994
9945
|
var _a3;
|
|
@@ -10004,7 +9955,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10004
9955
|
callback({
|
|
10005
9956
|
error: (data == null ? void 0 : data.message) || "Something went wrong!",
|
|
10006
9957
|
result: (data == null ? void 0 : data.result) || false,
|
|
10007
|
-
statusCode: (
|
|
9958
|
+
statusCode: (_i2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _i2.status
|
|
10008
9959
|
});
|
|
10009
9960
|
}
|
|
10010
9961
|
hideLoader();
|
|
@@ -10014,11 +9965,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10014
9965
|
} catch (error2) {
|
|
10015
9966
|
hideLoader();
|
|
10016
9967
|
callback({
|
|
10017
|
-
error: ((
|
|
10018
|
-
result: (
|
|
10019
|
-
statusCode: (
|
|
9968
|
+
error: ((_k2 = (_j2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _j2.data) == null ? void 0 : _k2.message) || "Something went wrong!",
|
|
9969
|
+
result: (_m2 = (_l2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _l2.data) == null ? void 0 : _m2.result,
|
|
9970
|
+
statusCode: (_n2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _n2.status
|
|
10020
9971
|
});
|
|
10021
|
-
setError(((
|
|
9972
|
+
setError(((_p2 = (_o2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _o2.data) == null ? void 0 : _p2.message) || "Something went wrong!");
|
|
10022
9973
|
}
|
|
10023
9974
|
};
|
|
10024
9975
|
const handleCardChange = (field, value) => {
|