@fractalpay/fractalpay-next-dev 0.0.257 → 0.0.258
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 +7 -9
- 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.258",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -2993,7 +2993,6 @@ var CardBankRadio = (_a) => {
|
|
|
2993
2993
|
] }),
|
|
2994
2994
|
/* @__PURE__ */ jsx13("div", { className: "frac-card-label", children: /* @__PURE__ */ jsx13("div", { className: "frac-card-label-amount", children: formatUSD(props.amount) }) })
|
|
2995
2995
|
] }),
|
|
2996
|
-
savingsText ? /* @__PURE__ */ jsx13("button", { type: "button", className: savingsBadgeClass, children: savingsText }) : null,
|
|
2997
2996
|
/* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("input", { name: "paymenttype", checked: props.activetab === props.value, type: "hidden", value: props.value, onChange: (e) => {
|
|
2998
2997
|
props.onChange(e.target.value);
|
|
2999
2998
|
} }) })
|
|
@@ -3005,7 +3004,6 @@ var CardBankRadio = (_a) => {
|
|
|
3005
3004
|
/* @__PURE__ */ jsx13("div", { className: "frac-card-label-amount", children: formatUSD(props.amount) })
|
|
3006
3005
|
] })
|
|
3007
3006
|
] }),
|
|
3008
|
-
savingsText ? /* @__PURE__ */ jsx13("button", { type: "button", className: savingsBadgeClass, children: savingsText }) : null,
|
|
3009
3007
|
/* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("input", { name: "paymenttype", checked: props.activetab === props.value, type: "radio", value: props.value, onChange: (e) => {
|
|
3010
3008
|
props.onChange(e.target.value);
|
|
3011
3009
|
} }) })
|
|
@@ -3784,7 +3782,7 @@ function GetPaymentPage(props) {
|
|
|
3784
3782
|
}
|
|
3785
3783
|
}
|
|
3786
3784
|
if (!isBankConsentChecked) {
|
|
3787
|
-
setErrorBankConsent("Above consent is
|
|
3785
|
+
setErrorBankConsent("Above consent is required");
|
|
3788
3786
|
}
|
|
3789
3787
|
setAchError(errors);
|
|
3790
3788
|
return Object.keys(errors).length > 0 || !isBankConsentChecked;
|
|
@@ -7700,7 +7698,7 @@ function PartialPayment(props) {
|
|
|
7700
7698
|
}
|
|
7701
7699
|
}
|
|
7702
7700
|
if (!isBankConsentChecked) {
|
|
7703
|
-
setErrorBankConsent("Above consent is
|
|
7701
|
+
setErrorBankConsent("Above consent is required");
|
|
7704
7702
|
}
|
|
7705
7703
|
setAchError(errors);
|
|
7706
7704
|
return Object.keys(errors).length > 0 || !isBankConsentChecked;
|
|
@@ -10086,16 +10084,16 @@ function ApplePayButton({
|
|
|
10086
10084
|
console.log("\u{1F7E1} STEP 2: Response status:", res.status);
|
|
10087
10085
|
const data = await res.json();
|
|
10088
10086
|
console.log("RAW session response:", JSON.stringify(data));
|
|
10089
|
-
console.log("\u{1F7E2} STEP 3: Session response:
|
|
10087
|
+
console.log("\u{1F7E2} STEP 3: Session response: data fetched");
|
|
10090
10088
|
const merchantSession = (_a = data == null ? void 0 : data.data) != null ? _a : data;
|
|
10091
|
-
console.log("\u{1F7E2} STEP 3: Session response:2", merchantSession);
|
|
10092
10089
|
if (!merchantSession || typeof merchantSession !== "object") {
|
|
10093
10090
|
console.error("\u274C Bad session shape");
|
|
10094
10091
|
event.complete(null);
|
|
10095
10092
|
return;
|
|
10096
10093
|
}
|
|
10097
|
-
console.log("\u{1F7E2} STEP 4: Completing merchant validation");
|
|
10094
|
+
console.log("\u{1F7E2} STEP 4.1: Completing merchant validation");
|
|
10098
10095
|
event.complete(merchantSession);
|
|
10096
|
+
console.log("\u{1F7E2} STEP 4.2: Completed merchant validation");
|
|
10099
10097
|
} catch (err) {
|
|
10100
10098
|
console.log("\u274C Merchant validation failed:", err == null ? void 0 : err.message);
|
|
10101
10099
|
event.complete(null);
|
|
@@ -10399,7 +10397,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10399
10397
|
}
|
|
10400
10398
|
}
|
|
10401
10399
|
if (!isBankConsentChecked) {
|
|
10402
|
-
setErrorBankConsent("Above consent is
|
|
10400
|
+
setErrorBankConsent("Above consent is required");
|
|
10403
10401
|
}
|
|
10404
10402
|
setAchError(errors);
|
|
10405
10403
|
return Object.keys(errors).length > 0 || !isBankConsentChecked;
|