@fractalpay/fractalpay-next-dev 0.0.222 → 0.0.224
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 +3 -15
- 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.224",
|
|
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);
|
|
@@ -6313,7 +6303,7 @@ function AddCardEasyPay(props) {
|
|
|
6313
6303
|
e.stopPropagation();
|
|
6314
6304
|
}
|
|
6315
6305
|
}, children: [
|
|
6316
|
-
/* @__PURE__ */ jsxs14("div", { style: { maxHeight: "
|
|
6306
|
+
/* @__PURE__ */ jsxs14("div", { style: { maxHeight: "450px", minHeight: "0" }, className: "card-scrl", children: [
|
|
6317
6307
|
/* @__PURE__ */ jsx24("div", { className: "form-group", style: { marginTop: "0", marginBottom: "10px" }, children: /* @__PURE__ */ jsx24(
|
|
6318
6308
|
DataCapFields,
|
|
6319
6309
|
{
|
|
@@ -6353,7 +6343,7 @@ function AddCardEasyPay(props) {
|
|
|
6353
6343
|
"input",
|
|
6354
6344
|
{
|
|
6355
6345
|
type: "text",
|
|
6356
|
-
id: "
|
|
6346
|
+
id: "",
|
|
6357
6347
|
name: "zipcode",
|
|
6358
6348
|
placeholder: "Zip",
|
|
6359
6349
|
value: (_b = cardData == null ? void 0 : cardData.zipCode) != null ? _b : "",
|
|
@@ -9765,7 +9755,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9765
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),
|
|
9766
9756
|
session_key: (_f2 = (_e2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _e2.data) == null ? void 0 : _f2.session_key
|
|
9767
9757
|
};
|
|
9768
|
-
debugger;
|
|
9769
9758
|
let three_ds_data = null;
|
|
9770
9759
|
if (require3ds) {
|
|
9771
9760
|
if (typeof window !== "undefined" && typeof navigator !== "undefined") {
|
|
@@ -9887,7 +9876,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9887
9876
|
pass_fee
|
|
9888
9877
|
}
|
|
9889
9878
|
});
|
|
9890
|
-
debugger;
|
|
9891
9879
|
if ((result == null ? void 0 : result.status) == 200) {
|
|
9892
9880
|
let gatewayToken = (_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.gateway_token;
|
|
9893
9881
|
let paymentGateway2 = (_d2 = (_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.paymentGateway;
|