@fractalpay/fractalpay-next-dev 0.0.250 → 0.0.251
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 +25 -28
- 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.251",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -218,8 +218,8 @@ var Loader_default = Loader;
|
|
|
218
218
|
var { name } = require_package();
|
|
219
219
|
var S3Url = "https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";
|
|
220
220
|
if (name === "@fractalpay/fractalpay-next-dev") {
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
baseUrl = "http://localhost:8082/";
|
|
222
|
+
masterBaseUrl = "http://localhost:8081/";
|
|
223
223
|
fractalGatewayUrl = "https://api-dev.merchant-trends.com/";
|
|
224
224
|
datacapUrl = "https://token-cert.dcap.com/v1/client";
|
|
225
225
|
threedsSecurePublicKey = "pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw";
|
|
@@ -7371,7 +7371,7 @@ import { IoArrowBack as IoArrowBack3 } from "react-icons/io5";
|
|
|
7371
7371
|
import { NumericFormat } from "react-number-format";
|
|
7372
7372
|
import { Fragment as Fragment17, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7373
7373
|
function PartialPayment(props) {
|
|
7374
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z
|
|
7374
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
7375
7375
|
const buttonRef = useRef8(null);
|
|
7376
7376
|
useEffect13(() => {
|
|
7377
7377
|
if (props.onTriggerPay) {
|
|
@@ -8157,10 +8157,7 @@ function PartialPayment(props) {
|
|
|
8157
8157
|
] }),
|
|
8158
8158
|
/* @__PURE__ */ jsxs17("div", { className: "amt-pay-con", children: [
|
|
8159
8159
|
/* @__PURE__ */ jsx28("div", { className: "pay-amount-conatiner", children: /* @__PURE__ */ jsx28("small", { className: "pay-payment-amount", children: "Select payment type" }) }),
|
|
8160
|
-
/* @__PURE__ */
|
|
8161
|
-
/* @__PURE__ */ jsx28(CardBankRadio, { label: "Card", amount: (_a = Number(aftertaxAmount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }),
|
|
8162
|
-
(paymentData == null ? void 0 : paymentData.isSkyFiAccount) && /* @__PURE__ */ jsx28(CardBankRadio, { label: "Bank", amount: (_b = Number(cashDiscount)) == null ? void 0 : _b.toFixed(2), value: "ach", onChange: handletabchange, activetab })
|
|
8163
|
-
] }),
|
|
8160
|
+
/* @__PURE__ */ jsx28("div", { className: "frac-card-bank-radio-main", children: /* @__PURE__ */ jsx28(CardBankRadio, { label: "Card", amount: (_a = Number(aftertaxAmount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }) }),
|
|
8164
8161
|
numberToBoolean(paymentData == null ? void 0 : paymentData.showSurcharge) ? cashDiscount && cashDiscount > 0 && (props == null ? void 0 : props.pass_fee) ? /* @__PURE__ */ jsxs17("div", { className: "frac-cash-discount-fee", children: [
|
|
8165
8162
|
/* @__PURE__ */ jsxs17("small", { children: [
|
|
8166
8163
|
activetab === "card" ? "Cash Discount" : "Cash Discount Savings",
|
|
@@ -8229,7 +8226,7 @@ function PartialPayment(props) {
|
|
|
8229
8226
|
/* @__PURE__ */ jsx28("small", { className: "pay-payment-amount", children: "Payment Amount" }),
|
|
8230
8227
|
/* @__PURE__ */ jsxs17("strong", { className: "pay-amount", children: [
|
|
8231
8228
|
"$",
|
|
8232
|
-
(
|
|
8229
|
+
(_b = Number(aftertaxAmount)) == null ? void 0 : _b.toFixed(2)
|
|
8233
8230
|
] })
|
|
8234
8231
|
] }),
|
|
8235
8232
|
activetab != "ach" && /* @__PURE__ */ jsxs17("div", { children: [
|
|
@@ -8271,7 +8268,7 @@ function PartialPayment(props) {
|
|
|
8271
8268
|
/* @__PURE__ */ jsx28("small", { className: "pay-payment-amount", children: "Payment Amount" }),
|
|
8272
8269
|
/* @__PURE__ */ jsxs17("strong", { className: "pay-amount", children: [
|
|
8273
8270
|
"$",
|
|
8274
|
-
(
|
|
8271
|
+
(_c = Number(aftertaxAmount)) == null ? void 0 : _c.toFixed(2)
|
|
8275
8272
|
] })
|
|
8276
8273
|
] }),
|
|
8277
8274
|
/* @__PURE__ */ jsxs17("div", { children: [
|
|
@@ -8306,7 +8303,7 @@ function PartialPayment(props) {
|
|
|
8306
8303
|
/* @__PURE__ */ jsx28(CardList, { listHeading: "Cards", paymentGateway: paymentData == null ? void 0 : paymentData.paymentGateway, ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
|
|
8307
8304
|
setActiveinCard("form");
|
|
8308
8305
|
} }),
|
|
8309
|
-
/* @__PURE__ */ jsx28("div", { className: "form-group", style: { padding: "0" }, children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlepayment, children: partialAmount && !partialError ? formatUSD((
|
|
8306
|
+
/* @__PURE__ */ jsx28("div", { className: "form-group", style: { padding: "0" }, children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlepayment, children: partialAmount && !partialError ? formatUSD((_d = Number(partialAmount)) == null ? void 0 : _d.toFixed(2)) : formatUSD((_e = Number(aftertaxAmount)) == null ? void 0 : _e.toFixed(2)) }) })
|
|
8310
8307
|
] }) : (paymentData == null ? void 0 : paymentData.paymentGateway) === 32 ? /* @__PURE__ */ jsxs17(
|
|
8311
8308
|
"form",
|
|
8312
8309
|
{
|
|
@@ -8350,14 +8347,14 @@ function PartialPayment(props) {
|
|
|
8350
8347
|
maxLength: 100,
|
|
8351
8348
|
placeholder: "Order Id",
|
|
8352
8349
|
disabled: true,
|
|
8353
|
-
value: (
|
|
8350
|
+
value: (_f = props == null ? void 0 : props.orderID) != null ? _f : "",
|
|
8354
8351
|
style: { background: "#F6F6F7", color: "#727272" }
|
|
8355
8352
|
}
|
|
8356
8353
|
)
|
|
8357
8354
|
] }),
|
|
8358
8355
|
/* @__PURE__ */ jsxs17("div", { className: "form-group", children: [
|
|
8359
8356
|
/* @__PURE__ */ jsx28("label", { htmlFor: "zip", children: "ZIP" }),
|
|
8360
|
-
/* @__PURE__ */ jsx28("input", { type: "text", className: "form-control", maxLength: 100, placeholder: "000000", value: (
|
|
8357
|
+
/* @__PURE__ */ jsx28("input", { type: "text", className: "form-control", maxLength: 100, placeholder: "000000", value: (_g = cardData == null ? void 0 : cardData.zipCode) != null ? _g : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
|
|
8361
8358
|
(cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx28("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode })
|
|
8362
8359
|
] }),
|
|
8363
8360
|
(props == null ? void 0 : props.customerId) && /* @__PURE__ */ jsx28("div", { className: "form-group", children: /* @__PURE__ */ jsxs17("div", { style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
|
|
@@ -8384,8 +8381,8 @@ function PartialPayment(props) {
|
|
|
8384
8381
|
] }) })
|
|
8385
8382
|
] }),
|
|
8386
8383
|
/* @__PURE__ */ jsxs17("div", { className: "form-group", style: { marginTop: "20px", padding: "0" }, children: [
|
|
8387
|
-
(paymentData == null ? void 0 : paymentData.paymentDeviceList) && ((
|
|
8388
|
-
/* @__PURE__ */ jsx28("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount && !partialError ? formatUSD((
|
|
8384
|
+
(paymentData == null ? void 0 : paymentData.paymentDeviceList) && ((_h = paymentData == null ? void 0 : paymentData.paymentDeviceList) == null ? void 0 : _h.length) > 0 && /* @__PURE__ */ jsx28("button", { type: "button", style: { marginBottom: "10px" }, className: "pay-button", onClick: () => setActiveForm(!activeForm), children: activeForm ? "Pay With Reader" : "Pay With Card" }),
|
|
8385
|
+
/* @__PURE__ */ jsx28("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount && !partialError ? formatUSD((_i = Number(partialAmount)) == null ? void 0 : _i.toFixed(2)) : formatUSD((_j = Number(aftertaxAmount)) == null ? void 0 : _j.toFixed(2)) })
|
|
8389
8386
|
] })
|
|
8390
8387
|
]
|
|
8391
8388
|
}
|
|
@@ -8424,14 +8421,14 @@ function PartialPayment(props) {
|
|
|
8424
8421
|
maxLength: 100,
|
|
8425
8422
|
placeholder: "Order Id",
|
|
8426
8423
|
disabled: true,
|
|
8427
|
-
value: (
|
|
8424
|
+
value: (_k = props == null ? void 0 : props.orderID) != null ? _k : "",
|
|
8428
8425
|
style: { background: "#F6F6F7", color: "#727272" }
|
|
8429
8426
|
}
|
|
8430
8427
|
)
|
|
8431
8428
|
] }),
|
|
8432
8429
|
/* @__PURE__ */ jsxs17("div", { className: "form-group", children: [
|
|
8433
8430
|
/* @__PURE__ */ jsx28("label", { htmlFor: "zip", children: "ZIP" }),
|
|
8434
|
-
/* @__PURE__ */ jsx28("input", { type: "text", className: "form-control", maxLength: 100, placeholder: "000000", value: (
|
|
8431
|
+
/* @__PURE__ */ jsx28("input", { type: "text", className: "form-control", maxLength: 100, placeholder: "000000", value: (_l = cardData == null ? void 0 : cardData.zipCode) != null ? _l : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
|
|
8435
8432
|
(cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx28("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode })
|
|
8436
8433
|
] }),
|
|
8437
8434
|
(props == null ? void 0 : props.customerId) && /* @__PURE__ */ jsx28("div", { className: "form-group", children: /* @__PURE__ */ jsxs17("div", { style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
|
|
@@ -8458,8 +8455,8 @@ function PartialPayment(props) {
|
|
|
8458
8455
|
] }) })
|
|
8459
8456
|
] }),
|
|
8460
8457
|
/* @__PURE__ */ jsxs17("div", { className: "form-group", style: { marginTop: "20px", padding: "0" }, children: [
|
|
8461
|
-
(paymentData == null ? void 0 : paymentData.paymentDeviceList) && ((
|
|
8462
|
-
/* @__PURE__ */ jsx28("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount && !partialError ? formatUSD((
|
|
8458
|
+
(paymentData == null ? void 0 : paymentData.paymentDeviceList) && ((_m = paymentData == null ? void 0 : paymentData.paymentDeviceList) == null ? void 0 : _m.length) > 0 && /* @__PURE__ */ jsx28("button", { type: "button", style: { marginBottom: "10px" }, className: "pay-button", onClick: () => setActiveForm(!activeForm), children: activeForm ? "Pay With Reader" : "Pay With Card" }),
|
|
8459
|
+
/* @__PURE__ */ jsx28("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount && !partialError ? formatUSD((_n = Number(partialAmount)) == null ? void 0 : _n.toFixed(2)) : formatUSD((_o = Number(aftertaxAmount)) == null ? void 0 : _o.toFixed(2)) })
|
|
8463
8460
|
] })
|
|
8464
8461
|
] })
|
|
8465
8462
|
] }),
|
|
@@ -8475,7 +8472,7 @@ function PartialPayment(props) {
|
|
|
8475
8472
|
/* @__PURE__ */ jsx28(CardList, { listHeading: "Banks", paymentGateway: paymentData == null ? void 0 : paymentData.paymentGateway, ListItems: bankList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Bank", otherButtonAction: () => {
|
|
8476
8473
|
setActiveinBank("form");
|
|
8477
8474
|
} }),
|
|
8478
|
-
/* @__PURE__ */ jsx28("div", { className: "form-group", style: { padding: "0" }, children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlepayment, children: partialAmount && !partialError ? formatUSD((
|
|
8475
|
+
/* @__PURE__ */ jsx28("div", { className: "form-group", style: { padding: "0" }, children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlepayment, children: partialAmount && !partialError ? formatUSD((_p = Number(partialAmount)) == null ? void 0 : _p.toFixed(2)) : formatUSD((_q = Number(cashDiscount)) == null ? void 0 : _q.toFixed(2)) }) })
|
|
8479
8476
|
] }) : /* @__PURE__ */ jsxs17("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
|
|
8480
8477
|
if (e.key === "Enter" && loading2) {
|
|
8481
8478
|
e.preventDefault();
|
|
@@ -8488,7 +8485,7 @@ function PartialPayment(props) {
|
|
|
8488
8485
|
}, children: [
|
|
8489
8486
|
/* @__PURE__ */ jsxs17("div", { className: "form-group mb-4", children: [
|
|
8490
8487
|
/* @__PURE__ */ jsx28("label", { htmlFor: "nameonaccount", children: "Name on account" }),
|
|
8491
|
-
/* @__PURE__ */ jsx28("input", { type: "text", id: "nameonaccount", className: "form-control", maxLength: 100, placeholder: "John Doe", name: "name", value: (
|
|
8488
|
+
/* @__PURE__ */ jsx28("input", { type: "text", id: "nameonaccount", className: "form-control", maxLength: 100, placeholder: "John Doe", name: "name", value: (_r = achData == null ? void 0 : achData.name) != null ? _r : "", onChange: handleChangeAch }),
|
|
8492
8489
|
(achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx28("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
|
|
8493
8490
|
] }),
|
|
8494
8491
|
/* @__PURE__ */ jsxs17("div", { className: "form-group mb-4", children: [
|
|
@@ -8502,7 +8499,7 @@ function PartialPayment(props) {
|
|
|
8502
8499
|
maxLength: 9,
|
|
8503
8500
|
placeholder: "000000000",
|
|
8504
8501
|
name: "routingNumber",
|
|
8505
|
-
value: (
|
|
8502
|
+
value: (_s = achData == null ? void 0 : achData.routingNumber) != null ? _s : "",
|
|
8506
8503
|
onChange: handleChangeAch
|
|
8507
8504
|
}
|
|
8508
8505
|
),
|
|
@@ -8519,7 +8516,7 @@ function PartialPayment(props) {
|
|
|
8519
8516
|
maxLength: 16,
|
|
8520
8517
|
placeholder: "0000000000",
|
|
8521
8518
|
name: "accountNumber",
|
|
8522
|
-
value: (
|
|
8519
|
+
value: (_t = achData == null ? void 0 : achData.accountNumber) != null ? _t : "",
|
|
8523
8520
|
onChange: handleChangeAch
|
|
8524
8521
|
}
|
|
8525
8522
|
),
|
|
@@ -8536,7 +8533,7 @@ function PartialPayment(props) {
|
|
|
8536
8533
|
maxLength: 16,
|
|
8537
8534
|
placeholder: "0000000000",
|
|
8538
8535
|
name: "confirmAccountNumber",
|
|
8539
|
-
value: (
|
|
8536
|
+
value: (_u = achData == null ? void 0 : achData.confirmAccountNumber) != null ? _u : "",
|
|
8540
8537
|
onChange: handleChangeAch
|
|
8541
8538
|
}
|
|
8542
8539
|
),
|
|
@@ -8553,7 +8550,7 @@ function PartialPayment(props) {
|
|
|
8553
8550
|
maxLength: 100,
|
|
8554
8551
|
placeholder: "My Bank",
|
|
8555
8552
|
name: "bankName",
|
|
8556
|
-
value: (
|
|
8553
|
+
value: (_v = achData == null ? void 0 : achData.bankName) != null ? _v : "",
|
|
8557
8554
|
onChange: handleChangeAch
|
|
8558
8555
|
}
|
|
8559
8556
|
),
|
|
@@ -8570,7 +8567,7 @@ function PartialPayment(props) {
|
|
|
8570
8567
|
maxLength: 100,
|
|
8571
8568
|
placeholder: "My Company",
|
|
8572
8569
|
name: "companyName",
|
|
8573
|
-
value: (
|
|
8570
|
+
value: (_w = achData == null ? void 0 : achData.companyName) != null ? _w : "",
|
|
8574
8571
|
onChange: handleChangeAch
|
|
8575
8572
|
}
|
|
8576
8573
|
),
|
|
@@ -8578,7 +8575,7 @@ function PartialPayment(props) {
|
|
|
8578
8575
|
] }),
|
|
8579
8576
|
/* @__PURE__ */ jsxs17("div", { className: "form-group mb-4", children: [
|
|
8580
8577
|
/* @__PURE__ */ jsx28("label", { htmlFor: "accounttype", children: "Select account type" }),
|
|
8581
|
-
/* @__PURE__ */ jsxs17("select", { name: "accountType", id: "accounttype", className: "form-control", value: (
|
|
8578
|
+
/* @__PURE__ */ jsxs17("select", { name: "accountType", id: "accounttype", className: "form-control", value: (_x = achData == null ? void 0 : achData.accountType) != null ? _x : "", onChange: handleChangeAch, children: [
|
|
8582
8579
|
/* @__PURE__ */ jsx28("option", { value: "", children: "Select account" }),
|
|
8583
8580
|
accountTypes.map((type) => /* @__PURE__ */ jsx28("option", { value: type.value, children: type.label }, type.value))
|
|
8584
8581
|
] })
|
|
@@ -8612,7 +8609,7 @@ function PartialPayment(props) {
|
|
|
8612
8609
|
" to have my permission to charge this bank account for agreed upon purchases in the future."
|
|
8613
8610
|
] }) })
|
|
8614
8611
|
] }),
|
|
8615
|
-
/* @__PURE__ */ jsx28("div", { className: "form-group ", children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "20px 0 0" }, type: "submit", children: partialAmount && !partialError ? formatUSD((
|
|
8612
|
+
/* @__PURE__ */ jsx28("div", { className: "form-group ", children: /* @__PURE__ */ jsx28("button", { className: "pay-button", style: { margin: "20px 0 0" }, type: "submit", children: partialAmount && !partialError ? formatUSD((_y = Number(partialAmount)) == null ? void 0 : _y.toFixed(2)) : formatUSD((_z = Number(cashDiscount)) == null ? void 0 : _z.toFixed(2)) }) })
|
|
8616
8613
|
] })
|
|
8617
8614
|
] })
|
|
8618
8615
|
] }) }) })
|