@fractalpay/fractalpay-next-dev 0.0.229 → 0.0.231
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.d.ts +1 -3
- package/dist/index.js +400 -773
- 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.231",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -113,25 +113,8 @@ import { useState, useEffect } from "react";
|
|
|
113
113
|
import { jsx } from "react/jsx-runtime";
|
|
114
114
|
var LoaderStyle = (props) => {
|
|
115
115
|
return /* @__PURE__ */ jsx("style", { children: `
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
position: fixed; /* Fixed position to cover the viewport */
|
|
119
|
-
top: 0;
|
|
120
|
-
left: 0;
|
|
121
|
-
width: 100%;
|
|
122
|
-
height: 100%;
|
|
123
|
-
display: flex;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
align-items: center;
|
|
126
|
-
/* background: rgba(255, 255, 0, 0.01); Adjust the blur effect */
|
|
127
|
-
background-color: rgba(31, 29, 29, 0.52); /* Semi-transparent black background */
|
|
128
|
-
|
|
129
|
-
backdrop-filter: blur(0.5px); /* Blur effect */
|
|
130
|
-
z-index: 999999999999 !important; /* Ensure it's on top of other elements */
|
|
131
|
-
transform: translate(0%, 0%) !important
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.loader-dark {
|
|
116
|
+
|
|
117
|
+
.loader {
|
|
135
118
|
position: fixed; /* Fixed position to cover the viewport */
|
|
136
119
|
top: 0;
|
|
137
120
|
left: 0;
|
|
@@ -143,7 +126,7 @@ var LoaderStyle = (props) => {
|
|
|
143
126
|
/* background: rgba(255, 255, 0, 0.01); Adjust the blur effect */
|
|
144
127
|
background-color: rgba(31, 29, 29, 0.52); /* Semi-transparent black background */
|
|
145
128
|
|
|
146
|
-
backdrop-filter: blur(
|
|
129
|
+
backdrop-filter: blur(.5px); /* Blur effect */
|
|
147
130
|
z-index: 999999999999 !important; /* Ensure it's on top of other elements */
|
|
148
131
|
transform: translate(0%, 0%) !important
|
|
149
132
|
}
|
|
@@ -218,11 +201,10 @@ var LoaderStyle_default = LoaderStyle;
|
|
|
218
201
|
|
|
219
202
|
// src/app/components/Loader/Loader.tsx
|
|
220
203
|
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
221
|
-
var Loader = (
|
|
222
|
-
var _b = _a, { intensity = "light" } = _b, props = __objRest(_b, ["intensity"]);
|
|
204
|
+
var Loader = (props) => {
|
|
223
205
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
224
206
|
/* @__PURE__ */ jsx2(LoaderStyle_default, {}),
|
|
225
|
-
(props == null ? void 0 : props.loading) && /* @__PURE__ */ jsx2("div", { className:
|
|
207
|
+
(props == null ? void 0 : props.loading) && /* @__PURE__ */ jsx2("div", { className: "loader", children: /* @__PURE__ */ jsxs("div", { className: "lds-ellipsis", children: [
|
|
226
208
|
/* @__PURE__ */ jsx2("div", {}),
|
|
227
209
|
/* @__PURE__ */ jsx2("div", {}),
|
|
228
210
|
/* @__PURE__ */ jsx2("div", {}),
|
|
@@ -236,8 +218,8 @@ var Loader_default = Loader;
|
|
|
236
218
|
var { name } = require_package();
|
|
237
219
|
var S3Url = "https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";
|
|
238
220
|
if (name === "@fractalpay/fractalpay-next-dev") {
|
|
239
|
-
|
|
240
|
-
|
|
221
|
+
baseUrl = "http://192.168.1.64:8083/";
|
|
222
|
+
masterBaseUrl = "http://192.168.1.64:8082/";
|
|
241
223
|
fractalGatewayUrl = "https://api-dev.merchant-trends.com/";
|
|
242
224
|
datacapUrl = "https://token-cert.dcap.com/v1/client";
|
|
243
225
|
threedsSecurePublicKey = "pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw";
|
|
@@ -2924,7 +2906,7 @@ function ErrorCardMszStyle() {
|
|
|
2924
2906
|
|
|
2925
2907
|
// src/app/components/ErrorCardMessage/ErrorCardMessage.tsx
|
|
2926
2908
|
import { Fragment as Fragment6, jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2927
|
-
var ErrorCardMessage = ({ onClose, error
|
|
2909
|
+
var ErrorCardMessage = ({ onClose, error }) => {
|
|
2928
2910
|
return /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
2929
2911
|
/* @__PURE__ */ jsx12(ErrorCardMszStyle, {}),
|
|
2930
2912
|
/* @__PURE__ */ jsx12("div", { className: "card-error", children: /* @__PURE__ */ jsx12("div", { className: "payment-error-container", children: /* @__PURE__ */ jsxs6("div", { className: "error-icon", children: [
|
|
@@ -2933,7 +2915,7 @@ var ErrorCardMessage = ({ onClose, error, autoTrigger = false }) => {
|
|
|
2933
2915
|
/* @__PURE__ */ jsx12("div", { className: "payment-error-text", children: error }),
|
|
2934
2916
|
/* @__PURE__ */ jsx12("div", { className: "thank-you-text", children: "Try again later " })
|
|
2935
2917
|
] }),
|
|
2936
|
-
|
|
2918
|
+
/* @__PURE__ */ jsx12("div", { className: "error-btn-div", children: /* @__PURE__ */ jsx12("button", { onClick: onClose, children: "OK" }) })
|
|
2937
2919
|
] }) }) })
|
|
2938
2920
|
] });
|
|
2939
2921
|
};
|
|
@@ -2950,26 +2932,14 @@ var socketClient_default = socket;
|
|
|
2950
2932
|
|
|
2951
2933
|
// src/app/components/Atoms/CardBankRadio/CardBankRadio.tsx
|
|
2952
2934
|
import { Fragment as Fragment7, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2953
|
-
var CardBankRadio = (
|
|
2954
|
-
|
|
2955
|
-
return /* @__PURE__ */ jsx13(Fragment7, { children: /* @__PURE__ */ jsx13(
|
|
2935
|
+
var CardBankRadio = (props) => {
|
|
2936
|
+
return /* @__PURE__ */ jsx13(Fragment7, { children: /* @__PURE__ */ jsxs7(
|
|
2956
2937
|
"div",
|
|
2957
2938
|
{
|
|
2958
2939
|
className: `frac-card-bank-radio ${props.activetab === props.value ? "frac-active" : ""}`,
|
|
2959
2940
|
onClick: () => props.onChange(props.value),
|
|
2960
2941
|
role: "radio",
|
|
2961
|
-
children:
|
|
2962
|
-
/* @__PURE__ */ jsxs7("div", { className: "frac-card-title-main", children: [
|
|
2963
|
-
/* @__PURE__ */ jsxs7("div", { className: "box-inner-card-text", children: [
|
|
2964
|
-
/* @__PURE__ */ jsx13("img", { src: props.label.toLowerCase() === "card" ? defaultcard : props.label.toLowerCase() === "reader" ? pax : bankNew, className: "frac-payment-type-logo", alt: "" }),
|
|
2965
|
-
/* @__PURE__ */ jsx13("div", { className: "frac-card-label-text", children: props.label })
|
|
2966
|
-
] }),
|
|
2967
|
-
/* @__PURE__ */ jsx13("div", { className: "frac-card-label", children: /* @__PURE__ */ jsx13("div", { className: "frac-card-label-amount", children: formatUSD(props.amount) }) })
|
|
2968
|
-
] }),
|
|
2969
|
-
/* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("input", { name: "paymenttype", checked: props.activetab === props.value, type: "hidden", value: props.value, onChange: (e) => {
|
|
2970
|
-
props.onChange(e.target.value);
|
|
2971
|
-
} }) })
|
|
2972
|
-
] }) : /* @__PURE__ */ jsxs7(Fragment7, { children: [
|
|
2942
|
+
children: [
|
|
2973
2943
|
/* @__PURE__ */ jsxs7("div", { className: "frac-card-title-main", children: [
|
|
2974
2944
|
/* @__PURE__ */ jsx13("img", { src: props.label.toLowerCase() === "card" ? defaultcard : props.label.toLowerCase() === "reader" ? pax : bankNew, className: "frac-payment-type-logo", alt: "" }),
|
|
2975
2945
|
/* @__PURE__ */ jsxs7("div", { className: "frac-card-label", children: [
|
|
@@ -2980,7 +2950,7 @@ var CardBankRadio = (_a) => {
|
|
|
2980
2950
|
/* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13("input", { name: "paymenttype", checked: props.activetab === props.value, type: "radio", value: props.value, onChange: (e) => {
|
|
2981
2951
|
props.onChange(e.target.value);
|
|
2982
2952
|
} }) })
|
|
2983
|
-
]
|
|
2953
|
+
]
|
|
2984
2954
|
}
|
|
2985
2955
|
) });
|
|
2986
2956
|
};
|
|
@@ -3013,8 +2983,8 @@ function CardBankRadioStyles({}) {
|
|
|
3013
2983
|
|
|
3014
2984
|
.frac-card-title-main{
|
|
3015
2985
|
display: flex;
|
|
3016
|
-
|
|
3017
|
-
|
|
2986
|
+
align-items: center;
|
|
2987
|
+
gap: 12px;
|
|
3018
2988
|
}
|
|
3019
2989
|
|
|
3020
2990
|
.frac-card-label{
|
|
@@ -3332,8 +3302,6 @@ var customCSS = `
|
|
|
3332
3302
|
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
3333
3303
|
margin-bottom: 10px;
|
|
3334
3304
|
box-sizing: border-box;
|
|
3335
|
-
background-color: #F6F6F7;
|
|
3336
|
-
box-shadow: 1px 1px 2px inset rgba(0, 0, 0, 0.1
|
|
3337
3305
|
}
|
|
3338
3306
|
|
|
3339
3307
|
input:focus {
|
|
@@ -3353,6 +3321,7 @@ var customCSS = `
|
|
|
3353
3321
|
-moz-appearance: none;
|
|
3354
3322
|
appearance: none;
|
|
3355
3323
|
|
|
3324
|
+
background-color: #fff;
|
|
3356
3325
|
background-clip: padding-box;
|
|
3357
3326
|
border: 1px solid #dee2e6;
|
|
3358
3327
|
border-radius: 0.375rem;
|
|
@@ -3360,9 +3329,6 @@ var customCSS = `
|
|
|
3360
3329
|
transition: border-color .15s ease-in-out,
|
|
3361
3330
|
box-shadow .15s ease-in-out;
|
|
3362
3331
|
margin-bottom: 10px;
|
|
3363
|
-
background-color: #F6F6F7;
|
|
3364
|
-
box-shadow: 1px 1px 2px inset rgba(0, 0, 0, 0.1);
|
|
3365
|
-
|
|
3366
3332
|
}
|
|
3367
3333
|
select:focus {
|
|
3368
3334
|
border-color: #2563eb !important;
|
|
@@ -3414,7 +3380,6 @@ var DataCapFields = ({
|
|
|
3414
3380
|
font-weight: 400 !important;
|
|
3415
3381
|
font-size: 14px !important;
|
|
3416
3382
|
}
|
|
3417
|
-
|
|
3418
3383
|
|
|
3419
3384
|
`;
|
|
3420
3385
|
}
|
|
@@ -8733,9 +8698,6 @@ function SkyChargewidgetstyles() {
|
|
|
8733
8698
|
|
|
8734
8699
|
.parent-pay-container{
|
|
8735
8700
|
padding: 24px;
|
|
8736
|
-
background-color: #ffffff !important;
|
|
8737
|
-
border-radius:15px;
|
|
8738
|
-
min-width: 300px;
|
|
8739
8701
|
}
|
|
8740
8702
|
.pay-container{
|
|
8741
8703
|
display: grid;
|
|
@@ -8745,12 +8707,12 @@ function SkyChargewidgetstyles() {
|
|
|
8745
8707
|
.pay-main{
|
|
8746
8708
|
padding-y: 20px}
|
|
8747
8709
|
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8710
|
+
.request-payment-close-popup {
|
|
8711
|
+
position: absolute;
|
|
8712
|
+
right: 20px;
|
|
8713
|
+
top: 20px;
|
|
8714
|
+
cursor: pointer;
|
|
8715
|
+
}
|
|
8754
8716
|
.pay-conatiner-one{
|
|
8755
8717
|
border-right: 1px solid #E0DFE2;
|
|
8756
8718
|
display: flex;
|
|
@@ -8775,7 +8737,6 @@ function SkyChargewidgetstyles() {
|
|
|
8775
8737
|
}
|
|
8776
8738
|
.pay-conatiner-two{
|
|
8777
8739
|
padding: 0 5% 0;
|
|
8778
|
-
|
|
8779
8740
|
}
|
|
8780
8741
|
.pay-logo-container{
|
|
8781
8742
|
border-bottom: 1px solid #E0DFE2
|
|
@@ -8805,8 +8766,7 @@ function SkyChargewidgetstyles() {
|
|
|
8805
8766
|
margin-bottom: 8px;
|
|
8806
8767
|
}
|
|
8807
8768
|
.pay-amount-conatiner{
|
|
8808
|
-
margin-top:
|
|
8809
|
-
margin-bottom: 20px;
|
|
8769
|
+
margin-top: 6%;
|
|
8810
8770
|
}
|
|
8811
8771
|
.pay-amount{
|
|
8812
8772
|
color: #000000;
|
|
@@ -8846,7 +8806,7 @@ function SkyChargewidgetstyles() {
|
|
|
8846
8806
|
border-color: #86b7fe;
|
|
8847
8807
|
outline: 0;
|
|
8848
8808
|
}
|
|
8849
|
-
.toggle-num-wrapper
|
|
8809
|
+
.toggle-num-wrapper {
|
|
8850
8810
|
position: relative;
|
|
8851
8811
|
}
|
|
8852
8812
|
.card-number-new{
|
|
@@ -9225,7 +9185,6 @@ position:relative;
|
|
|
9225
9185
|
|
|
9226
9186
|
.parent-pay-container{
|
|
9227
9187
|
padding:24px;
|
|
9228
|
-
|
|
9229
9188
|
}
|
|
9230
9189
|
.pay-container {
|
|
9231
9190
|
grid-template-columns: 1fr;
|
|
@@ -9287,22 +9246,18 @@ position:relative;
|
|
|
9287
9246
|
|
|
9288
9247
|
|
|
9289
9248
|
.frac-cash-discount-fee {
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
// border-left: none;
|
|
9300
|
-
// border-right: none;
|
|
9301
|
-
// box-shadow: none;
|
|
9302
|
-
color: #000;
|
|
9303
|
-
// background:#fff;
|
|
9249
|
+
display: flex;
|
|
9250
|
+
padding: 11px;
|
|
9251
|
+
justify-content: space-between;
|
|
9252
|
+
align-items: center;
|
|
9253
|
+
align-self: stretch;
|
|
9254
|
+
border-radius: 8px;
|
|
9255
|
+
border: 1px solid #E0DFE2;
|
|
9256
|
+
background: #F6F6F7;
|
|
9257
|
+
margin-top: 24px;
|
|
9304
9258
|
}
|
|
9305
9259
|
.frac-cash-discount-fee small {
|
|
9260
|
+
color:#727272;
|
|
9306
9261
|
font-size: 12px;
|
|
9307
9262
|
font-weight: 500;
|
|
9308
9263
|
}
|
|
@@ -9344,283 +9299,14 @@ position:relative;
|
|
|
9344
9299
|
margin-top: 12px !important;
|
|
9345
9300
|
}
|
|
9346
9301
|
|
|
9347
|
-
.challengeUrlclass-frac
|
|
9348
|
-
height:
|
|
9349
|
-
width: 100%;
|
|
9350
|
-
border-radius: 8px;
|
|
9351
|
-
border: none;
|
|
9352
|
-
position: fixed;
|
|
9353
|
-
top: 0;
|
|
9354
|
-
left: 0;
|
|
9355
|
-
z-index: 111;
|
|
9302
|
+
.challengeUrlclass-frac{
|
|
9303
|
+
height : 90vh;
|
|
9304
|
+
width : 100%;
|
|
9305
|
+
border-radius : 8px;
|
|
9306
|
+
border : none;
|
|
9356
9307
|
}
|
|
9357
9308
|
|
|
9358
9309
|
|
|
9359
|
-
/* Card */
|
|
9360
|
-
.plan-card {
|
|
9361
|
-
width: 100%;
|
|
9362
|
-
font-family: Inter, sans-serif;
|
|
9363
|
-
background: #fff;
|
|
9364
|
-
}
|
|
9365
|
-
|
|
9366
|
-
/* Header */
|
|
9367
|
-
.card-header {
|
|
9368
|
-
padding: 12px 0 0 0;
|
|
9369
|
-
}
|
|
9370
|
-
|
|
9371
|
-
/* Button */
|
|
9372
|
-
.collapse-btn {
|
|
9373
|
-
width: 100%;
|
|
9374
|
-
background: none;
|
|
9375
|
-
border: none;
|
|
9376
|
-
display: flex;
|
|
9377
|
-
justify-content: space-between;
|
|
9378
|
-
align-items: center;
|
|
9379
|
-
cursor: pointer;
|
|
9380
|
-
font-size: 15px;
|
|
9381
|
-
padding: 0;
|
|
9382
|
-
}
|
|
9383
|
-
|
|
9384
|
-
/* Arrow */
|
|
9385
|
-
.arrow {
|
|
9386
|
-
transition: transform 0.3s ease;
|
|
9387
|
-
height: 8px;
|
|
9388
|
-
}
|
|
9389
|
-
|
|
9390
|
-
/* Open State */
|
|
9391
|
-
.collapse-btn.open .arrow {
|
|
9392
|
-
transform: rotate(180deg); /* Down */
|
|
9393
|
-
}
|
|
9394
|
-
|
|
9395
|
-
/* Body */
|
|
9396
|
-
.card-body {
|
|
9397
|
-
padding: 0;
|
|
9398
|
-
}
|
|
9399
|
-
|
|
9400
|
-
/* Plan Header */
|
|
9401
|
-
.plan-header {
|
|
9402
|
-
font-size: 15px;
|
|
9403
|
-
font-weight: 600;
|
|
9404
|
-
}
|
|
9405
|
-
|
|
9406
|
-
/* Scrollable List */
|
|
9407
|
-
.plan-list {
|
|
9408
|
-
max-height: 200px;
|
|
9409
|
-
overflow-y: auto;
|
|
9410
|
-
padding-right: 6px;
|
|
9411
|
-
}
|
|
9412
|
-
|
|
9413
|
-
/* Items */
|
|
9414
|
-
.plan-item {
|
|
9415
|
-
display: flex;
|
|
9416
|
-
justify-content: space-between;
|
|
9417
|
-
padding: 6px 0;
|
|
9418
|
-
font-size: 14px;
|
|
9419
|
-
}
|
|
9420
|
-
|
|
9421
|
-
/* Badges */
|
|
9422
|
-
.badge {
|
|
9423
|
-
padding: 4px 10px;
|
|
9424
|
-
border-radius: 12px;
|
|
9425
|
-
font-size: 12px;
|
|
9426
|
-
font-weight: 500;
|
|
9427
|
-
}
|
|
9428
|
-
|
|
9429
|
-
.badge-included {
|
|
9430
|
-
background: #f1f3f5;
|
|
9431
|
-
color: #495057;
|
|
9432
|
-
}
|
|
9433
|
-
|
|
9434
|
-
.badge-available {
|
|
9435
|
-
background: #f8f9fa;
|
|
9436
|
-
color: #212529;
|
|
9437
|
-
}
|
|
9438
|
-
|
|
9439
|
-
/* Helpers */
|
|
9440
|
-
.row-between {
|
|
9441
|
-
display: flex;
|
|
9442
|
-
justify-content: space-between;
|
|
9443
|
-
}
|
|
9444
|
-
|
|
9445
|
-
.text-end {
|
|
9446
|
-
text-align: right;
|
|
9447
|
-
}
|
|
9448
|
-
|
|
9449
|
-
.text-muted {
|
|
9450
|
-
color: #6c757d;
|
|
9451
|
-
font-size: 12px;
|
|
9452
|
-
}
|
|
9453
|
-
|
|
9454
|
-
.fw-semibold {
|
|
9455
|
-
font-weight: 600;
|
|
9456
|
-
}
|
|
9457
|
-
|
|
9458
|
-
.mb-2 {
|
|
9459
|
-
margin-bottom: 8px;
|
|
9460
|
-
}
|
|
9461
|
-
|
|
9462
|
-
/* Divider */
|
|
9463
|
-
.divider {
|
|
9464
|
-
height: 1px;
|
|
9465
|
-
background: #e5e7eb;
|
|
9466
|
-
margin: 8px 0;
|
|
9467
|
-
}
|
|
9468
|
-
|
|
9469
|
-
/* Collapse Animation */
|
|
9470
|
-
.collapse {
|
|
9471
|
-
max-height: 0;
|
|
9472
|
-
overflow: hidden;
|
|
9473
|
-
transition: max-height 0.3s ease;
|
|
9474
|
-
}
|
|
9475
|
-
|
|
9476
|
-
.collapse.show {
|
|
9477
|
-
max-height: 1000px;
|
|
9478
|
-
}
|
|
9479
|
-
.frac-pay-container.pay-container {
|
|
9480
|
-
grid-template-columns:1fr;
|
|
9481
|
-
}
|
|
9482
|
-
.frac-payment-form-div .amt-pay-con {
|
|
9483
|
-
padding-right: 0px;
|
|
9484
|
-
}
|
|
9485
|
-
.frac-payment-form-div .ach-scrl {
|
|
9486
|
-
padding-right: 0px;
|
|
9487
|
-
gap: 10px;
|
|
9488
|
-
max-height: fit-content !important;
|
|
9489
|
-
min-height: fit-content !important;
|
|
9490
|
-
overflow: hidden !important;
|
|
9491
|
-
}
|
|
9492
|
-
.frac-payment-form-div .frac-card-bank-radio-main {
|
|
9493
|
-
display: flex;
|
|
9494
|
-
flex-direction: row;
|
|
9495
|
-
align-items: flex-start;
|
|
9496
|
-
align-self: stretch;
|
|
9497
|
-
border-radius: 14px;
|
|
9498
|
-
border: none;
|
|
9499
|
-
overflow: visible;
|
|
9500
|
-
gap: 10px;
|
|
9501
|
-
}
|
|
9502
|
-
.frac-payment-form-div .frac-card-bank-radio {
|
|
9503
|
-
display: flex;
|
|
9504
|
-
padding: 12px 16px;
|
|
9505
|
-
justify-content: space-between;
|
|
9506
|
-
align-items: center;
|
|
9507
|
-
align-self: stretch;
|
|
9508
|
-
width: 50%;
|
|
9509
|
-
border: 1px solid #E0DFE2;
|
|
9510
|
-
border-radius: 10px;
|
|
9511
|
-
box-shadow: rgba(149, 157, 165, 0.2) 0px 1px 4px;
|
|
9512
|
-
}
|
|
9513
|
-
.frac-payment-form-div .frac-card-bank-radio.frac-active {
|
|
9514
|
-
background: #fff;
|
|
9515
|
-
border: 2px solid #004eab !important;
|
|
9516
|
-
}
|
|
9517
|
-
|
|
9518
|
-
.frac-payment-form-div .form-control-frac {
|
|
9519
|
-
border: 1px solid #dee2e6 !important;
|
|
9520
|
-
border-radius: 0.375rem !important;
|
|
9521
|
-
background-color: #F6F6F7;
|
|
9522
|
-
box-shadow: 1px 1px 2px inset rgba(0, 0, 0, 0.1);
|
|
9523
|
-
}
|
|
9524
|
-
.frac-payment-form-div .form-control-frac:focus {
|
|
9525
|
-
border: 1px solid #004eab !important;
|
|
9526
|
-
}
|
|
9527
|
-
.frac-payment-form-div .card-expiry-new {
|
|
9528
|
-
border: none;
|
|
9529
|
-
gap: 10px;
|
|
9530
|
-
}
|
|
9531
|
-
.frac-payment-form-div .exp-date-year-container {
|
|
9532
|
-
gap: 10px;
|
|
9533
|
-
width: 100%;
|
|
9534
|
-
}
|
|
9535
|
-
.frac-payment-form-div .card-type-logo-wrap{
|
|
9536
|
-
position: absolute;
|
|
9537
|
-
right: 10px;
|
|
9538
|
-
max-width: 30px;
|
|
9539
|
-
}
|
|
9540
|
-
.detials-wrap.detials-wrap-1 {
|
|
9541
|
-
display: flex;
|
|
9542
|
-
flex-wrap: wrap;
|
|
9543
|
-
}
|
|
9544
|
-
@media screen and (max-width: 1280px) {
|
|
9545
|
-
.frac-pay-container.pay-container {
|
|
9546
|
-
grid-template-columns: 1fr;
|
|
9547
|
-
border: none;
|
|
9548
|
-
}
|
|
9549
|
-
}
|
|
9550
|
-
@media screen and (max-width: 899px) {
|
|
9551
|
-
.detials-wrap {
|
|
9552
|
-
grid-template-columns: 1fr !important;
|
|
9553
|
-
}
|
|
9554
|
-
.frac-payment-form-div .exp-date-year-container{
|
|
9555
|
-
width: 100%;}
|
|
9556
|
-
|
|
9557
|
-
}
|
|
9558
|
-
@media screen and (max-width: 575px) {
|
|
9559
|
-
.frac-payment-form-div .card-type-logo-wrap{
|
|
9560
|
-
max-width: 30px;
|
|
9561
|
-
}
|
|
9562
|
-
form#ACHPaymentForm .ach-scrl {
|
|
9563
|
-
grid-template-columns: 1fr !important;
|
|
9564
|
-
}
|
|
9565
|
-
@media screen and (max-width: 375px) {
|
|
9566
|
-
.frac-payment-form-div .exp-date-year-container {
|
|
9567
|
-
flex-direction: column;
|
|
9568
|
-
}
|
|
9569
|
-
.parent-pay-container {
|
|
9570
|
-
padding: 10px;
|
|
9571
|
-
}
|
|
9572
|
-
}
|
|
9573
|
-
}
|
|
9574
|
-
.box-inner-card-text{
|
|
9575
|
-
display: flex;
|
|
9576
|
-
gap: 0px;
|
|
9577
|
-
flex-direction: column;
|
|
9578
|
-
}
|
|
9579
|
-
.box-inner-card-text .frac-payment-type-logo {
|
|
9580
|
-
width: 17px;
|
|
9581
|
-
height: 17px;
|
|
9582
|
-
aspect-ratio: 1/1;
|
|
9583
|
-
}
|
|
9584
|
-
.exp-date-year-wrap.form-control-frac input {
|
|
9585
|
-
background: transparent;
|
|
9586
|
-
border: none;
|
|
9587
|
-
outline: none;
|
|
9588
|
-
font-size: 1rem;
|
|
9589
|
-
font-weight: 400;
|
|
9590
|
-
}
|
|
9591
|
-
.exp-date-year-wrap.form-control-frac {
|
|
9592
|
-
display: flex;
|
|
9593
|
-
gap: 2px;
|
|
9594
|
-
}
|
|
9595
|
-
.exp-date-year-wrap input.exp-month {
|
|
9596
|
-
width: 32px;
|
|
9597
|
-
}
|
|
9598
|
-
.detials-wrap {
|
|
9599
|
-
display: grid;
|
|
9600
|
-
grid-template-columns: 1fr 1fr;
|
|
9601
|
-
gap: 10px;
|
|
9602
|
-
}
|
|
9603
|
-
.detials-wrap.detials-wrap-2{
|
|
9604
|
-
grid-template-columns: 1fr 1fr;
|
|
9605
|
-
}
|
|
9606
|
-
form#ACHPaymentForm .ach-scrl {
|
|
9607
|
-
display: grid;
|
|
9608
|
-
grid-gap: 0px 10px;
|
|
9609
|
-
grid-template-columns: 1fr;
|
|
9610
|
-
}
|
|
9611
|
-
.plan-list {
|
|
9612
|
-
max-height: 130px;
|
|
9613
|
-
min-height: 130px;
|
|
9614
|
-
overflow-y: auto;
|
|
9615
|
-
padding-right: 6px;
|
|
9616
|
-
}
|
|
9617
|
-
.plan-list::-webkit-scrollbar {
|
|
9618
|
-
width: 3px;
|
|
9619
|
-
background-color: #F5F5F5;
|
|
9620
|
-
}
|
|
9621
|
-
.plan-list::-webkit-scrollbar-thumb {
|
|
9622
|
-
background-color: #35254D;
|
|
9623
|
-
}
|
|
9624
9310
|
div#cvv {
|
|
9625
9311
|
border-top-left-radius: 0;
|
|
9626
9312
|
border-bottom-left-radius: 0;
|
|
@@ -9650,26 +9336,8 @@ form#ACHPaymentForm .ach-scrl {
|
|
|
9650
9336
|
margin:0px !important;
|
|
9651
9337
|
padding:0px !important;
|
|
9652
9338
|
}
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
border-radius: 0.375rem !important;
|
|
9656
|
-
background-color: #F6F6F7;
|
|
9657
|
-
box-shadow: 1px 1px 2px inset rgba(0, 0, 0, 0.1);
|
|
9658
|
-
}
|
|
9659
|
-
.toggle-num-wrapper-new div#card_number {
|
|
9660
|
-
padding: 0px 10px;
|
|
9661
|
-
border: none;
|
|
9662
|
-
border-bottom: 1px solid #dee2e6;
|
|
9663
|
-
}
|
|
9664
|
-
.toggle-num-wrapper-new .card-crdi.card-expiry-new {
|
|
9665
|
-
padding: 0px 10px;
|
|
9666
|
-
}
|
|
9667
|
-
.toggle-num-wrapper-new .input-main-wrap-frac {
|
|
9668
|
-
height: 36px;
|
|
9669
|
-
}
|
|
9670
|
-
.toggle-num-wrapper-new:focus {
|
|
9671
|
-
border: 1px solid #004eab !important;
|
|
9672
|
-
}
|
|
9339
|
+
|
|
9340
|
+
|
|
9673
9341
|
|
|
9674
9342
|
` });
|
|
9675
9343
|
}
|
|
@@ -9814,15 +9482,12 @@ function CheckoutWrapper({ clientSecret, onSuccess, showLoader, setError, sessio
|
|
|
9814
9482
|
}
|
|
9815
9483
|
|
|
9816
9484
|
// src/app/components/Atoms/ModelContentSky/ModelContentSky.tsx
|
|
9485
|
+
import { IoArrowBack as IoArrowBack4 } from "react-icons/io5";
|
|
9817
9486
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
9818
9487
|
import { Fragment as Fragment18, jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
9819
|
-
var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_token, customerId, callback, merchantName = "merchant", isPreAuth, surcharge = "0", submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds = false, autoTrigger = false, show, setShow, setHandleCloseRef, isPartial, bankSurcharge, partialRef, loadingPrev = false, orderGuid: ordGuid, remainingAmount: remAmount
|
|
9488
|
+
var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_token, customerId, callback, merchantName = "merchant", isPreAuth, surcharge = "0", submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds = false, autoTrigger = false, show, setShow, setHandleCloseRef, isPartial, bankSurcharge, partialRef, loadingPrev = false, orderGuid: ordGuid, remainingAmount: remAmount }) => {
|
|
9820
9489
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
9821
9490
|
const hasRunRef = useRef10(false);
|
|
9822
|
-
const cardFormRef = useRef10(null);
|
|
9823
|
-
const bankFormRef = useRef10(null);
|
|
9824
|
-
const expiryYearRef = useRef10(null);
|
|
9825
|
-
const expiryMonthRef = useRef10(null);
|
|
9826
9491
|
const cardListRunRef = useRef10(false);
|
|
9827
9492
|
const threeDSContainerRef = useRef10(null);
|
|
9828
9493
|
const [activetab, setActive] = useState10("card");
|
|
@@ -9866,7 +9531,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9866
9531
|
let americanexp2 = S3Url + "widget/ae-img.svg";
|
|
9867
9532
|
let discover2 = S3Url + "widget/discover-img.svg";
|
|
9868
9533
|
let defaultcard2 = S3Url + "widget/card.svg";
|
|
9869
|
-
let defualtcardborder = S3Url + "widget/defualtcardborder.svg";
|
|
9870
9534
|
let trash2 = S3Url + "widget/Trash.svg";
|
|
9871
9535
|
let bank2 = S3Url + "widget/bank.svg";
|
|
9872
9536
|
let secure2 = S3Url + "widget/secure-img.png";
|
|
@@ -9874,9 +9538,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
9874
9538
|
let pax2 = S3Url + "widget/pax.svg";
|
|
9875
9539
|
let cardicon = S3Url + "widget/cardicon.svg";
|
|
9876
9540
|
let bankicon = S3Url + "widget/bankicon.svg";
|
|
9877
|
-
let unionicon = S3Url + "widget/unionpay.svg";
|
|
9878
|
-
let dinersicon = S3Url + "widget/diners.svg";
|
|
9879
|
-
let jcbicon = S3Url + "widget/jcb.svg";
|
|
9880
9541
|
const showLoader = () => setLoading(true);
|
|
9881
9542
|
const hideLoader = () => setLoading(false);
|
|
9882
9543
|
const CalculateCashDiscount = (amount2, surcharge2) => {
|
|
@@ -10586,7 +10247,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10586
10247
|
};
|
|
10587
10248
|
const handlechargeCustomer = async (e) => {
|
|
10588
10249
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
10589
|
-
e
|
|
10250
|
+
e.currentTarget.blur();
|
|
10590
10251
|
if (loading) return;
|
|
10591
10252
|
let customer_id = customerId;
|
|
10592
10253
|
let card_id = selectedCard == null ? void 0 : selectedCard.id;
|
|
@@ -10655,7 +10316,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10655
10316
|
}
|
|
10656
10317
|
};
|
|
10657
10318
|
const getPaymentDetails = async () => {
|
|
10658
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2
|
|
10319
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2;
|
|
10659
10320
|
try {
|
|
10660
10321
|
showLoader();
|
|
10661
10322
|
const res = await axios9.get(`${masterBaseUrl}api/v1/gateway/get-payment-details/${session_token}`, {
|
|
@@ -10678,7 +10339,6 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10678
10339
|
result: (_n2 = (_m2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _m2.data) == null ? void 0 : _n2.result,
|
|
10679
10340
|
statusCode: (_o2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _o2.status
|
|
10680
10341
|
});
|
|
10681
|
-
setError(((_q2 = (_p2 = error2 == null ? void 0 : error2.response) == null ? void 0 : _p2.data) == null ? void 0 : _q2.message) || (error2 == null ? void 0 : error2.message) || "Something went wrong");
|
|
10682
10342
|
hideLoader();
|
|
10683
10343
|
}
|
|
10684
10344
|
};
|
|
@@ -10716,13 +10376,13 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10716
10376
|
}
|
|
10717
10377
|
}, [show, autoTrigger]);
|
|
10718
10378
|
useEffect15(() => {
|
|
10719
|
-
if (!hasRunRef.current && (show || autoTrigger)
|
|
10379
|
+
if (!hasRunRef.current && (show || autoTrigger)) {
|
|
10720
10380
|
getPaymentDetails();
|
|
10721
10381
|
if (isPartial && !partialRef) {
|
|
10722
10382
|
crateOrderFrac();
|
|
10723
10383
|
}
|
|
10724
10384
|
}
|
|
10725
|
-
}, [show, autoTrigger, isPartial
|
|
10385
|
+
}, [show, autoTrigger, isPartial]);
|
|
10726
10386
|
useEffect15(() => {
|
|
10727
10387
|
if ((show || autoTrigger) && pass_fee_amount) {
|
|
10728
10388
|
let cashdisc = Number(amount) - Number(pass_fee_amount);
|
|
@@ -10809,92 +10469,17 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10809
10469
|
styles: {}
|
|
10810
10470
|
});
|
|
10811
10471
|
}, []);
|
|
10812
|
-
const stateRef = useRef10({
|
|
10813
|
-
activeinBank,
|
|
10814
|
-
activeinCard,
|
|
10815
|
-
activetab
|
|
10816
|
-
});
|
|
10817
|
-
useEffect15(() => {
|
|
10818
|
-
stateRef.current = {
|
|
10819
|
-
activeinBank,
|
|
10820
|
-
activeinCard,
|
|
10821
|
-
activetab
|
|
10822
|
-
};
|
|
10823
|
-
}, [activeinBank, activeinCard, activetab]);
|
|
10824
|
-
const submit = useCallback(() => {
|
|
10825
|
-
var _a2, _b2;
|
|
10826
|
-
const { activeinBank: activeinBank2, activeinCard: activeinCard2, activetab: activetab2 } = stateRef.current;
|
|
10827
|
-
console.log("Submitt logic", activeinBank2, "activeinBank", activeinCard2, "activeinCard", activetab2, "activetab");
|
|
10828
|
-
if (activetab2 === "card") {
|
|
10829
|
-
if (activeinCard2 === "form") {
|
|
10830
|
-
(_a2 = cardFormRef.current) == null ? void 0 : _a2.requestSubmit();
|
|
10831
|
-
} else if (activeinCard2 === "list") {
|
|
10832
|
-
handlechargeCustomer();
|
|
10833
|
-
}
|
|
10834
|
-
} else if (activetab2 === "ach") {
|
|
10835
|
-
if (activeinBank2 === "form") {
|
|
10836
|
-
(_b2 = bankFormRef.current) == null ? void 0 : _b2.requestSubmit();
|
|
10837
|
-
} else if (activeinBank2 === "list") {
|
|
10838
|
-
handlechargeCustomer();
|
|
10839
|
-
}
|
|
10840
|
-
}
|
|
10841
|
-
}, []);
|
|
10842
|
-
useEffect15(() => {
|
|
10843
|
-
console.log("Registering submit");
|
|
10844
|
-
onSubmit == null ? void 0 : onSubmit(submit);
|
|
10845
|
-
}, [onSubmit, submit]);
|
|
10846
|
-
function detectCardType(cardinput) {
|
|
10847
|
-
if (!cardinput) return null;
|
|
10848
|
-
const number = cardinput.replace(/\D/g, "");
|
|
10849
|
-
const patterns = {
|
|
10850
|
-
visa: /^4/,
|
|
10851
|
-
mastercard: /^(5[1-5]|2[2-7][0-9]{2})/,
|
|
10852
|
-
amex: /^3[47]/,
|
|
10853
|
-
discover: /^(6011|65|64[4-9])/,
|
|
10854
|
-
diners: /^(30[0-5]|36|38)/,
|
|
10855
|
-
jcb: /^(35[2-8][0-9])/,
|
|
10856
|
-
unionpay: /^62/
|
|
10857
|
-
};
|
|
10858
|
-
for (const [type, regex] of Object.entries(patterns)) {
|
|
10859
|
-
if (regex.test(number)) {
|
|
10860
|
-
return type;
|
|
10861
|
-
}
|
|
10862
|
-
}
|
|
10863
|
-
return "unknown";
|
|
10864
|
-
}
|
|
10865
|
-
function getCardImage(cardInput) {
|
|
10866
|
-
const cardType = detectCardType(cardInput);
|
|
10867
|
-
switch (cardType) {
|
|
10868
|
-
case "visa":
|
|
10869
|
-
return /* @__PURE__ */ jsx32("img", { src: visa2, alt: "visa", width: 33 });
|
|
10870
|
-
case "mastercard":
|
|
10871
|
-
return /* @__PURE__ */ jsx32("img", { src: mastercard2, width: 33, alt: "mastercard" });
|
|
10872
|
-
case "amex":
|
|
10873
|
-
return /* @__PURE__ */ jsx32("img", { src: americanexp2, alt: "amex", width: 33 });
|
|
10874
|
-
case "discover":
|
|
10875
|
-
return /* @__PURE__ */ jsx32("img", { src: discover2, width: 33, alt: "discover" });
|
|
10876
|
-
case "diners":
|
|
10877
|
-
return /* @__PURE__ */ jsx32("img", { src: dinersicon, alt: "Diners Club" });
|
|
10878
|
-
case "jcb":
|
|
10879
|
-
return /* @__PURE__ */ jsx32("img", { src: jcbicon, alt: "JCB" });
|
|
10880
|
-
case "unionpay":
|
|
10881
|
-
return /* @__PURE__ */ jsx32("img", { src: unionicon, alt: "UnionPay" });
|
|
10882
|
-
default:
|
|
10883
|
-
return /* @__PURE__ */ jsx32("img", { src: defualtcardborder, alt: "card" });
|
|
10884
|
-
}
|
|
10885
|
-
}
|
|
10886
|
-
console.log(cardError, "cardError");
|
|
10887
10472
|
console.log(activeinCard === "list", "activeinCard", activeList);
|
|
10888
10473
|
return /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10889
|
-
|
|
10890
|
-
error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose
|
|
10474
|
+
initialLoader && /* @__PURE__ */ jsx32(Loader_default, { loading: initialLoader }),
|
|
10475
|
+
error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose }) }),
|
|
10891
10476
|
errorIframe && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
|
|
10892
10477
|
setErrorIframe("");
|
|
10893
10478
|
} }) }),
|
|
10894
10479
|
!error && !errorIframe && /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10895
|
-
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx32(Loader_default, {
|
|
10896
|
-
/* @__PURE__ */ jsxs19("div", { className: "frac-card-payment-page frac-form frac-new-form",
|
|
10897
|
-
/* @__PURE__ */ jsx32("div", { ref: threeDSContainerRef }),
|
|
10480
|
+
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx32(Loader_default, { loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
|
|
10481
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
|
|
10482
|
+
/* @__PURE__ */ jsx32("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),
|
|
10898
10483
|
(stripeResponse == null ? void 0 : stripeResponse.challenge_url) ? /* @__PURE__ */ jsx32(
|
|
10899
10484
|
ThreeDSChallenge,
|
|
10900
10485
|
{
|
|
@@ -10911,323 +10496,368 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
|
|
|
10911
10496
|
/* @__PURE__ */ jsx32("defs", { children: /* @__PURE__ */ jsx32("clipPath", { id: "clip0_12425_52336", children: /* @__PURE__ */ jsx32("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
10912
10497
|
] }) }),
|
|
10913
10498
|
/* @__PURE__ */ jsx32("div", { className: "pay-main-logo-res" }),
|
|
10914
|
-
/* @__PURE__ */
|
|
10915
|
-
/* @__PURE__ */
|
|
10916
|
-
/* @__PURE__ */ jsxs19("div", { className: "
|
|
10917
|
-
/* @__PURE__ */
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10499
|
+
/* @__PURE__ */ jsxs19("div", { className: "pay-container", children: [
|
|
10500
|
+
/* @__PURE__ */ jsxs19("div", { className: "pay-header pay-conatiner-one", children: [
|
|
10501
|
+
/* @__PURE__ */ jsxs19("div", { className: "pay-conatiner-one-first", children: [
|
|
10502
|
+
/* @__PURE__ */ jsxs19("div", { className: "pay-logo-container", children: [
|
|
10503
|
+
/* @__PURE__ */ jsx32("div", { className: "pay-main-logo" }),
|
|
10504
|
+
/* @__PURE__ */ jsx32("h1", { className: "pay-heading", children: "Pay" }),
|
|
10505
|
+
(cardList == null ? void 0 : cardList.length) > 0 && activetab !== "cardList" && /* @__PURE__ */ jsxs19("button", { className: "res-charge-payment-back-btn ", onClick: () => setActive("cardList"), children: [
|
|
10506
|
+
" ",
|
|
10507
|
+
/* @__PURE__ */ jsx32(IoArrowBack4, {}),
|
|
10508
|
+
" Back"
|
|
10509
|
+
] })
|
|
10924
10510
|
] }),
|
|
10925
|
-
/* @__PURE__ */ jsx32("
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
NumericFormat2,
|
|
10931
|
-
{
|
|
10932
|
-
prefix: "$",
|
|
10933
|
-
className: "form-control-frac",
|
|
10934
|
-
value: partialAmount,
|
|
10935
|
-
onValueChange: (values) => {
|
|
10936
|
-
handlePartialChange(values);
|
|
10937
|
-
},
|
|
10938
|
-
thousandSeparator: true,
|
|
10939
|
-
placeholder: "Enter partial amount",
|
|
10940
|
-
allowNegative: false,
|
|
10941
|
-
allowLeadingZeros: false,
|
|
10942
|
-
decimalScale: 2,
|
|
10943
|
-
fixedDecimalScale: true
|
|
10944
|
-
}
|
|
10945
|
-
),
|
|
10946
|
-
partialError && /* @__PURE__ */ jsx32("span", { className: "error-span", children: partialError })
|
|
10947
|
-
] })
|
|
10948
|
-
] }) }),
|
|
10949
|
-
is3DSEnable ? clientSecret && /* @__PURE__ */ jsx32(CheckoutWrapper, { onSuccess, clientSecret, amount, showLoader, hideLoader, callback, session_token, handleClose, setError, isPreAuth }) : /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10950
|
-
/* @__PURE__ */ jsx32("div", { id: "ach", style: { display: activetab === "card" ? "block" : "none" }, className: "tabcontent", children: activeinCard === "list" && (cardList == null ? void 0 : cardList.length) > 0 ? /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10951
|
-
/* @__PURE__ */ jsx32(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Card", ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
|
|
10952
|
-
setActiveinCard("form");
|
|
10953
|
-
} }),
|
|
10954
|
-
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx32("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_c = Number(partialAmount)) == null ? void 0 : _c.toFixed(2)) : formatUSD((_d = Number(amount)) == null ? void 0 : _d.toFixed(2)) }) })
|
|
10955
|
-
] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs19("form", { id: "paymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
|
|
10956
|
-
if (e.key === "Enter" && loading) {
|
|
10957
|
-
e.preventDefault();
|
|
10958
|
-
e.stopPropagation();
|
|
10959
|
-
}
|
|
10960
|
-
}, children: [
|
|
10961
|
-
/* @__PURE__ */ jsxs19("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
|
|
10962
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10963
|
-
/* @__PURE__ */ jsx32("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
|
|
10964
|
-
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
|
|
10965
|
-
const value = e.target.value;
|
|
10966
|
-
if (/^[a-zA-Z\s]*$/.test(value)) {
|
|
10967
|
-
handleCardChange("cardName", value);
|
|
10968
|
-
}
|
|
10969
|
-
} }),
|
|
10970
|
-
(cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
|
|
10511
|
+
/* @__PURE__ */ jsx32("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs19("div", { className: "pay-amount-conatiner", children: [
|
|
10512
|
+
/* @__PURE__ */ jsx32("small", { className: "pay-payment-amount", children: "Select payment type" }),
|
|
10513
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-card-bank-radio-main", children: [
|
|
10514
|
+
/* @__PURE__ */ jsx32(CardBankRadio, { label: "Card", amount: (_a = Number(amount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }),
|
|
10515
|
+
!isPreAuth && isBankActive && !isPartial && /* @__PURE__ */ jsx32(CardBankRadio, { label: "Bank", amount: (_b = Number(bankAmount)) == null ? void 0 : _b.toFixed(2), value: "ach", onChange: handletabchange, activetab })
|
|
10971
10516
|
] }),
|
|
10972
|
-
/* @__PURE__ */ jsxs19("div", { className: "
|
|
10973
|
-
/* @__PURE__ */
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
) })
|
|
10982
|
-
] }),
|
|
10983
|
-
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10984
|
-
/* @__PURE__ */ jsx32("label", { htmlFor: "zip", children: "ZIP" }),
|
|
10985
|
-
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_e = cardData == null ? void 0 : cardData.zipCode) != null ? _e : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
|
|
10986
|
-
(cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode })
|
|
10987
|
-
] }),
|
|
10988
|
-
customerId && /* @__PURE__ */ jsx32("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs19("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
|
|
10517
|
+
pass_fee && activetab === "card" && cashDiscount && Number(amount) - Number(cashDiscount) > 0 ? /* @__PURE__ */ jsxs19("div", { className: "frac-cash-discount-fee", children: [
|
|
10518
|
+
/* @__PURE__ */ jsxs19("small", { children: [
|
|
10519
|
+
activetab === "card" ? "Cash Discount" : "Cash Discount Savings",
|
|
10520
|
+
" "
|
|
10521
|
+
] }),
|
|
10522
|
+
/* @__PURE__ */ jsx32("p", { children: formatUSD((Number(amount) - Number(cashDiscount)).toFixed(2)) })
|
|
10523
|
+
] }) : null,
|
|
10524
|
+
isPartial && /* @__PURE__ */ jsxs19("div", { className: "frac-partial-payment-input", children: [
|
|
10525
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
|
|
10989
10526
|
/* @__PURE__ */ jsx32(
|
|
10990
|
-
|
|
10527
|
+
NumericFormat2,
|
|
10991
10528
|
{
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10529
|
+
prefix: "$",
|
|
10530
|
+
className: "form-control-frac",
|
|
10531
|
+
value: partialAmount,
|
|
10532
|
+
onValueChange: (values) => {
|
|
10533
|
+
handlePartialChange(values);
|
|
10534
|
+
},
|
|
10535
|
+
thousandSeparator: true,
|
|
10536
|
+
placeholder: "Enter partial amount",
|
|
10537
|
+
allowNegative: false,
|
|
10538
|
+
allowLeadingZeros: false,
|
|
10539
|
+
decimalScale: 2,
|
|
10540
|
+
fixedDecimalScale: true,
|
|
10541
|
+
isAllowed: (values) => {
|
|
10542
|
+
const { floatValue = 0, value } = values;
|
|
10543
|
+
if (value === "") return true;
|
|
10544
|
+
if (value === "0" || value.startsWith("0.")) return true;
|
|
10545
|
+
if (floatValue === 0) return false;
|
|
10546
|
+
return floatValue > 0;
|
|
10547
|
+
}
|
|
10997
10548
|
}
|
|
10998
10549
|
),
|
|
10999
|
-
/* @__PURE__ */ jsx32("
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
10550
|
+
partialError && /* @__PURE__ */ jsx32("span", { className: "error-span", children: partialError })
|
|
10551
|
+
] })
|
|
10552
|
+
] }) })
|
|
10553
|
+
] }),
|
|
10554
|
+
/* @__PURE__ */ jsxs19("div", { className: "pay-conatiner-one-last", children: [
|
|
10555
|
+
/* @__PURE__ */ jsx32("img", { src: secure2, alt: "" }),
|
|
10556
|
+
/* @__PURE__ */ jsx32("img", { src: pov2, alt: "" }),
|
|
10557
|
+
"Secure payments powered by Fractal"
|
|
10558
|
+
] })
|
|
10559
|
+
] }),
|
|
10560
|
+
/* @__PURE__ */ jsx32("div", { className: "pay-tab pay-conatiner-two", children: /* @__PURE__ */ jsx32("div", { className: "col-md-12", children: /* @__PURE__ */ jsx32("div", { id: "payment-form-div", children: is3DSEnable ? clientSecret && /* @__PURE__ */ jsx32(CheckoutWrapper, { onSuccess, clientSecret, amount, showLoader, hideLoader, callback, session_token, handleClose, setError, isPreAuth }) : /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10561
|
+
/* @__PURE__ */ jsxs19("div", { id: "ach", style: { display: activetab === "card" ? "block" : "none" }, className: "tabcontent", children: [
|
|
10562
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-heading-card-wrap", children: [
|
|
10563
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-backarrow", children: (cardList == null ? void 0 : cardList.length) > 0 && activeinCard === "form" && /* @__PURE__ */ jsxs19("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinCard("list"), children: [
|
|
10564
|
+
" ",
|
|
10565
|
+
/* @__PURE__ */ jsx32(IoArrowBack4, {})
|
|
10566
|
+
] }) }),
|
|
10567
|
+
/* @__PURE__ */ jsx32("h6", { className: "frac-card-payment-heading", children: "Card Payment" })
|
|
10568
|
+
] }),
|
|
10569
|
+
/* @__PURE__ */ jsxs19("div", { style: { display: "flex", gap: "8px", margin: "8px 0px 19px 0px" }, children: [
|
|
10570
|
+
/* @__PURE__ */ jsx32("img", { src: visa2, alt: "", width: 33 }),
|
|
10571
|
+
/* @__PURE__ */ jsx32("img", { src: mastercard2, width: 33, alt: "" }),
|
|
10572
|
+
/* @__PURE__ */ jsx32("img", { src: americanexp2, alt: "", width: 33 }),
|
|
10573
|
+
/* @__PURE__ */ jsx32("img", { src: discover2, width: 33, alt: "" })
|
|
10574
|
+
] }),
|
|
10575
|
+
activeinCard === "list" && (cardList == null ? void 0 : cardList.length) > 0 ? /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10576
|
+
/* @__PURE__ */ jsx32(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Card", ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
|
|
10577
|
+
setActiveinCard("form");
|
|
10578
|
+
} }),
|
|
10579
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", style: { padding: "0" }, children: /* @__PURE__ */ jsx32("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_c = Number(partialAmount)) == null ? void 0 : _c.toFixed(2)) : formatUSD((_d = Number(amount)) == null ? void 0 : _d.toFixed(2)) }) })
|
|
10580
|
+
] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs19("form", { id: "paymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, onKeyDown: (e) => {
|
|
10581
|
+
if (e.key === "Enter" && loading) {
|
|
10582
|
+
e.preventDefault();
|
|
10583
|
+
e.stopPropagation();
|
|
10584
|
+
}
|
|
10585
|
+
}, children: [
|
|
10586
|
+
/* @__PURE__ */ jsxs19("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
|
|
10587
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10588
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
|
|
10589
|
+
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
|
|
10590
|
+
const value = e.target.value;
|
|
10591
|
+
if (/^[a-zA-Z\s]*$/.test(value)) {
|
|
10592
|
+
handleCardChange("cardName", value);
|
|
10593
|
+
}
|
|
10594
|
+
} }),
|
|
10595
|
+
(cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
|
|
10596
|
+
] }),
|
|
10597
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10598
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "cardNumber", children: "CARD NUMBER" }),
|
|
10599
|
+
/* @__PURE__ */ jsx32("div", { className: "toggle-num-wrapper", children: (show || autoTrigger) && paymentGateway === 32 && /* @__PURE__ */ jsx32(
|
|
10600
|
+
FractalFields_default,
|
|
11004
10601
|
{
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
viewBox: "0 0 20 20",
|
|
11009
|
-
fill: "none",
|
|
11010
|
-
children: [
|
|
11011
|
-
/* @__PURE__ */ jsx32("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
|
|
11012
|
-
/* @__PURE__ */ jsx32(
|
|
11013
|
-
"path",
|
|
11014
|
-
{
|
|
11015
|
-
d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
|
|
11016
|
-
fill: "#161616"
|
|
11017
|
-
}
|
|
11018
|
-
)
|
|
11019
|
-
]
|
|
10602
|
+
fractalStyles,
|
|
10603
|
+
tokenizerRef,
|
|
10604
|
+
isSky: true
|
|
11020
10605
|
}
|
|
11021
|
-
) })
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
] })
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
10606
|
+
) })
|
|
10607
|
+
] }),
|
|
10608
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10609
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "zip", children: "ZIP" }),
|
|
10610
|
+
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_e = cardData == null ? void 0 : cardData.zipCode) != null ? _e : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
|
|
10611
|
+
(cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode })
|
|
10612
|
+
] }),
|
|
10613
|
+
customerId && /* @__PURE__ */ jsx32("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs19("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
|
|
10614
|
+
/* @__PURE__ */ jsx32(
|
|
10615
|
+
"input",
|
|
10616
|
+
{
|
|
10617
|
+
type: "checkbox",
|
|
10618
|
+
id: "save_card",
|
|
10619
|
+
className: "toggle-checkbox",
|
|
10620
|
+
checked: saveCardInfo,
|
|
10621
|
+
onChange: (e) => setSaveCardInfo(e.target.checked)
|
|
10622
|
+
}
|
|
10623
|
+
),
|
|
10624
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "save_card", className: "toggle-label" }),
|
|
10625
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "save_card", children: "Save card for future payments " }),
|
|
10626
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-tooltip-wrapper", children: [
|
|
10627
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs19(
|
|
10628
|
+
"svg",
|
|
10629
|
+
{
|
|
10630
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10631
|
+
width: "20",
|
|
10632
|
+
height: "20",
|
|
10633
|
+
viewBox: "0 0 20 20",
|
|
10634
|
+
fill: "none",
|
|
10635
|
+
children: [
|
|
10636
|
+
/* @__PURE__ */ jsx32("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
|
|
10637
|
+
/* @__PURE__ */ jsx32(
|
|
10638
|
+
"path",
|
|
10639
|
+
{
|
|
10640
|
+
d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
|
|
10641
|
+
fill: "#161616"
|
|
10642
|
+
}
|
|
10643
|
+
)
|
|
10644
|
+
]
|
|
10645
|
+
}
|
|
10646
|
+
) }),
|
|
10647
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs19("p", { children: [
|
|
10648
|
+
"If checked, I agree to give the ",
|
|
10649
|
+
/* @__PURE__ */ jsx32("b", { children: merchantName || "merchant" }),
|
|
10650
|
+
" permission to charge this credit card for agreed-upon purchases in the future."
|
|
10651
|
+
] }) })
|
|
10652
|
+
] })
|
|
10653
|
+
] }) })
|
|
11060
10654
|
] }),
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
10655
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx32("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount ? formatUSD((_f = Number(partialAmount)) == null ? void 0 : _f.toFixed(2)) : formatUSD((_g = Number(amount)) == null ? void 0 : _g.toFixed(2)) }) })
|
|
10656
|
+
] }) : /* @__PURE__ */ jsxs19("form", { id: "PaymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, onKeyDown: (e) => {
|
|
10657
|
+
if (e.key === "Enter" && loading) {
|
|
10658
|
+
e.preventDefault();
|
|
10659
|
+
e.stopPropagation();
|
|
10660
|
+
}
|
|
10661
|
+
}, children: [
|
|
10662
|
+
/* @__PURE__ */ jsxs19("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
|
|
10663
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10664
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
|
|
10665
|
+
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
|
|
10666
|
+
const value = e.target.value;
|
|
10667
|
+
if (/^[a-zA-Z\s]*$/.test(value)) {
|
|
10668
|
+
handleCardChange("cardName", value);
|
|
10669
|
+
}
|
|
10670
|
+
} }),
|
|
10671
|
+
(cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
|
|
10672
|
+
] }),
|
|
10673
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", children: /* @__PURE__ */ jsx32(
|
|
10674
|
+
DataCapFields,
|
|
11064
10675
|
{
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
checked: saveCardInfo,
|
|
11069
|
-
onChange: (e) => setSaveCardInfo(e.target.checked)
|
|
10676
|
+
isOpen: show || autoTrigger,
|
|
10677
|
+
tokenKey: dcToken,
|
|
10678
|
+
setLoader: activeinCard === "form" ? setLoadingIframe : null
|
|
11070
10679
|
}
|
|
11071
|
-
),
|
|
11072
|
-
/* @__PURE__ */
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
/* @__PURE__ */ jsx32("
|
|
11076
|
-
|
|
10680
|
+
) }),
|
|
10681
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10682
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "zip", children: "ZIP" }),
|
|
10683
|
+
/* @__PURE__ */ jsx32("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_h = cardData == null ? void 0 : cardData.zipCode) != null ? _h : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
|
|
10684
|
+
(cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode })
|
|
10685
|
+
] }),
|
|
10686
|
+
customerId && /* @__PURE__ */ jsx32("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs19("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
|
|
10687
|
+
/* @__PURE__ */ jsx32(
|
|
10688
|
+
"input",
|
|
11077
10689
|
{
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
children: [
|
|
11084
|
-
/* @__PURE__ */ jsx32("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
|
|
11085
|
-
/* @__PURE__ */ jsx32(
|
|
11086
|
-
"path",
|
|
11087
|
-
{
|
|
11088
|
-
d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
|
|
11089
|
-
fill: "#161616"
|
|
11090
|
-
}
|
|
11091
|
-
)
|
|
11092
|
-
]
|
|
10690
|
+
type: "checkbox",
|
|
10691
|
+
id: "save_card",
|
|
10692
|
+
className: "toggle-checkbox",
|
|
10693
|
+
checked: saveCardInfo,
|
|
10694
|
+
onChange: (e) => setSaveCardInfo(e.target.checked)
|
|
11093
10695
|
}
|
|
11094
|
-
)
|
|
11095
|
-
/* @__PURE__ */ jsx32("
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
10696
|
+
),
|
|
10697
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "save_card", className: "toggle-label" }),
|
|
10698
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "save_card", children: "Save card for future payments " }),
|
|
10699
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-tooltip-wrapper", children: [
|
|
10700
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs19(
|
|
10701
|
+
"svg",
|
|
10702
|
+
{
|
|
10703
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10704
|
+
width: "20",
|
|
10705
|
+
height: "20",
|
|
10706
|
+
viewBox: "0 0 20 20",
|
|
10707
|
+
fill: "none",
|
|
10708
|
+
children: [
|
|
10709
|
+
/* @__PURE__ */ jsx32("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
|
|
10710
|
+
/* @__PURE__ */ jsx32(
|
|
10711
|
+
"path",
|
|
10712
|
+
{
|
|
10713
|
+
d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
|
|
10714
|
+
fill: "#161616"
|
|
10715
|
+
}
|
|
10716
|
+
)
|
|
10717
|
+
]
|
|
10718
|
+
}
|
|
10719
|
+
) }),
|
|
10720
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs19("p", { children: [
|
|
10721
|
+
"If checked, I agree to give the ",
|
|
10722
|
+
/* @__PURE__ */ jsx32("b", { children: merchantName || "merchant" }),
|
|
10723
|
+
" permission to charge this credit card for agreed-upon purchases in the future."
|
|
10724
|
+
] }) })
|
|
10725
|
+
] })
|
|
10726
|
+
] }) })
|
|
10727
|
+
] }),
|
|
10728
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx32("button", { type: "submit", style: { margin: 0 }, className: "pay-button", children: partialAmount ? formatUSD((_i = Number(partialAmount)) == null ? void 0 : _i.toFixed(2)) : formatUSD((_j = Number(amount)) == null ? void 0 : _j.toFixed(2)) }) })
|
|
10729
|
+
] })
|
|
10730
|
+
] }),
|
|
10731
|
+
/* @__PURE__ */ jsx32("div", { id: "ach", style: { display: activetab === "ach" ? "block" : "none" }, className: "tabcontent", children: /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10732
|
+
/* @__PURE__ */ jsxs19("div", { className: "frac-heading-card-wrap", children: [
|
|
10733
|
+
/* @__PURE__ */ jsx32("div", { className: "frac-backarrow", children: (bankList == null ? void 0 : bankList.length) > 0 && activeinBank === "form" && /* @__PURE__ */ jsxs19("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinBank("list"), children: [
|
|
10734
|
+
" ",
|
|
10735
|
+
/* @__PURE__ */ jsx32(IoArrowBack4, {})
|
|
10736
|
+
] }) }),
|
|
10737
|
+
/* @__PURE__ */ jsx32("h6", { className: "frac-card-payment-heading", children: "Bank Payment" })
|
|
11102
10738
|
] }),
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
} })
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
e.stopPropagation();
|
|
11114
|
-
}
|
|
11115
|
-
}, children: [
|
|
11116
|
-
/* @__PURE__ */ jsxs19("div", { className: "ach-scrl", style: {
|
|
11117
|
-
minHeight: "444px",
|
|
11118
|
-
maxHeight: "444px"
|
|
10739
|
+
activeinBank === "list" && (bankList == null ? void 0 : bankList.length) > 0 ? /* @__PURE__ */ jsxs19(Fragment18, { children: [
|
|
10740
|
+
/* @__PURE__ */ jsx32(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Banks", ListItems: bankList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Bank", otherButtonAction: () => {
|
|
10741
|
+
setActiveinBank("form");
|
|
10742
|
+
} }),
|
|
10743
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac", style: { padding: "0" }, children: /* @__PURE__ */ jsx32("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: formatUSD((_k = Number(bankAmount)) == null ? void 0 : _k.toFixed(2)) }) })
|
|
10744
|
+
] }) : /* @__PURE__ */ jsxs19("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
|
|
10745
|
+
if (e.key === "Enter" && loading) {
|
|
10746
|
+
e.preventDefault();
|
|
10747
|
+
e.stopPropagation();
|
|
10748
|
+
}
|
|
11119
10749
|
}, children: [
|
|
11120
|
-
/* @__PURE__ */ jsxs19("div", { className: "
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
10750
|
+
/* @__PURE__ */ jsxs19("div", { className: "ach-scrl", style: {
|
|
10751
|
+
minHeight: "444px",
|
|
10752
|
+
maxHeight: "444px"
|
|
10753
|
+
}, children: [
|
|
10754
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10755
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "nameonaccount", children: "Name on account" }),
|
|
10756
|
+
/* @__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 }),
|
|
10757
|
+
(achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
|
|
10758
|
+
] }),
|
|
10759
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10760
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "routingnumber", children: "Routing number" }),
|
|
10761
|
+
/* @__PURE__ */ jsx32(
|
|
10762
|
+
"input",
|
|
10763
|
+
{
|
|
10764
|
+
type: "text",
|
|
10765
|
+
id: "routingnumber",
|
|
10766
|
+
className: "form-control-frac",
|
|
10767
|
+
maxLength: 9,
|
|
10768
|
+
placeholder: "000000000",
|
|
10769
|
+
name: "routingNumber",
|
|
10770
|
+
value: (_m = achData == null ? void 0 : achData.routingNumber) != null ? _m : "",
|
|
10771
|
+
onChange: handleChangeAch
|
|
10772
|
+
}
|
|
10773
|
+
),
|
|
10774
|
+
(achError == null ? void 0 : achError.routingNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.routingNumber })
|
|
10775
|
+
] }),
|
|
10776
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10777
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "accountnumber", children: "Account number" }),
|
|
10778
|
+
/* @__PURE__ */ jsx32(
|
|
10779
|
+
"input",
|
|
10780
|
+
{
|
|
10781
|
+
type: "text",
|
|
10782
|
+
id: "accountnumber",
|
|
10783
|
+
className: "form-control-frac",
|
|
10784
|
+
maxLength: 16,
|
|
10785
|
+
placeholder: "0000000000",
|
|
10786
|
+
name: "accountNumber",
|
|
10787
|
+
value: (_n = achData == null ? void 0 : achData.accountNumber) != null ? _n : "",
|
|
10788
|
+
onChange: handleChangeAch
|
|
10789
|
+
}
|
|
10790
|
+
),
|
|
10791
|
+
(achError == null ? void 0 : achError.accountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.accountNumber })
|
|
10792
|
+
] }),
|
|
10793
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10794
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
|
|
10795
|
+
/* @__PURE__ */ jsx32(
|
|
10796
|
+
"input",
|
|
10797
|
+
{
|
|
10798
|
+
type: "text",
|
|
10799
|
+
id: "confirmaccountnumber",
|
|
10800
|
+
className: "form-control-frac",
|
|
10801
|
+
maxLength: 16,
|
|
10802
|
+
placeholder: "0000000000",
|
|
10803
|
+
name: "confirmAccountNumber",
|
|
10804
|
+
value: (_o = achData == null ? void 0 : achData.confirmAccountNumber) != null ? _o : "",
|
|
10805
|
+
onChange: handleChangeAch
|
|
10806
|
+
}
|
|
10807
|
+
),
|
|
10808
|
+
(achError == null ? void 0 : achError.confirmAccountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.confirmAccountNumber })
|
|
10809
|
+
] }),
|
|
10810
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10811
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "bankname", children: "Bank name" }),
|
|
10812
|
+
/* @__PURE__ */ jsx32(
|
|
10813
|
+
"input",
|
|
10814
|
+
{
|
|
10815
|
+
type: "text",
|
|
10816
|
+
id: "bankname",
|
|
10817
|
+
className: "form-control-frac",
|
|
10818
|
+
maxLength: 100,
|
|
10819
|
+
placeholder: "My Bank",
|
|
10820
|
+
name: "bankName",
|
|
10821
|
+
value: (_p = achData == null ? void 0 : achData.bankName) != null ? _p : "",
|
|
10822
|
+
onChange: handleChangeAch
|
|
10823
|
+
}
|
|
10824
|
+
),
|
|
10825
|
+
(achError == null ? void 0 : achError.bankName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.bankName })
|
|
10826
|
+
] }),
|
|
10827
|
+
((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10828
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "companyName", children: "Company name" }),
|
|
10829
|
+
/* @__PURE__ */ jsx32(
|
|
10830
|
+
"input",
|
|
10831
|
+
{
|
|
10832
|
+
type: "text",
|
|
10833
|
+
id: "companyName",
|
|
10834
|
+
className: "form-control-frac",
|
|
10835
|
+
maxLength: 100,
|
|
10836
|
+
placeholder: "My Company",
|
|
10837
|
+
name: "companyName",
|
|
10838
|
+
value: (_q = achData == null ? void 0 : achData.companyName) != null ? _q : "",
|
|
10839
|
+
onChange: handleChangeAch
|
|
10840
|
+
}
|
|
10841
|
+
),
|
|
10842
|
+
(achError == null ? void 0 : achError.companyName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.companyName })
|
|
10843
|
+
] }),
|
|
10844
|
+
/* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
|
|
10845
|
+
/* @__PURE__ */ jsx32("label", { htmlFor: "accounttype", children: "Select account type" }),
|
|
10846
|
+
/* @__PURE__ */ jsxs19("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_r = achData == null ? void 0 : achData.accountType) != null ? _r : "", onChange: handleChangeAch, children: [
|
|
10847
|
+
/* @__PURE__ */ jsx32("option", { value: "", children: "Select account" }),
|
|
10848
|
+
accountTypes.map((type) => /* @__PURE__ */ jsx32("option", { value: type.value, children: type.label }, type.value))
|
|
10849
|
+
] })
|
|
10850
|
+
] }),
|
|
10851
|
+
customerId && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
|
|
10852
|
+
/* @__PURE__ */ jsx32("input", { type: "checkbox", id: "saveACH", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHinfo, onChange: (e) => setSaveACHinfo(e.target.checked) }),
|
|
10853
|
+
/* @__PURE__ */ jsx32("label", { className: "saveachlabel", htmlFor: "saveACH", children: `By selecting this box, I authorize SkyFi, on behalf of ${merchantName || "merchant"}, to initiate a one-time electronic ACH debit from my bank account for the total amount displayed on this screen, including any applicable processing fee. I confirm that I am authorized to use this account and that the bank account information I provided is correct.` })
|
|
11215
10854
|
] })
|
|
11216
10855
|
] }),
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
"If checked, I agree to give the ",
|
|
11223
|
-
/* @__PURE__ */ jsx32("b", { children: merchantName || "merchant" }),
|
|
11224
|
-
" permission to charge this bank account for agreed-upon purchases in the future."
|
|
11225
|
-
] }) })
|
|
11226
|
-
] }),
|
|
11227
|
-
/* @__PURE__ */ jsx32("div", { className: "form-group-frac ", children: /* @__PURE__ */ jsx32("button", { className: "pay-button", style: { margin: "20px 0 0", display: onSubmit ? "none" : "block" }, type: "submit", children: formatUSD((_s = Number(bankAmount)) == null ? void 0 : _s.toFixed(2)) }) })
|
|
11228
|
-
] }) }) })
|
|
11229
|
-
] })
|
|
11230
|
-
] }) }) }) })
|
|
10856
|
+
/* @__PURE__ */ jsx32("div", { className: "form-group-frac ", children: /* @__PURE__ */ jsx32("button", { className: "pay-button", style: { margin: "20px 0 0" }, type: "submit", children: formatUSD((_s = Number(bankAmount)) == null ? void 0 : _s.toFixed(2)) }) })
|
|
10857
|
+
] })
|
|
10858
|
+
] }) })
|
|
10859
|
+
] }) }) }) })
|
|
10860
|
+
] })
|
|
11231
10861
|
] })
|
|
11232
10862
|
] })
|
|
11233
10863
|
] })
|
|
@@ -11257,9 +10887,7 @@ var PaymentWidget = ({
|
|
|
11257
10887
|
autoTrigger = false,
|
|
11258
10888
|
isPartial,
|
|
11259
10889
|
bankSurcharge,
|
|
11260
|
-
partialRef
|
|
11261
|
-
onSubmit,
|
|
11262
|
-
onLoad
|
|
10890
|
+
partialRef
|
|
11263
10891
|
}) => {
|
|
11264
10892
|
const [show, setShow] = useState11(false);
|
|
11265
10893
|
const [loading, setLoading] = useState11(false);
|
|
@@ -11350,7 +10978,6 @@ var PaymentWidget = ({
|
|
|
11350
10978
|
getskyosOrderDetails();
|
|
11351
10979
|
}
|
|
11352
10980
|
}, [show, isPartial, partialRef]);
|
|
11353
|
-
console.log(onLoad, "onLoad");
|
|
11354
10981
|
return /* @__PURE__ */ jsxs20(Fragment19, { children: [
|
|
11355
10982
|
/* @__PURE__ */ jsx33("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
|
|
11356
10983
|
/* @__PURE__ */ jsx33(DataScript, {}),
|
|
@@ -11363,7 +10990,7 @@ var PaymentWidget = ({
|
|
|
11363
10990
|
submitBtnText,
|
|
11364
10991
|
submitBtnIcon
|
|
11365
10992
|
] }),
|
|
11366
|
-
!autoTrigger ? /* @__PURE__ */ jsx33(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx33(ModelContentSky_default, __spreadProps(__spreadValues({
|
|
10993
|
+
!autoTrigger ? /* @__PURE__ */ jsx33(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx33(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount })) }) : /* @__PURE__ */ jsx33(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount }))
|
|
11367
10994
|
] });
|
|
11368
10995
|
};
|
|
11369
10996
|
export {
|