@fractalpay/fractalpay-next-dev 0.0.281 → 0.0.282
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 +37 -6
- 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.282",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -215,6 +215,10 @@ var LoaderStyle = (props) => {
|
|
|
215
215
|
|
|
216
216
|
.loader-text {
|
|
217
217
|
margin-top: 8px;
|
|
218
|
+
color: #1A1226;
|
|
219
|
+
text-transform: uppercase;
|
|
220
|
+
font-weight: 600;
|
|
221
|
+
font-family: 'IBM Plex Mono', monospace;
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
.loader-content {
|
|
@@ -2707,7 +2711,17 @@ function SuccessMszStyle() {
|
|
|
2707
2711
|
gap: 6px;
|
|
2708
2712
|
background-color: #161616;
|
|
2709
2713
|
color: #fff;
|
|
2710
|
-
}
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
#receipt-debit-note {
|
|
2718
|
+
font-family: 'Inter', sans-serif;
|
|
2719
|
+
font-size: 11px;
|
|
2720
|
+
color: #49B182;
|
|
2721
|
+
margin-top: 2px;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
` });
|
|
2711
2725
|
}
|
|
2712
2726
|
|
|
2713
2727
|
// src/app/components/SuccessMessage/HandleSubmit.tsx
|
|
@@ -2731,7 +2745,7 @@ function HandleSubmit(event, key, tranId) {
|
|
|
2731
2745
|
|
|
2732
2746
|
// src/app/components/SuccessMessage/SuccessMsz.tsx
|
|
2733
2747
|
import { Fragment as Fragment5, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2734
|
-
function SuccessMsz({ onClose, tranId }) {
|
|
2748
|
+
function SuccessMsz({ onClose, tranId, isDebitAdjusted = false }) {
|
|
2735
2749
|
return /* @__PURE__ */ jsxs5(Fragment5, { children: [
|
|
2736
2750
|
/* @__PURE__ */ jsx10(SuccessMszStyle, {}),
|
|
2737
2751
|
/* @__PURE__ */ jsxs5("div", { className: "payment-msg-container", children: [
|
|
@@ -2758,7 +2772,20 @@ function SuccessMsz({ onClose, tranId }) {
|
|
|
2758
2772
|
/* @__PURE__ */ jsx10("br", {}),
|
|
2759
2773
|
"was successful"
|
|
2760
2774
|
] }),
|
|
2761
|
-
/* @__PURE__ */
|
|
2775
|
+
/* @__PURE__ */ jsxs5("h6", { className: "charge-payment-success-subtext", children: [
|
|
2776
|
+
"We\u2019ve processed your charge",
|
|
2777
|
+
isDebitAdjusted && /* @__PURE__ */ jsxs5(Fragment5, { children: [
|
|
2778
|
+
/* @__PURE__ */ jsx10("br", {}),
|
|
2779
|
+
/* @__PURE__ */ jsx10(
|
|
2780
|
+
"span",
|
|
2781
|
+
{
|
|
2782
|
+
id: "receipt-debit-note",
|
|
2783
|
+
className: "charge-payment-success-subtext",
|
|
2784
|
+
children: "No surcharge \u2014 debit card"
|
|
2785
|
+
}
|
|
2786
|
+
)
|
|
2787
|
+
] })
|
|
2788
|
+
] }),
|
|
2762
2789
|
/* @__PURE__ */ jsxs5("div", { className: "charge-success-payment-button-div", children: [
|
|
2763
2790
|
/* @__PURE__ */ jsxs5("button", { className: "charge-success-btn1", onClick: (e) => HandleSubmit(e, "print", tranId), children: [
|
|
2764
2791
|
/* @__PURE__ */ jsxs5(
|
|
@@ -3645,6 +3672,7 @@ function GetPaymentPage(props) {
|
|
|
3645
3672
|
const [bankFeeAmount, setBankFeeAmount] = useState4(0);
|
|
3646
3673
|
const [paymentData, setPaymentData] = useState4();
|
|
3647
3674
|
let [tranId, setTranId] = useState4("");
|
|
3675
|
+
let [isDebitAdjusted, setIsDebitAdjusted] = useState4(false);
|
|
3648
3676
|
const tokenizerRef = useRef3(null);
|
|
3649
3677
|
const fractalStyles = {
|
|
3650
3678
|
input: {
|
|
@@ -3765,6 +3793,7 @@ function GetPaymentPage(props) {
|
|
|
3765
3793
|
setSaveACHConsent1(false);
|
|
3766
3794
|
setErrorBankConsentOther("");
|
|
3767
3795
|
setLoderText("");
|
|
3796
|
+
setIsDebitAdjusted(false);
|
|
3768
3797
|
};
|
|
3769
3798
|
const handleShow = () => setShow(true);
|
|
3770
3799
|
const handletabchange = (id) => {
|
|
@@ -3991,11 +4020,13 @@ function GetPaymentPage(props) {
|
|
|
3991
4020
|
};
|
|
3992
4021
|
socketClient_default.emit("sendMessage", requestOptions2);
|
|
3993
4022
|
socketClient_default.on("chargeviafractalgateway", (data) => {
|
|
3994
|
-
var _a3;
|
|
4023
|
+
var _a3, _b3;
|
|
3995
4024
|
if (isValidJson(data == null ? void 0 : data.data)) {
|
|
3996
4025
|
let paymentRes = JSON.parse(data == null ? void 0 : data.data);
|
|
4026
|
+
console.log(paymentRes, "paymentRes");
|
|
3997
4027
|
if (paymentRes == null ? void 0 : paymentRes.result) {
|
|
3998
4028
|
setTranId((_a3 = paymentRes == null ? void 0 : paymentRes.data) == null ? void 0 : _a3.transactionId);
|
|
4029
|
+
setIsDebitAdjusted((_b3 = paymentRes == null ? void 0 : paymentRes.data) == null ? void 0 : _b3.is_debit_adjusted);
|
|
3999
4030
|
setSuccess(true);
|
|
4000
4031
|
setLoading2(false);
|
|
4001
4032
|
} else {
|
|
@@ -4353,7 +4384,7 @@ function GetPaymentPage(props) {
|
|
|
4353
4384
|
errorIframe && /* @__PURE__ */ jsx19("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx19(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
|
|
4354
4385
|
setErrorIframe("");
|
|
4355
4386
|
} }) }),
|
|
4356
|
-
success && /* @__PURE__ */ jsx19(SuccessMsz, { onClose: handleClose, tranId }),
|
|
4387
|
+
success && /* @__PURE__ */ jsx19(SuccessMsz, { onClose: handleClose, tranId, isDebitAdjusted }),
|
|
4357
4388
|
!error && !errorIframe && !success && /* @__PURE__ */ jsxs11(Fragment11, { children: [
|
|
4358
4389
|
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx19(Loader_default, { loading: loading || loading2 || loadingIframe, loaderText }),
|
|
4359
4390
|
/* @__PURE__ */ jsx19("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs11("div", { className: "parent-pay-container", children: [
|