@fractalpay/fractalpay-next-dev 0.0.221 → 0.0.223
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 +13 -25
- 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.223",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -3247,10 +3247,7 @@ import { useEffect as useEffect6 } from "react";
|
|
|
3247
3247
|
var scriptLoaded = false;
|
|
3248
3248
|
var DataCapScriptLoader = () => {
|
|
3249
3249
|
useEffect6(() => {
|
|
3250
|
-
console.log("\u{1F535} DataCapScriptLoader mounted");
|
|
3251
|
-
console.log("\u{1F535} scriptLoaded flag:", scriptLoaded);
|
|
3252
3250
|
if (scriptLoaded) {
|
|
3253
|
-
console.log("\u{1F7E1} Script already marked as loaded. Skipping injection.");
|
|
3254
3251
|
return;
|
|
3255
3252
|
}
|
|
3256
3253
|
const existingScript = document.querySelector(
|
|
@@ -3258,25 +3255,19 @@ var DataCapScriptLoader = () => {
|
|
|
3258
3255
|
);
|
|
3259
3256
|
console.log("\u{1F535} existingScript found:", !!existingScript);
|
|
3260
3257
|
if (!existingScript) {
|
|
3261
|
-
console.log("\u{1F7E2} Injecting DataCap hosted script...");
|
|
3262
3258
|
const script2 = document.createElement("script");
|
|
3263
3259
|
script2.src = `${datacapUrl}/hosted`;
|
|
3264
3260
|
script2.async = true;
|
|
3265
3261
|
script2.onload = () => {
|
|
3266
3262
|
console.log("\u2705 DataCap script loaded successfully");
|
|
3267
3263
|
scriptLoaded = true;
|
|
3268
|
-
console.log("\u{1F535} scriptLoaded flag updated to:", scriptLoaded);
|
|
3269
|
-
console.log("\u{1F535} window.dcap:", window.DatacapHostedWebToken);
|
|
3270
3264
|
};
|
|
3271
3265
|
script2.onerror = (err) => {
|
|
3272
3266
|
console.error("\u274C DataCap script failed to load", err);
|
|
3273
3267
|
};
|
|
3274
3268
|
document.head.appendChild(script2);
|
|
3275
3269
|
} else {
|
|
3276
|
-
console.log("\u{1F7E1} Script already exists in DOM.");
|
|
3277
3270
|
scriptLoaded = true;
|
|
3278
|
-
console.log("\u{1F535} scriptLoaded flag updated to:", scriptLoaded);
|
|
3279
|
-
console.log("\u{1F535} window.dcap:", window.dcap);
|
|
3280
3271
|
}
|
|
3281
3272
|
}, []);
|
|
3282
3273
|
return null;
|
|
@@ -3386,7 +3377,6 @@ var DataCapFields = ({
|
|
|
3386
3377
|
}
|
|
3387
3378
|
`;
|
|
3388
3379
|
}
|
|
3389
|
-
console.log(customCSS, "customcss");
|
|
3390
3380
|
const initialize = async () => {
|
|
3391
3381
|
setLoader == null ? void 0 : setLoader(true);
|
|
3392
3382
|
setIframeReady(false);
|
|
@@ -8573,7 +8563,6 @@ function SkyChargewidgetstyles() {
|
|
|
8573
8563
|
font-family: 'Inter', sans-serif !important;
|
|
8574
8564
|
}
|
|
8575
8565
|
.frac-form .form-group-frac{
|
|
8576
|
-
margin:0 !important;
|
|
8577
8566
|
padding: 5px 0;
|
|
8578
8567
|
}
|
|
8579
8568
|
.frac-form .mb-4{
|
|
@@ -8897,7 +8886,6 @@ function SkyChargewidgetstyles() {
|
|
|
8897
8886
|
.form-control-frac{box-sizing: border-box ;}
|
|
8898
8887
|
#PaymentForm .form-group-frac{
|
|
8899
8888
|
padding:5px 0 ;
|
|
8900
|
-
matgin: 0 !important
|
|
8901
8889
|
}
|
|
8902
8890
|
|
|
8903
8891
|
.toggle-label {
|
|
@@ -9767,7 +9755,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9767
9755
|
public_key_pem: ((_b2 = (_a2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.publicKeyPem) || ((_d2 = (_c2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.public_key_pem),
|
|
9768
9756
|
session_key: (_f2 = (_e2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _e2.data) == null ? void 0 : _f2.session_key
|
|
9769
9757
|
};
|
|
9770
|
-
debugger;
|
|
9771
9758
|
let three_ds_data = null;
|
|
9772
9759
|
if (require3ds) {
|
|
9773
9760
|
if (typeof window !== "undefined" && typeof navigator !== "undefined") {
|
|
@@ -9889,7 +9876,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9889
9876
|
pass_fee
|
|
9890
9877
|
}
|
|
9891
9878
|
});
|
|
9892
|
-
debugger;
|
|
9893
9879
|
if ((result == null ? void 0 : result.status) == 200) {
|
|
9894
9880
|
let gatewayToken = (_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.gateway_token;
|
|
9895
9881
|
let paymentGateway2 = (_d2 = (_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.paymentGateway;
|
|
@@ -10126,6 +10112,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10126
10112
|
setActive("card");
|
|
10127
10113
|
setActiveinCard("list");
|
|
10128
10114
|
setCardList(cardlists);
|
|
10115
|
+
setLoadingIframe(false);
|
|
10129
10116
|
} else {
|
|
10130
10117
|
setActive("card");
|
|
10131
10118
|
setCardList([]);
|
|
@@ -10475,6 +10462,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10475
10462
|
styles: {}
|
|
10476
10463
|
});
|
|
10477
10464
|
}, []);
|
|
10465
|
+
console.log(activeinCard === "list", "activeinCard", activeList);
|
|
10478
10466
|
return /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10479
10467
|
initialLoader && /* @__PURE__ */ jsx32(Loader_default, { loading: initialLoader }),
|
|
10480
10468
|
error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose }) }),
|
|
@@ -10680,7 +10668,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10680
10668
|
{
|
|
10681
10669
|
isOpen: show,
|
|
10682
10670
|
tokenKey: dcToken,
|
|
10683
|
-
setLoader: setLoadingIframe
|
|
10671
|
+
setLoader: activeinCard === "form" ? setLoadingIframe : null
|
|
10684
10672
|
}
|
|
10685
10673
|
) }),
|
|
10686
10674
|
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
@@ -10756,12 +10744,12 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10756
10744
|
minHeight: "444px",
|
|
10757
10745
|
maxHeight: "444px"
|
|
10758
10746
|
}, children: [
|
|
10759
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10747
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10760
10748
|
/* @__PURE__ */ jsx32("label", { htmlFor: "nameonaccount", children: "Name on account" }),
|
|
10761
10749
|
/* @__PURE__ */ jsx32("input", { type: "text", id: "nameonaccount", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", name: "name", value: (_l = achData == null ? void 0 : achData.name) != null ? _l : "", onChange: handleChangeAch }),
|
|
10762
10750
|
(achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
|
|
10763
10751
|
] }),
|
|
10764
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10752
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10765
10753
|
/* @__PURE__ */ jsx32("label", { htmlFor: "routingnumber", children: "Routing number" }),
|
|
10766
10754
|
/* @__PURE__ */ jsx32(
|
|
10767
10755
|
"input",
|
|
@@ -10778,7 +10766,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10778
10766
|
),
|
|
10779
10767
|
(achError == null ? void 0 : achError.routingNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.routingNumber })
|
|
10780
10768
|
] }),
|
|
10781
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10769
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10782
10770
|
/* @__PURE__ */ jsx32("label", { htmlFor: "accountnumber", children: "Account number" }),
|
|
10783
10771
|
/* @__PURE__ */ jsx32(
|
|
10784
10772
|
"input",
|
|
@@ -10795,7 +10783,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10795
10783
|
),
|
|
10796
10784
|
(achError == null ? void 0 : achError.accountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.accountNumber })
|
|
10797
10785
|
] }),
|
|
10798
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10786
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10799
10787
|
/* @__PURE__ */ jsx32("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
|
|
10800
10788
|
/* @__PURE__ */ jsx32(
|
|
10801
10789
|
"input",
|
|
@@ -10812,7 +10800,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10812
10800
|
),
|
|
10813
10801
|
(achError == null ? void 0 : achError.confirmAccountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.confirmAccountNumber })
|
|
10814
10802
|
] }),
|
|
10815
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10803
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10816
10804
|
/* @__PURE__ */ jsx32("label", { htmlFor: "bankname", children: "Bank name" }),
|
|
10817
10805
|
/* @__PURE__ */ jsx32(
|
|
10818
10806
|
"input",
|
|
@@ -10829,7 +10817,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10829
10817
|
),
|
|
10830
10818
|
(achError == null ? void 0 : achError.bankName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.bankName })
|
|
10831
10819
|
] }),
|
|
10832
|
-
((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10820
|
+
((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10833
10821
|
/* @__PURE__ */ jsx32("label", { htmlFor: "companyName", children: "Company name" }),
|
|
10834
10822
|
/* @__PURE__ */ jsx32(
|
|
10835
10823
|
"input",
|
|
@@ -10846,18 +10834,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10846
10834
|
),
|
|
10847
10835
|
(achError == null ? void 0 : achError.companyName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.companyName })
|
|
10848
10836
|
] }),
|
|
10849
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10837
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10850
10838
|
/* @__PURE__ */ jsx32("label", { htmlFor: "accounttype", children: "Select account type" }),
|
|
10851
10839
|
/* @__PURE__ */ jsxs19("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_r = achData == null ? void 0 : achData.accountType) != null ? _r : "", onChange: handleChangeAch, children: [
|
|
10852
10840
|
/* @__PURE__ */ jsx32("option", { value: "", children: "Select account" }),
|
|
10853
10841
|
accountTypes.map((type) => /* @__PURE__ */ jsx32("option", { value: type.value, children: type.label }, type.value))
|
|
10854
10842
|
] })
|
|
10855
10843
|
] }),
|
|
10856
|
-
customerId && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac
|
|
10844
|
+
customerId && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
|
|
10857
10845
|
/* @__PURE__ */ jsx32("input", { type: "checkbox", id: "saveACH", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHinfo, onChange: (e) => setSaveACHinfo(e.target.checked) }),
|
|
10858
10846
|
/* @__PURE__ */ jsx32("label", { className: "saveachlabel", htmlFor: "saveACH", children: "Save ACH" })
|
|
10859
10847
|
] }),
|
|
10860
|
-
saveACHinfo && /* @__PURE__ */ jsx32("div", { className: "form-group-frac
|
|
10848
|
+
saveACHinfo && /* @__PURE__ */ jsx32("div", { className: "form-group-frac saveachtext", children: /* @__PURE__ */ jsxs19("p", { children: [
|
|
10861
10849
|
"If checked, I agree to give the ",
|
|
10862
10850
|
/* @__PURE__ */ jsx32("b", { children: merchantName || "merchant" }),
|
|
10863
10851
|
" permission to charge this bank account for agreed-upon purchases in the future."
|