@pinerohit11/testwidget 0.1.60 → 0.1.62
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.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +815 -1226
- package/dist/index.mjs +753 -1164
- package/package.json +7 -2
package/dist/index.js
CHANGED
@@ -61,7 +61,7 @@ module.exports = __toCommonJS(index_exports);
|
|
61
61
|
|
62
62
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
63
63
|
var import_bootstrap_bundle_min = require("bootstrap/dist/js/bootstrap.bundle.min.js");
|
64
|
-
var
|
64
|
+
var import_react6 = __toESM(require("react"));
|
65
65
|
|
66
66
|
// src/app/components/Loader/Loader.tsx
|
67
67
|
var import_react2 = __toESM(require("react"));
|
@@ -192,8 +192,255 @@ var Loader = (props) => {
|
|
192
192
|
};
|
193
193
|
var Loader_default = Loader;
|
194
194
|
|
195
|
-
// src/app/components/RequestPayment/
|
196
|
-
var
|
195
|
+
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
196
|
+
var import_react3 = __toESM(require("react"));
|
197
|
+
var RequestPaymentstyles = (props) => {
|
198
|
+
return /* @__PURE__ */ import_react3.default.createElement("style", null, `
|
199
|
+
.paymentBtn {
|
200
|
+
background-color: black;
|
201
|
+
border: none;
|
202
|
+
color: white;
|
203
|
+
padding: 15px 32px;
|
204
|
+
text-align: center;
|
205
|
+
text-decoration: none;
|
206
|
+
display: inline-block;
|
207
|
+
font-size: 16px;
|
208
|
+
margin: 4px 2px;
|
209
|
+
cursor: pointer;
|
210
|
+
border-radius: 180px;
|
211
|
+
/* width: auto; */
|
212
|
+
}
|
213
|
+
/*****************************************REDESIGNING STYLES **************************************/
|
214
|
+
|
215
|
+
.request-payment-amount {
|
216
|
+
color: #161616;
|
217
|
+
text-align: center;
|
218
|
+
font-family: Inter;
|
219
|
+
font-size: 42px;
|
220
|
+
font-style: normal;
|
221
|
+
font-weight: 600;
|
222
|
+
text-transform: uppercase;
|
223
|
+
margin: 8px 0px !important;
|
224
|
+
}
|
225
|
+
|
226
|
+
.request-payment-orderid {
|
227
|
+
color: #727272;
|
228
|
+
text-align: center;
|
229
|
+
font-family: Inter;
|
230
|
+
font-size: 14px;
|
231
|
+
font-style: normal;
|
232
|
+
font-weight: 500;
|
233
|
+
margin: 0px;
|
234
|
+
}
|
235
|
+
|
236
|
+
.request-payment-pre-auth-merchantname {
|
237
|
+
color: #727272;
|
238
|
+
text-align: center;
|
239
|
+
font-family: Inter;
|
240
|
+
font-size: 14px;
|
241
|
+
font-style: normal;
|
242
|
+
font-weight: 500;
|
243
|
+
margin-top: 10px !important;
|
244
|
+
margin-bottom: 0px !important;
|
245
|
+
}
|
246
|
+
|
247
|
+
.request-payment-merchantname {
|
248
|
+
color: #727272;
|
249
|
+
text-align: center;
|
250
|
+
font-family: Inter;
|
251
|
+
font-size: 14px;
|
252
|
+
font-style: normal;
|
253
|
+
font-weight: 500;
|
254
|
+
margin-top: 20px !important;
|
255
|
+
margin-bottom: 0px !important;
|
256
|
+
}
|
257
|
+
|
258
|
+
.request-payment-close-popup {
|
259
|
+
position: absolute;
|
260
|
+
right: 20px;
|
261
|
+
top: 20px;
|
262
|
+
cursor: pointer;
|
263
|
+
}
|
264
|
+
|
265
|
+
.request-payment-amount-detail {
|
266
|
+
padding: 32px 0px;
|
267
|
+
border-bottom: 1px solid #E0DFE2;
|
268
|
+
}
|
269
|
+
|
270
|
+
.request-payment-popup-container {
|
271
|
+
padding: 0px !important;
|
272
|
+
border-radius: 12px !important;
|
273
|
+
}
|
274
|
+
|
275
|
+
.request-payment-input-form {
|
276
|
+
padding: 24px 48px 32px 48px;
|
277
|
+
}
|
278
|
+
|
279
|
+
.request-payment-input-label {
|
280
|
+
color: #727272;
|
281
|
+
font-family: Inter;
|
282
|
+
font-size: 12px;
|
283
|
+
font-style: normal;
|
284
|
+
font-weight: 500;
|
285
|
+
margin-bottom: 6px !important;
|
286
|
+
text-align: start !important;
|
287
|
+
width: 100% !important;
|
288
|
+
margin-bottom: 6px !important;
|
289
|
+
text-transform: uppercase;
|
290
|
+
}
|
291
|
+
|
292
|
+
.request-payment-input-box {
|
293
|
+
border-radius: 8px;
|
294
|
+
border: 1px solid #E0DFE2;
|
295
|
+
padding: 11px;
|
296
|
+
display: block;
|
297
|
+
width: 100%;
|
298
|
+
color: #161616;
|
299
|
+
margin-top: 6px !important;
|
300
|
+
font-family: Inter;
|
301
|
+
font-size: 14px;
|
302
|
+
font-style: normal;
|
303
|
+
font-weight: 500;
|
304
|
+
}
|
305
|
+
|
306
|
+
.request-payment-list-div {
|
307
|
+
margin-bottom: 12px;
|
308
|
+
}
|
309
|
+
|
310
|
+
.request-payment-submit-button {
|
311
|
+
border-radius: 80px;
|
312
|
+
background: #161616;
|
313
|
+
height: 48px;
|
314
|
+
padding: 12px 24px;
|
315
|
+
margin-top: 20px;
|
316
|
+
color: #fff;
|
317
|
+
width: 100% !important;
|
318
|
+
border: none !important;
|
319
|
+
font-family: Inter;
|
320
|
+
font-size: 16px;
|
321
|
+
font-style: normal;
|
322
|
+
font-weight: 500;
|
323
|
+
cursor: pointer;
|
324
|
+
}
|
325
|
+
|
326
|
+
.request-payment-submit-button:disabled {
|
327
|
+
cursor: not-allowed;
|
328
|
+
}
|
329
|
+
|
330
|
+
.request-payment-fractal-powerd-by {
|
331
|
+
color: #727272;
|
332
|
+
font-family: Inter;
|
333
|
+
font-size: 14px;
|
334
|
+
font-style: normal;
|
335
|
+
font-weight: 500;
|
336
|
+
margin-top: 16px;
|
337
|
+
display: flex;
|
338
|
+
text-align: center;
|
339
|
+
align-items: center;
|
340
|
+
justify-content: center;
|
341
|
+
gap: 6px;
|
342
|
+
}
|
343
|
+
|
344
|
+
.request-payment-fractal-powerd-by span {
|
345
|
+
color: #61C699;
|
346
|
+
}
|
347
|
+
|
348
|
+
.request-payment-success-container {
|
349
|
+
display: flex;
|
350
|
+
padding: 120px 48px 32px 48px;
|
351
|
+
flex-direction: column;
|
352
|
+
justify-content: center;
|
353
|
+
align-items: center;
|
354
|
+
}
|
355
|
+
|
356
|
+
.request-payment-success-tick {
|
357
|
+
border-radius: 1000px;
|
358
|
+
background: rgba(97, 198, 153, 0.14);
|
359
|
+
display: flex;
|
360
|
+
width: 60px;
|
361
|
+
height: 60px;
|
362
|
+
justify-content: center;
|
363
|
+
align-items: center;
|
364
|
+
}
|
365
|
+
|
366
|
+
.request-payment-success-text {
|
367
|
+
color: #161616;
|
368
|
+
text-align: center;
|
369
|
+
font-family: Inter;
|
370
|
+
font-size: 32px;
|
371
|
+
font-style: normal;
|
372
|
+
font-weight: 500;
|
373
|
+
line-height: 36px;
|
374
|
+
/* 112.5% */
|
375
|
+
letter-spacing: -0.64px;
|
376
|
+
margin-top: 20px;
|
377
|
+
margin-bottom: 5px !important;
|
378
|
+
}
|
379
|
+
|
380
|
+
.request-payment-success-subtext {
|
381
|
+
color: #727272;
|
382
|
+
text-align: center;
|
383
|
+
font-family: Inter;
|
384
|
+
font-size: 14px;
|
385
|
+
font-style: normal;
|
386
|
+
font-weight: 500;
|
387
|
+
line-height: 18px;
|
388
|
+
letter-spacing: -0.28px;
|
389
|
+
margin-bottom: 6rem !important;
|
390
|
+
margin-top: 8px !important;
|
391
|
+
}
|
392
|
+
|
393
|
+
.request-payment-success-btn-div {
|
394
|
+
display: flex;
|
395
|
+
align-items: flex-start;
|
396
|
+
justify-content: center;
|
397
|
+
gap: 8px;
|
398
|
+
}
|
399
|
+
|
400
|
+
.request-payment-success-tick-div {
|
401
|
+
display: flex;
|
402
|
+
justify-content: center;
|
403
|
+
align-items: center;
|
404
|
+
margin-top: 32px;
|
405
|
+
}
|
406
|
+
|
407
|
+
.request-payment-success-btn1 {
|
408
|
+
cursor: pointer;
|
409
|
+
border-radius: 80px;
|
410
|
+
border: 1px solid #E0DFE2;
|
411
|
+
display: flex;
|
412
|
+
padding: 12px 32px;
|
413
|
+
justify-content: center;
|
414
|
+
align-items: center;
|
415
|
+
gap: 6px;
|
416
|
+
background-color: #fff;
|
417
|
+
}
|
418
|
+
|
419
|
+
.request-payment-success-btn2 {
|
420
|
+
border-radius: 80px;
|
421
|
+
cursor: pointer;
|
422
|
+
border: 1px solid #E0DFE2;
|
423
|
+
display: flex;
|
424
|
+
padding: 12px 32px;
|
425
|
+
justify-content: center;
|
426
|
+
align-items: center;
|
427
|
+
gap: 6px;
|
428
|
+
background-color: #161616;
|
429
|
+
color: #fff;
|
430
|
+
font-family: Inter;
|
431
|
+
font-size: 14px;
|
432
|
+
font-style: normal;
|
433
|
+
font-weight: 500;
|
434
|
+
}
|
435
|
+
|
436
|
+
.request-payment-error-msg{
|
437
|
+
color: #dc3545;
|
438
|
+
font-family: Inter;
|
439
|
+
font-size: 12px;
|
440
|
+
}
|
441
|
+
`);
|
442
|
+
};
|
443
|
+
var RequestPaymentstyles_default = RequestPaymentstyles;
|
197
444
|
|
198
445
|
// src/app/components/baseurl.ts
|
199
446
|
var baseUrl = "https://staging-widget.fractalpay.com/";
|
@@ -207,15 +454,16 @@ var ErrorText = {
|
|
207
454
|
amountenter: "Please enter an amount",
|
208
455
|
amountvalid: "Please enter a valid amount",
|
209
456
|
phoneoremailrequired: "Phone or Email is required",
|
210
|
-
invalidemail: "
|
457
|
+
invalidemail: "Please enter a valid email",
|
211
458
|
invalidemailformat: "Invalid email format",
|
212
459
|
onlylettersallowed: "Only letters are allowed",
|
213
460
|
phonenumberlength: "Phone number should be 10 digits",
|
214
461
|
phonenumberrequired: "Please enter a phone number",
|
215
462
|
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
216
|
-
phonenumbervalid: "Please enter a valid phone number
|
463
|
+
phonenumbervalid: "Please enter a valid phone number",
|
217
464
|
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
218
465
|
orderidenter: "Please enter an order ID",
|
466
|
+
orderidrequired: "Order ID is required",
|
219
467
|
networkresponseerror: "Network response was not ok",
|
220
468
|
anerroroccured: "An error occurred. Please try again.",
|
221
469
|
montherror: "Please write month only 1 to 12",
|
@@ -223,1165 +471,506 @@ var ErrorText = {
|
|
223
471
|
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
224
472
|
};
|
225
473
|
|
226
|
-
// src/app/components/
|
227
|
-
function RequestPayment(props) {
|
228
|
-
const fractalpayClientKey = props.fractalpayClientKey;
|
229
|
-
const [show, setShow] = (0, import_react3.useState)(false);
|
230
|
-
const [loading, setLoading] = (0, import_react3.useState)(false);
|
231
|
-
const [errors, setErrors] = (0, import_react3.useState)({});
|
232
|
-
const [requestDetails, setRequestDetails] = (0, import_react3.useState)({
|
233
|
-
email: "",
|
234
|
-
amount: "",
|
235
|
-
phone_number: "",
|
236
|
-
order_id: "",
|
237
|
-
name: "",
|
238
|
-
fractalpayPublicKey: fractalpayClientKey
|
239
|
-
});
|
240
|
-
const [showConfirmationModal, setShowConfirmationModal] = (0, import_react3.useState)(false);
|
241
|
-
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
242
|
-
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
243
|
-
const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
|
244
|
-
const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
245
|
-
const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
|
246
|
-
const handleClose = () => {
|
247
|
-
setShow(false);
|
248
|
-
emptyFields();
|
249
|
-
setErrors({});
|
250
|
-
};
|
251
|
-
const handleShow = () => setShow(true);
|
252
|
-
const handleCloseConfirmationModal = () => setShowConfirmationModal(false);
|
253
|
-
const emptyFields = () => {
|
254
|
-
setRequestDetails({
|
255
|
-
email: "",
|
256
|
-
amount: "",
|
257
|
-
phone_number: "",
|
258
|
-
order_id: "",
|
259
|
-
name: "",
|
260
|
-
fractalpayPublicKey: fractalpayClientKey
|
261
|
-
});
|
262
|
-
};
|
263
|
-
const handleSubmit = (event) => {
|
264
|
-
let message = {
|
265
|
-
type: "preview.compiledcheck",
|
266
|
-
other: __spreadProps(__spreadValues({}, event), { status: true })
|
267
|
-
};
|
268
|
-
console.log("message: ", message);
|
269
|
-
window.parent.postMessage(message, "*");
|
270
|
-
};
|
271
|
-
const sendRequestPayment = async () => {
|
272
|
-
setErrors({});
|
273
|
-
if (!(requestDetails == null ? void 0 : requestDetails.email) && requestDetails.phone_number && !phoneNumberRegex(requestDetails.phone_number)) {
|
274
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
275
|
-
phone_number: "Phone number should be 10 digits"
|
276
|
-
}));
|
277
|
-
return;
|
278
|
-
}
|
279
|
-
if (!validateForm()) {
|
280
|
-
return;
|
281
|
-
}
|
282
|
-
try {
|
283
|
-
setLoading(true);
|
284
|
-
const formData = {
|
285
|
-
fractalpayPublicKey: fractalpayClientKey,
|
286
|
-
amount: requestDetails.amount,
|
287
|
-
phone_number: requestDetails.phone_number,
|
288
|
-
order_id: requestDetails.order_id,
|
289
|
-
action: "request",
|
290
|
-
name: requestDetails.name,
|
291
|
-
email: requestDetails.email
|
292
|
-
};
|
293
|
-
const response = await fetch(`${baseUrl}create-widget-order`, {
|
294
|
-
method: "POST",
|
295
|
-
headers: {
|
296
|
-
"Content-Type": "application/json"
|
297
|
-
},
|
298
|
-
body: JSON.stringify(formData)
|
299
|
-
});
|
300
|
-
if (!response.ok) {
|
301
|
-
throw new Error("Failed to create widget order");
|
302
|
-
}
|
303
|
-
const data = await response.json();
|
304
|
-
if (data) {
|
305
|
-
setShowConfirmationModal(true);
|
306
|
-
setShow(false);
|
307
|
-
emptyFields();
|
308
|
-
handleSubmit(data);
|
309
|
-
}
|
310
|
-
console.log(data);
|
311
|
-
setLoading(false);
|
312
|
-
} catch (error) {
|
313
|
-
console.log(error);
|
314
|
-
setLoading(false);
|
315
|
-
}
|
316
|
-
};
|
317
|
-
const validateAmount = (amount) => amoutRegex.test(amount);
|
318
|
-
const PositiveAmount = (amount) => positiveAmountRegex.test(amount);
|
319
|
-
const handleChange = (e) => {
|
320
|
-
const { value } = e.target;
|
321
|
-
const token = e.target.dataset.token;
|
322
|
-
setRequestDetails(__spreadProps(__spreadValues({}, requestDetails), { [token]: value }));
|
323
|
-
if (token === "name" && !isAlpha(value)) {
|
324
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
325
|
-
[token]: ErrorText.onlylettersallowed
|
326
|
-
}));
|
327
|
-
return;
|
328
|
-
}
|
329
|
-
if (token === "phone_number" && !phoneNumberRegex(value)) {
|
330
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
331
|
-
[token]: ErrorText.phonenumberlength
|
332
|
-
}));
|
333
|
-
return;
|
334
|
-
}
|
335
|
-
if (token === "email" && !isValidEmail(value)) {
|
336
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
337
|
-
email: ErrorText.invalidemailformat
|
338
|
-
}));
|
339
|
-
return;
|
340
|
-
}
|
341
|
-
if (token === "amount" && !value) {
|
342
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
343
|
-
amount: ErrorText.amountrequired
|
344
|
-
}));
|
345
|
-
return;
|
346
|
-
}
|
347
|
-
if (token === "amount" && !PositiveAmount(value)) {
|
348
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
349
|
-
amount: ErrorText.amountpositive
|
350
|
-
}));
|
351
|
-
return;
|
352
|
-
}
|
353
|
-
if (token === "amount" && parseFloat(value) === 0) {
|
354
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
355
|
-
amount: ErrorText.amountzero
|
356
|
-
}));
|
357
|
-
return;
|
358
|
-
}
|
359
|
-
if (value) {
|
360
|
-
setErrors(__spreadProps(__spreadValues({}, errors), { [token]: "" }));
|
361
|
-
}
|
362
|
-
};
|
363
|
-
const handleAmountBlur = () => {
|
364
|
-
const value = requestDetails.amount;
|
365
|
-
if (value && !value.includes(".")) {
|
366
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
367
|
-
amount: `${value}.00`
|
368
|
-
}));
|
369
|
-
}
|
370
|
-
};
|
371
|
-
const validateForm = () => {
|
372
|
-
let newErrors = {};
|
373
|
-
if (!requestDetails.name) newErrors.name = ErrorText.namerequired;
|
374
|
-
if (!requestDetails.amount) newErrors.amount = ErrorText.amountrequired;
|
375
|
-
if (!requestDetails.phone_number && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone_number = ErrorText.phoneoremailrequired;
|
376
|
-
if (!requestDetails.email && !requestDetails.phone_number) newErrors.email = ErrorText.phoneoremailrequired;
|
377
|
-
if (!requestDetails.phone_number && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
378
|
-
setErrors(newErrors);
|
379
|
-
return Object.keys(newErrors).length === 0;
|
380
|
-
};
|
381
|
-
(0, import_react3.useEffect)(() => {
|
382
|
-
if (props.amount) {
|
383
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), { amount: props.amount }));
|
384
|
-
}
|
385
|
-
}, [props.amount]);
|
386
|
-
const handleKeyDown = (e) => {
|
387
|
-
if (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
388
|
-
e.preventDefault();
|
389
|
-
}
|
390
|
-
};
|
391
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement(Loader_default, { loading }), /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ import_react3.default.createElement(
|
392
|
-
import_react_bootstrap.Modal,
|
393
|
-
{
|
394
|
-
show,
|
395
|
-
onHide: handleClose,
|
396
|
-
size: "lg",
|
397
|
-
backdrop: "static",
|
398
|
-
keyboard: false
|
399
|
-
},
|
400
|
-
/* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Modal.Header, { closeButton: true }, /* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Modal.Title, null, "Request Payment")),
|
401
|
-
/* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Modal.Body, { id: "Checkout" }, /* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Form, null, /* @__PURE__ */ import_react3.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react3.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "FULL NAME *"), /* @__PURE__ */ import_react3.default.createElement(
|
402
|
-
"input",
|
403
|
-
{
|
404
|
-
className: "form-control",
|
405
|
-
type: "text",
|
406
|
-
placeholder: "Full Name",
|
407
|
-
"data-token": "name",
|
408
|
-
onChange: handleChange
|
409
|
-
}
|
410
|
-
), errors.name && /* @__PURE__ */ import_react3.default.createElement("small", { className: "text-danger" }, errors.name)), /* @__PURE__ */ import_react3.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react3.default.createElement("label", { htmlFor: "requestPhoneNumber", className: "form-label" }, "Phone Number"), /* @__PURE__ */ import_react3.default.createElement(
|
411
|
-
"input",
|
412
|
-
{
|
413
|
-
maxLength: 10,
|
414
|
-
className: "form-control",
|
415
|
-
onChange: (e) => {
|
416
|
-
handleChange(e);
|
417
|
-
},
|
418
|
-
placeholder: "Phone Number",
|
419
|
-
type: "text",
|
420
|
-
"data-token": "phone_number"
|
421
|
-
}
|
422
|
-
), errors.phone_number && /* @__PURE__ */ import_react3.default.createElement("small", { className: "text-danger" }, errors.phone_number)), /* @__PURE__ */ import_react3.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react3.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "EMAIL"), /* @__PURE__ */ import_react3.default.createElement(
|
423
|
-
"input",
|
424
|
-
{
|
425
|
-
className: "form-control",
|
426
|
-
type: "text",
|
427
|
-
placeholder: "Email",
|
428
|
-
onChange: handleChange,
|
429
|
-
"data-token": "email"
|
430
|
-
}
|
431
|
-
), errors.email && /* @__PURE__ */ import_react3.default.createElement("small", { className: "text-danger" }, errors.email)), /* @__PURE__ */ import_react3.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react3.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "AMOUNT *"), /* @__PURE__ */ import_react3.default.createElement("div", { className: "input-group" }, /* @__PURE__ */ import_react3.default.createElement("span", { className: "input-group-text" }, "$"), /* @__PURE__ */ import_react3.default.createElement(
|
432
|
-
"input",
|
433
|
-
{
|
434
|
-
"data-token": "amount",
|
435
|
-
placeholder: "Amount",
|
436
|
-
min: 0,
|
437
|
-
type: "number",
|
438
|
-
className: "form-control",
|
439
|
-
value: requestDetails.amount,
|
440
|
-
onChange: handleChange,
|
441
|
-
onBlur: handleAmountBlur,
|
442
|
-
onKeyDown: handleKeyDown,
|
443
|
-
onFocus: (e) => e.target.addEventListener("wheel", function(e2) {
|
444
|
-
e2.preventDefault();
|
445
|
-
}, { passive: false })
|
446
|
-
}
|
447
|
-
)), errors.amount && /* @__PURE__ */ import_react3.default.createElement("small", { className: "text-danger" }, errors.amount)), /* @__PURE__ */ import_react3.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react3.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "ORDER ID"), /* @__PURE__ */ import_react3.default.createElement(
|
448
|
-
"input",
|
449
|
-
{
|
450
|
-
className: "form-control",
|
451
|
-
type: "text",
|
452
|
-
placeholder: "Order Id",
|
453
|
-
onChange: handleChange,
|
454
|
-
"data-token": "order_id"
|
455
|
-
}
|
456
|
-
), errors.order_id && /* @__PURE__ */ import_react3.default.createElement("small", { className: "text-danger" }, errors.order_id)), /* @__PURE__ */ import_react3.default.createElement(
|
457
|
-
import_react_bootstrap.Button,
|
458
|
-
{
|
459
|
-
type: "button",
|
460
|
-
className: "PayButton",
|
461
|
-
onClick: sendRequestPayment,
|
462
|
-
disabled: loading
|
463
|
-
},
|
464
|
-
loading ? "Loading..." : "Send Request"
|
465
|
-
)), /* @__PURE__ */ import_react3.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react3.default.createElement(
|
466
|
-
"svg",
|
467
|
-
{
|
468
|
-
xmlns: "http://www.w3.org/2000/svg",
|
469
|
-
width: "20",
|
470
|
-
height: "20",
|
471
|
-
viewBox: "0 0 26 26"
|
472
|
-
},
|
473
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
474
|
-
"path",
|
475
|
-
{
|
476
|
-
fill: "currentColor",
|
477
|
-
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
478
|
-
}
|
479
|
-
)
|
480
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react3.default.createElement(
|
481
|
-
"img",
|
482
|
-
{
|
483
|
-
src: "https://ui.fractalpay.com/favicon.ico",
|
484
|
-
alt: "Fractal logo",
|
485
|
-
className: "powered-logo"
|
486
|
-
}
|
487
|
-
)))
|
488
|
-
), /* @__PURE__ */ import_react3.default.createElement(
|
489
|
-
import_react_bootstrap.Modal,
|
490
|
-
{
|
491
|
-
className: "payment-suc",
|
492
|
-
show: showConfirmationModal,
|
493
|
-
onHide: handleCloseConfirmationModal
|
494
|
-
},
|
495
|
-
/* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Modal.Header, { closeButton: true }),
|
496
|
-
/* @__PURE__ */ import_react3.default.createElement(import_react_bootstrap.Modal.Body, null, /* @__PURE__ */ import_react3.default.createElement(
|
497
|
-
"svg",
|
498
|
-
{
|
499
|
-
width: "60",
|
500
|
-
height: "60",
|
501
|
-
viewBox: "0 0 60 60",
|
502
|
-
fill: "none",
|
503
|
-
xmlns: "http://www.w3.org/2000/svg"
|
504
|
-
},
|
505
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
506
|
-
"rect",
|
507
|
-
{
|
508
|
-
x: "0.5",
|
509
|
-
y: "0.5",
|
510
|
-
width: "59",
|
511
|
-
height: "59",
|
512
|
-
rx: "29.5",
|
513
|
-
stroke: "#31B379"
|
514
|
-
}
|
515
|
-
),
|
516
|
-
/* @__PURE__ */ import_react3.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react3.default.createElement(
|
517
|
-
"path",
|
518
|
-
{
|
519
|
-
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
520
|
-
fill: "#31B379"
|
521
|
-
}
|
522
|
-
)),
|
523
|
-
/* @__PURE__ */ import_react3.default.createElement("defs", null, /* @__PURE__ */ import_react3.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react3.default.createElement(
|
524
|
-
"rect",
|
525
|
-
{
|
526
|
-
width: "22",
|
527
|
-
height: "22",
|
528
|
-
fill: "white",
|
529
|
-
transform: "translate(19.5 19.0039)"
|
530
|
-
}
|
531
|
-
)))
|
532
|
-
), /* @__PURE__ */ import_react3.default.createElement("h2", null, "Payment link has been ", /* @__PURE__ */ import_react3.default.createElement("br", null), " sent successfully"))
|
533
|
-
)));
|
534
|
-
}
|
535
|
-
|
536
|
-
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
474
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
537
475
|
var import_react5 = __toESM(require("react"));
|
538
|
-
var import_react_bootstrap2 = require("react-bootstrap");
|
539
|
-
var import_react_toastify = require("react-toastify");
|
540
|
-
var import_ReactToastify = require("react-toastify/dist/ReactToastify.css");
|
541
476
|
|
542
|
-
// src/app/components/
|
477
|
+
// src/app/components/CustomModal/CustomModal2styles.tsx
|
543
478
|
var import_react4 = __toESM(require("react"));
|
544
|
-
var
|
479
|
+
var CustomModal2styles = (props) => {
|
545
480
|
return /* @__PURE__ */ import_react4.default.createElement("style", null, `
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
padding: 15px 32px;
|
551
|
-
text-align: center;
|
552
|
-
text-decoration: none;
|
553
|
-
display: inline-block;
|
554
|
-
font-size: 16px;
|
555
|
-
margin: 4px 2px;
|
556
|
-
cursor: pointer;
|
557
|
-
border-radius: 180px;
|
558
|
-
/* width: auto; */
|
559
|
-
}
|
560
|
-
.modal-backdrop {
|
561
|
-
display: none !important;
|
562
|
-
}
|
563
|
-
/* CSS for modal */
|
564
|
-
.modal {
|
565
|
-
/* display: none; */
|
566
|
-
position: fixed;
|
567
|
-
z-index: 5555;
|
568
|
-
left: 0;
|
569
|
-
top: 0;
|
570
|
-
width: 100%;
|
571
|
-
height: 100%;
|
572
|
-
overflow: auto;
|
573
|
-
background-color: rgba(0, 0, 0, 0.4);
|
481
|
+
.fractal-input::placeholder {
|
482
|
+
color: #35254D;
|
483
|
+
opacity: 1;
|
484
|
+
font-size: 15px;
|
574
485
|
}
|
575
486
|
|
576
|
-
.input-
|
577
|
-
|
578
|
-
|
579
|
-
.error {
|
580
|
-
border: 1px solid red;
|
581
|
-
background-color: #ffe6e6; /* light red background color */
|
582
|
-
}
|
583
|
-
.form-group {
|
584
|
-
margin-bottom: 15px;
|
585
|
-
}
|
586
|
-
.input-container input {
|
587
|
-
padding-right: 25px;
|
588
|
-
}
|
589
|
-
|
590
|
-
.modal-header {
|
591
|
-
border-bottom: 0 !important;
|
592
|
-
padding-top: 0 !important;
|
593
|
-
}
|
594
|
-
|
595
|
-
/* CSS for modal content */
|
596
|
-
.modal-content {
|
597
|
-
/* height: 90vh !important; */
|
598
|
-
height: auto;
|
599
|
-
padding: 20px 5px;
|
600
|
-
/* background: #fff; */
|
601
|
-
border-radius: 20px !important;
|
602
|
-
position: relative;
|
603
|
-
width: 100%;
|
604
|
-
max-width: 100%;
|
605
|
-
margin: 30px auto;
|
606
|
-
overflow: inherit !important;
|
607
|
-
}
|
608
|
-
.input-container {
|
609
|
-
display: flex;
|
610
|
-
align-items: baseline;
|
487
|
+
.fractal-input::-ms-input-placeholder {
|
488
|
+
color: #35254D;
|
489
|
+
font-size: 15px;
|
611
490
|
}
|
612
491
|
|
613
|
-
.
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
.PayButton {
|
622
|
-
outline: 0 !important;
|
623
|
-
height: 46px;
|
624
|
-
font-size: 16px;
|
625
|
-
background-color: #161616 !important;
|
492
|
+
.trigger{
|
493
|
+
text-align: center;
|
494
|
+
padding: 7px 13px;
|
495
|
+
background: #3e3e3e;
|
496
|
+
color: #fff;
|
497
|
+
font-size: 15px;
|
498
|
+
outline: none;
|
626
499
|
border: none;
|
627
|
-
|
628
|
-
|
629
|
-
border-radius: 180px;
|
630
|
-
margin: 10px 0;
|
631
|
-
}
|
632
|
-
|
633
|
-
#PayButton:hover {
|
634
|
-
background-color: #61c699 !important;
|
635
|
-
}
|
636
|
-
|
637
|
-
#PayButton:active {
|
638
|
-
background-color: #61c699 !important;
|
639
|
-
}
|
640
|
-
|
641
|
-
#PayButton:disabled {
|
642
|
-
background: rgb(172, 44, 170) !important;
|
643
|
-
color: #fff !important;
|
644
|
-
}
|
645
|
-
|
646
|
-
label {
|
647
|
-
color: rgba(53, 37, 77, 0.6);
|
648
|
-
margin-bottom: 2px;
|
649
|
-
text-transform: uppercase;
|
650
|
-
font-family: "IBM Plex Mono", monospace;
|
651
|
-
font-weight: 500;
|
652
|
-
font-size: 12px;
|
653
|
-
}
|
654
|
-
|
655
|
-
.input-container {
|
656
|
-
position: relative;
|
500
|
+
border-radius: 5px;
|
501
|
+
font-family: cursive;
|
657
502
|
}
|
658
503
|
|
659
|
-
.
|
660
|
-
|
661
|
-
|
504
|
+
.fractal-popup {
|
505
|
+
position: fixed;
|
506
|
+
z-index: 9999;
|
507
|
+
top: 0;
|
508
|
+
right: 0;
|
509
|
+
bottom: 0;
|
510
|
+
left: 0;
|
662
511
|
|
663
|
-
#Checkout {
|
664
|
-
/* z-index: 100001; */
|
665
512
|
width: 100%;
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
border: 1px solid #e0dfe2;
|
670
|
-
display: block;
|
671
|
-
}
|
672
|
-
|
673
|
-
.container {
|
674
|
-
margin-top: 10px;
|
675
|
-
}
|
676
|
-
|
677
|
-
.powered-logo {
|
678
|
-
width: 18px;
|
679
|
-
height: 18px;
|
680
|
-
/* float: right; */
|
681
|
-
padding: 2px;
|
682
|
-
background: #000000;
|
683
|
-
border-radius: 4px;
|
684
|
-
/* margin-left: 5px; */
|
685
|
-
}
|
686
|
-
|
687
|
-
.modal-content .container {
|
688
|
-
width: 100%;
|
689
|
-
}
|
690
|
-
|
691
|
-
.powerd-by-part {
|
513
|
+
height: 100%;
|
514
|
+
background-color: rgba(0, 0, 0, 0.5);
|
515
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
692
516
|
display: flex;
|
693
517
|
justify-content: center;
|
694
518
|
align-items: center;
|
695
|
-
gap: 5px;
|
696
|
-
}
|
697
|
-
|
698
|
-
.errorText {
|
699
|
-
color: red;
|
700
519
|
}
|
701
520
|
|
702
|
-
.
|
521
|
+
.fractal-popup-content {
|
522
|
+
background-color: white;
|
523
|
+
padding:20px;
|
524
|
+
border-radius: 0.5rem;
|
525
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
526
|
+
box-sizing: border-box;
|
703
527
|
position: relative;
|
704
528
|
}
|
705
529
|
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
font-size: 13px;
|
710
|
-
background-color: #161616 !important;
|
711
|
-
border: #161616 1px solid !important;
|
712
|
-
color: #fff !important;
|
713
|
-
display: inline-block !important;
|
714
|
-
border-radius: 180px !important;
|
715
|
-
}
|
716
|
-
|
717
|
-
.paynowbtn:hover {
|
718
|
-
background-color: #fff !important;
|
719
|
-
border: #161616 1px solid !important;
|
720
|
-
color: #161616 !important;
|
721
|
-
}
|
530
|
+
@media only screen and (min-width: 600px){
|
531
|
+
.fractal-popup-content {
|
532
|
+
width: 500px;
|
722
533
|
|
723
|
-
.ButtonGroup__root.btn-group {
|
724
|
-
margin: 10px 0 20px 0;
|
725
|
-
}
|
726
|
-
|
727
|
-
.ButtonGroup__root.btn-group button {
|
728
|
-
background: #000;
|
729
|
-
border: 0;
|
730
|
-
margin: 0 5px;
|
731
|
-
border-radius: 4px !important;
|
732
|
-
}
|
733
|
-
|
734
|
-
.ButtonGroup__root.btn-group button:hover,
|
735
|
-
.ButtonGroup__root.btn-group button:focus {
|
736
|
-
background: #333 !important;
|
737
|
-
}
|
738
|
-
|
739
|
-
.input-group button {
|
740
|
-
background: #000;
|
741
|
-
border: 0;
|
742
|
-
margin: 0 5px;
|
743
|
-
border-radius: 0 4px 4px 0 !important;
|
744
|
-
}
|
745
|
-
|
746
|
-
.input-group button:hover,
|
747
|
-
.input-group button:focus {
|
748
|
-
background: #333 !important;
|
749
|
-
}
|
750
|
-
|
751
|
-
.payment-suc {
|
752
|
-
text-align: center;
|
753
|
-
}
|
754
|
-
|
755
|
-
.payment-suc .modal-dialog {
|
756
|
-
min-width: 600px;
|
757
|
-
padding: 50px 0;
|
758
|
-
}
|
759
|
-
|
760
|
-
.payment-suc h2 {
|
761
|
-
font-size: 24px;
|
762
|
-
color: #35254d;
|
763
|
-
font-weight: 500;
|
764
|
-
padding: 15px 0;
|
765
|
-
}
|
766
|
-
|
767
|
-
.payment-suc p {
|
768
|
-
font-size: 14px;
|
769
|
-
color: #9a92a6;
|
770
|
-
font-weight: 500;
|
771
|
-
}
|
772
|
-
|
773
|
-
.payment-suc .btn-close {
|
774
|
-
position: absolute;
|
775
|
-
right: 20px;
|
776
|
-
}
|
777
|
-
|
778
|
-
.Checkout.container iframe {
|
779
|
-
width: 100%;
|
780
|
-
overflow: hidden !important;
|
781
|
-
}
|
782
|
-
|
783
|
-
.responsive-tbl {
|
784
|
-
overflow-x: auto;
|
785
|
-
}
|
786
|
-
body {
|
787
|
-
position: relative !important;
|
788
|
-
}
|
789
|
-
thead,
|
790
|
-
tbody,
|
791
|
-
tfoot,
|
792
|
-
tr,
|
793
|
-
td,
|
794
|
-
th {
|
795
|
-
white-space: nowrap;
|
796
|
-
}
|
797
|
-
|
798
|
-
.button-group {
|
799
|
-
display: flex;
|
800
|
-
gap: 10px;
|
801
|
-
}
|
802
|
-
.rqstonClickbtn {
|
803
|
-
color: #fff;
|
804
|
-
background-color: #337ab7;
|
805
|
-
border-color: #2e6da4;
|
806
|
-
}
|
807
|
-
.loading-animation {
|
808
|
-
position: absolute;
|
809
|
-
top: 50%;
|
810
|
-
left: 50%;
|
811
|
-
transform: translate(-50%, -50%);
|
812
|
-
}
|
813
|
-
|
814
|
-
.spinner {
|
815
|
-
width: 40px;
|
816
|
-
height: 40px;
|
817
|
-
border-radius: 50%;
|
818
|
-
border: 4px solid #f3f3f3;
|
819
|
-
border-top: 4px solid black;
|
820
|
-
animation: spin 1s linear infinite;
|
821
|
-
}
|
822
|
-
|
823
|
-
@keyframes spin {
|
824
|
-
0% {
|
825
|
-
transform: rotate(0deg);
|
826
|
-
}
|
827
|
-
100% {
|
828
|
-
transform: rotate(360deg);
|
829
534
|
}
|
830
535
|
}
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
border: 0px solid #ccc;
|
835
|
-
padding: 20px;
|
836
|
-
border-radius: 10px;
|
837
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
838
|
-
align-items: baseline;
|
536
|
+
@media only screen and (max-width: 600px){
|
537
|
+
.fractal-popup-content {
|
538
|
+
width: 350px;
|
839
539
|
}
|
840
|
-
.payment-container {
|
841
|
-
border: 0px solid #ccc;
|
842
|
-
padding: 20px;
|
843
|
-
border-radius: 10px;
|
844
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
845
|
-
} */
|
846
|
-
|
847
|
-
.payment-row {
|
848
|
-
display: flex;
|
849
|
-
align-items: center;
|
850
|
-
margin-bottom: 20px;
|
851
|
-
}
|
852
|
-
|
853
|
-
.payment-row label {
|
854
|
-
width: 150px;
|
855
|
-
font-weight: bold;
|
856
|
-
margin-right: 10px;
|
857
|
-
}
|
858
|
-
|
859
|
-
.payment-row input {
|
860
|
-
flex-grow: 1;
|
861
|
-
margin-right: 10px;
|
862
540
|
}
|
863
|
-
|
864
|
-
.
|
865
|
-
|
866
|
-
}
|
867
|
-
.payment-row {
|
868
|
-
display: flex;
|
869
|
-
flex-direction: column;
|
870
|
-
border-radius: 10px;
|
871
|
-
margin-top: 10px;
|
872
|
-
}
|
873
|
-
|
874
|
-
.input-wrapper {
|
875
|
-
flex: 1;
|
876
|
-
}
|
877
|
-
|
878
|
-
.button-wrapper {
|
879
|
-
margin-left: 10px;
|
880
|
-
}
|
881
|
-
.input-container {
|
882
|
-
display: flex;
|
883
|
-
flex-direction: column;
|
884
|
-
}
|
885
|
-
|
886
|
-
.export-btn1 {
|
887
|
-
background: black;
|
888
|
-
color: white;
|
889
|
-
height: 35px;
|
890
|
-
width: 68px;
|
891
|
-
border-radius: 5px;
|
892
|
-
margin-top: 20px;
|
893
|
-
}
|
894
|
-
|
895
|
-
.export-btn {
|
896
|
-
background: black;
|
897
|
-
color: white;
|
898
|
-
height: 35px;
|
899
|
-
width: 68px;
|
900
|
-
border-radius: 5px;
|
901
|
-
margin-left: 14px;
|
902
|
-
}
|
903
|
-
|
904
|
-
.payment-popup {
|
905
|
-
padding: 12px 20px;
|
906
|
-
background: #fff;
|
907
|
-
border-radius: 20px;
|
908
|
-
position: relative;
|
909
|
-
width: 100%;
|
910
|
-
margin: 0 auto;
|
911
|
-
}
|
912
|
-
|
913
|
-
// .modal-content {
|
914
|
-
// max-width: 420px;
|
915
|
-
// margin-top: 5%;
|
916
|
-
// }
|
917
|
-
@media (max-width: 460px) {
|
918
|
-
.payment-popup {
|
919
|
-
padding: 35px 25px;
|
920
|
-
width: 98%;
|
541
|
+
@media only screen and (max-width: 450px){
|
542
|
+
.fractal-popup-content {
|
543
|
+
width: 300px;
|
921
544
|
}
|
922
545
|
}
|
923
|
-
|
924
|
-
|
546
|
+
.close-popup {
|
547
|
+
max-height:25px;
|
548
|
+
width:25px;
|
549
|
+
height: 25px;
|
550
|
+
color: #999;
|
925
551
|
position: absolute;
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
padding: 0;
|
930
|
-
background: none !important;
|
931
|
-
}
|
932
|
-
|
933
|
-
.amex {
|
934
|
-
background-image: url("../amex.svg");
|
935
|
-
}
|
936
|
-
|
937
|
-
.visa {
|
938
|
-
background-image: url("../visa.svg");
|
939
|
-
}
|
940
|
-
|
941
|
-
.mastercard {
|
942
|
-
background-image: url("../mastercard.svg");
|
943
|
-
}
|
944
|
-
|
945
|
-
.discover {
|
946
|
-
background-image: url("../discover.svg");
|
947
|
-
}
|
948
|
-
|
949
|
-
.expiry-date-group {
|
950
|
-
float: left;
|
951
|
-
width: 30%;
|
952
|
-
}
|
953
|
-
|
954
|
-
.expiry-date-group input {
|
955
|
-
width: calc(100% + 1px);
|
956
|
-
border-top-right-radius: 0;
|
957
|
-
border-bottom-right-radius: 0;
|
958
|
-
}
|
959
|
-
|
960
|
-
.expiry-date-group input:focus {
|
961
|
-
position: relative;
|
962
|
-
z-index: 10;
|
963
|
-
}
|
964
|
-
|
965
|
-
.security-code-group {
|
966
|
-
float: right;
|
967
|
-
width: 40%;
|
968
|
-
position: relative;
|
969
|
-
}
|
970
|
-
|
971
|
-
.security-code-group input {
|
972
|
-
border-top-left-radius: 0;
|
973
|
-
border-bottom-left-radius: 0;
|
974
|
-
}
|
975
|
-
|
976
|
-
.zip-code-group {
|
977
|
-
clear: both;
|
978
|
-
}
|
979
|
-
|
980
|
-
#submitButton {
|
981
|
-
outline: 0 !important;
|
982
|
-
height: 46px;
|
983
|
-
font-size: 16px;
|
984
|
-
background-color: #161616 !important;
|
985
|
-
border: none;
|
986
|
-
display: block;
|
987
|
-
width: 100%;
|
988
|
-
border-radius: 180px;
|
989
|
-
}
|
990
|
-
#submitRequestButton {
|
991
|
-
outline: 0 !important;
|
992
|
-
height: 46px;
|
993
|
-
font-size: 16px;
|
994
|
-
background-color: #161616 !important;
|
995
|
-
border: none;
|
996
|
-
display: block;
|
997
|
-
width: 100%;
|
998
|
-
border-radius: 180px;
|
999
|
-
}
|
1000
|
-
#PayButton {
|
1001
|
-
outline: 0 !important;
|
1002
|
-
height: 46px;
|
1003
|
-
font-size: 16px;
|
1004
|
-
background-color: #161616 !important;
|
1005
|
-
border: none;
|
1006
|
-
display: block;
|
1007
|
-
width: 100%;
|
1008
|
-
border-radius: 180px;
|
1009
|
-
}
|
1010
|
-
|
1011
|
-
#PayButton:hover {
|
1012
|
-
background-color: #61c699 !important;
|
1013
|
-
}
|
1014
|
-
|
1015
|
-
#PayButton:active {
|
1016
|
-
background-color: #61c699 !important;
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
#PayButton:disabled {
|
1020
|
-
background: rgb(172, 44, 170) !important;
|
1021
|
-
color: #fff !important;
|
1022
|
-
}
|
1023
|
-
|
1024
|
-
.form-control {
|
1025
|
-
color: #35254d;
|
1026
|
-
}
|
1027
|
-
|
1028
|
-
.container {
|
1029
|
-
margin-top: 10px;
|
1030
|
-
}
|
1031
|
-
|
1032
|
-
#Checkout {
|
1033
|
-
z-index: 100001;
|
1034
|
-
width: 100%;
|
1035
|
-
height: 100%;
|
1036
|
-
min-height: 100%;
|
1037
|
-
background: 0 0 #ffffff;
|
1038
|
-
border-radius: 24px;
|
1039
|
-
border: 1px solid #e0dfe2;
|
1040
|
-
margin-left: auto;
|
1041
|
-
margin-right: auto;
|
1042
|
-
display: block;
|
1043
|
-
}
|
1044
|
-
|
1045
|
-
#Checkout .header {
|
1046
|
-
display: flex;
|
1047
|
-
/* Enables Flexbox */
|
1048
|
-
justify-content: center;
|
1049
|
-
/* Centers content horizontally */
|
1050
|
-
align-items: center;
|
1051
|
-
/* Centers content vertically */
|
552
|
+
top: 2px;
|
553
|
+
right: 4px;
|
554
|
+
z-index: 7;
|
1052
555
|
text-align: center;
|
1053
|
-
padding: 8px;
|
1054
|
-
border-bottom: 1px solid #dedede;
|
1055
|
-
margin: 0 10px 20px 10px;
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
#Checkout .header button {
|
1059
|
-
border: 0;
|
1060
|
-
background: none;
|
1061
|
-
padding: 0;
|
1062
|
-
}
|
1063
|
-
|
1064
|
-
#Checkout h1 {
|
1065
|
-
margin: 0;
|
1066
|
-
flex: 1;
|
1067
|
-
padding: 10px;
|
1068
|
-
/* Allows the title to grow and fill the space for centering */
|
1069
|
-
font-size: 23px;
|
1070
|
-
font-weight: 500;
|
1071
|
-
color: #35254d;
|
1072
|
-
align-items: start;
|
1073
|
-
display: flex;
|
1074
|
-
}
|
1075
|
-
|
1076
|
-
#Checkout > form {
|
1077
|
-
margin: 0 25px 10px 25px;
|
1078
|
-
}
|
1079
|
-
|
1080
|
-
label {
|
1081
|
-
color: rgba(53, 37, 77, 0.6);
|
1082
|
-
margin-bottom: 2px;
|
1083
|
-
text-transform: uppercase;
|
1084
|
-
font-family: "IBM Plex Mono", monospace;
|
1085
|
-
font-weight: 500;
|
1086
|
-
font-size: 12px;
|
1087
|
-
}
|
1088
|
-
|
1089
|
-
.input-container {
|
1090
|
-
position: relative;
|
1091
|
-
}
|
1092
|
-
|
1093
|
-
.input-container input {
|
1094
|
-
padding-right: 25px;
|
1095
|
-
}
|
1096
|
-
|
1097
|
-
#zipcode {
|
1098
|
-
text-transform: capitalize !important;
|
1099
|
-
}
|
1100
|
-
|
1101
|
-
#zipcode {
|
1102
|
-
width: 18px;
|
1103
|
-
position: absolute;
|
1104
|
-
right: 8px;
|
1105
|
-
top: 9px;
|
1106
|
-
}
|
1107
|
-
|
1108
|
-
#zipcode .zip-tip {
|
1109
|
-
display: none;
|
1110
|
-
background-color: rgb(0, 0, 0, 0.4);
|
1111
|
-
padding: 5px 8px;
|
1112
|
-
border-radius: 6px;
|
1113
|
-
position: absolute;
|
1114
|
-
right: 26px;
|
1115
|
-
top: -9px;
|
1116
|
-
font-size: 12.5px;
|
1117
|
-
text-transform: capitalize !important;
|
1118
|
-
color: #fff;
|
1119
|
-
width: 240px;
|
1120
|
-
line-height: 16px;
|
1121
|
-
}
|
1122
|
-
|
1123
|
-
#zipcode .zip-tip:before {
|
1124
|
-
width: 0;
|
1125
|
-
height: 0;
|
1126
|
-
border-top: 7px solid transparent;
|
1127
|
-
border-bottom: 7px solid transparent;
|
1128
|
-
border-left: 7px solid #000;
|
1129
|
-
opacity: 0.4;
|
1130
|
-
position: absolute;
|
1131
|
-
right: -7px;
|
1132
|
-
top: 50%;
|
1133
|
-
transform: translateY(-50%);
|
1134
|
-
content: "";
|
1135
|
-
}
|
1136
|
-
|
1137
|
-
#zipcode:hover .zip-tip {
|
1138
|
-
display: block;
|
1139
|
-
}
|
1140
|
-
|
1141
|
-
.input-container > i,
|
1142
|
-
a[role="button"] {
|
1143
|
-
color: #d3d3d3;
|
1144
|
-
width: 25px;
|
1145
|
-
height: 30px;
|
1146
|
-
line-height: 30px;
|
1147
|
-
font-size: 16px;
|
1148
|
-
position: absolute;
|
1149
|
-
top: 5px;
|
1150
|
-
right: 6px;
|
1151
556
|
cursor: pointer;
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
.input-container > i:hover,
|
1156
|
-
a[role="button"]:hover {
|
1157
|
-
color: #777;
|
1158
|
-
}
|
1159
|
-
|
1160
|
-
.amount-placeholder {
|
1161
|
-
white-space: nowrap;
|
1162
|
-
font-size: 44px;
|
1163
|
-
/* height: 35px; */
|
1164
|
-
font-weight: 600;
|
1165
|
-
line-height: 40px;
|
1166
|
-
}
|
1167
|
-
|
1168
|
-
.amount-placeholder > button {
|
1169
|
-
float: right;
|
1170
|
-
width: 60px;
|
1171
|
-
}
|
1172
|
-
|
1173
|
-
.amount-placeholder > span {
|
1174
|
-
line-height: 34px;
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
.top-amnt {
|
557
|
+
border-radius: 0.25rem;
|
558
|
+
font-size: 30px;
|
559
|
+
line-height: 30px;
|
1178
560
|
display: flex;
|
1179
|
-
margin-bottom: 10px;
|
1180
561
|
align-items: center;
|
1181
|
-
justify-content:
|
1182
|
-
}
|
1183
|
-
|
1184
|
-
.amtleft {
|
1185
|
-
text-align: center;
|
562
|
+
justify-content: center;
|
1186
563
|
}
|
1187
564
|
|
1188
|
-
.
|
1189
|
-
color: #
|
1190
|
-
margin: 0 -5px;
|
565
|
+
.close-popup:hover {
|
566
|
+
color: #000;
|
1191
567
|
}
|
1192
568
|
|
1193
|
-
.
|
1194
|
-
|
1195
|
-
margin: 22px 0 0 0;
|
1196
|
-
max-width: 85px;
|
1197
|
-
line-height: 20px;
|
569
|
+
.fractal-inpt-list {
|
570
|
+
margin-bottom: 15px;
|
1198
571
|
}
|
1199
572
|
|
1200
|
-
.
|
1201
|
-
|
573
|
+
.fractal-label {
|
574
|
+
color: #727272;
|
575
|
+
margin-bottom: 3px;
|
576
|
+
font-family: "Inter", sans-serif;
|
577
|
+
font-weight: 500;
|
578
|
+
font-size: 12px;
|
579
|
+
display: block;
|
580
|
+
text-align: left;
|
1202
581
|
}
|
1203
582
|
|
1204
|
-
.
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
583
|
+
.fractal-input {
|
584
|
+
display: block;
|
585
|
+
width: 100%;
|
586
|
+
padding: .320rem .75rem;
|
587
|
+
font-size: 1rem;
|
588
|
+
font-weight: 400;
|
589
|
+
line-height: 1.5;
|
590
|
+
color: #35254D;
|
591
|
+
appearance: none;
|
592
|
+
background-color:#ffffff;
|
593
|
+
background-clip: padding-box;
|
594
|
+
border:1px solid #dee2e6;
|
595
|
+
border-radius: 0.375rem;
|
596
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
597
|
+
}
|
598
|
+
|
599
|
+
.fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
|
600
|
+
|
601
|
+
.fractal-group {
|
602
|
+
position: relative;
|
603
|
+
display: flex;
|
604
|
+
align-items: stretch;
|
605
|
+
width: 100%;
|
1211
606
|
}
|
1212
607
|
|
1213
|
-
.
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
608
|
+
.fractal-group-icons {
|
609
|
+
display: flex;
|
610
|
+
align-items: center;
|
611
|
+
padding: 0.375rem 0.75rem;
|
612
|
+
font-size: 1rem;
|
613
|
+
font-weight: 400;
|
614
|
+
line-height: 1.5;
|
615
|
+
color: #212529;
|
616
|
+
text-align: center;
|
617
|
+
white-space: nowrap;
|
618
|
+
background-color: #f8f9fa;
|
619
|
+
border:#dee2e6 1px solid;
|
620
|
+
border-radius: 0.375rem 0 0 0.375rem ;
|
1218
621
|
}
|
1219
622
|
|
1220
|
-
|
1221
|
-
|
1222
|
-
} */
|
1223
|
-
|
1224
|
-
.cvc-preview-container {
|
1225
|
-
/* overflow: hidden; */
|
1226
|
-
position: absolute;
|
1227
|
-
z-index: 9999;
|
1228
|
-
right: -71px;
|
1229
|
-
top: -54px;
|
1230
|
-
width: 165px;
|
1231
|
-
border-radius: 5px;
|
1232
|
-
padding: 5px;
|
1233
|
-
background-color: rgb(0, 0, 0, 0.3);
|
1234
|
-
display: none;
|
623
|
+
.fractal-group .fractal-input{
|
624
|
+
border-radius:0 0.375rem 0.375rem 0;
|
1235
625
|
}
|
1236
626
|
|
1237
|
-
.cvc-preview-container:before {
|
1238
|
-
position: absolute;
|
1239
|
-
left: 50%;
|
1240
|
-
transform: translate(-50%);
|
1241
|
-
bottom: -5px;
|
1242
|
-
width: 0;
|
1243
|
-
height: 0;
|
1244
|
-
border-left: 5px solid transparent;
|
1245
|
-
border-right: 5px solid transparent;
|
1246
|
-
border-top: 5px solid #000;
|
1247
|
-
opacity: 0.3;
|
1248
|
-
content: "";
|
1249
|
-
}
|
1250
627
|
|
1251
|
-
.
|
1252
|
-
|
628
|
+
.pay-button {
|
629
|
+
outline: 0;
|
630
|
+
height: 46px;
|
631
|
+
font-size: 16px;
|
632
|
+
background: #ddd;
|
633
|
+
border: none;
|
634
|
+
display: block;
|
635
|
+
color: #fff;
|
636
|
+
width: 100%;
|
637
|
+
border-radius: 180px;
|
638
|
+
margin: 10px 0;
|
639
|
+
text-decoration: none;
|
1253
640
|
}
|
1254
641
|
|
1255
|
-
.
|
1256
|
-
width: 50%;
|
1257
|
-
height: 45px;
|
1258
|
-
}
|
642
|
+
.pay-button:hover, .pay-button:focus {background: #333; color: #fff;}
|
1259
643
|
|
1260
|
-
.
|
1261
|
-
|
644
|
+
.fractal-powerd-by {
|
645
|
+
display: flex;
|
646
|
+
font-size: 12px;
|
647
|
+
text-align: center;
|
648
|
+
align-items: center;
|
649
|
+
justify-content: center;
|
650
|
+
margin: 5px 0 20px 0;
|
1262
651
|
}
|
1263
652
|
|
1264
|
-
.cvc-preview-container.two-card div.visa-mc-dis-cvc-preview {
|
1265
|
-
float: left;
|
1266
|
-
}
|
1267
653
|
|
1268
|
-
/* .cvc-preview-container div {
|
1269
|
-
height: 160px;
|
1270
|
-
} */
|
1271
654
|
|
1272
|
-
.amex-cvc-preview {
|
1273
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAYAAAAlzXSMAAAAAXNSR0IArs4c6QAAFg9JREFUeNrtnfeTFcXaxw+ZBZacM0oGySBIXECiSBQQAQFhJaclo+SgAsuS2QVBlrCLSlQBAVGCCpK5XiW4vFVvvXX/gPvDe9+qt+r2Pd9eeuiZ6TkBzuI563erPgVn5jk93T397X76mTndPl+Qv0+v3I/PuHW/MiEkMkBTvnD/3vr883wZdx6NyriX9XXmvax/Zt57LAghkSbrn9AYtAbNBRTlwTuP22Tce/wbK42QFwc0B+0ZRXno9h8D/Ab/YkUR8qeI81/QoE2U++8+apF59/H/soII+RPxaxBaVLrMk3k36yYrhpBoEGfWTWjSl3H30ZusEEKiyK31a9IvzMfprAxCokmYj9N9B289/Acrg5DoAZr0Zdz54/9ZGYRE0Yjp16SPFUFI9EFhEkJhEkIoTEIoTEIIhUkIhUkIoTAJoTBZCYRQmIQQCpMQCpMQQmESQmESQihMQihMEsFfn2eJTad+ENvP/8z6iEIO3flDpHx9QWw5c1kcuv0o4vYxJcx1R06LPHnzSuJLlhLp13832jVt38myA/O27radT0pJtZ1v1qGLda5VQnfbOROVatay7Nt072W0KRRXRJSuUFG07NJNLE//wnb9es1bSZvqdeq78p588rxo0q6D/L7P55PEFYsXvUeOFXt/vudZN598eSqkumnbo4+0yV+goPyO83zF6jXl+b6jxwe8F60SXg9eTzWy62lx2n6RN18+eaxByzay09HTavJaR+s7i9PSjfWK7xcoVEiWrU6T5mL6J5uN5fK6Dy06dxPLPjts+86rr/cOWobyVavZvoOy4PoFCxe27g/y1q5nX5HyzfeueoJ93aYtXPbIL4SaK4SJxqkKByav3mC0e6VtB5td73fG2M73HD7adh4NQ53DDdTPmahQrYatgQazhwhWZxy3voMbheNVX65jy9f0jzfZbqATNJJdl26a68ZfRt12yhpz3aAxKhvkwykSXAPn+owaF/BeoMMJWk9Vq1v2nf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ApJfUfhJAIAU35tQWNQWsmDf4HqpjHZRJqxUwAAAAASUVORK5CYII=")
|
1274
|
-
center center/contain no-repeat;
|
1275
|
-
}
|
1276
655
|
|
1277
|
-
.visa-mc-dis-cvc-preview {
|
1278
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAMAAAASE4S+AAAAAXNSR0IArs4c6QAAAadQTFRFAAAAzbFj+NyAyLNg+N2DzbRk+96CzrVj+96AzrNj+92By7Rl+92AzbRl/eCDzrRl/t+DzrVl/t+CzbVm/t+C3MFt3MFv/N2B/N6CzrRm/uCDzrRm/uCC7M93/N6CAAAAAQEBAgIBBAQCBQUDBwcECQgFDAsGDg0HEA4IEQ8JFRMLFxUMIBwQIR0RJSETKyYWLikYLyoYMCsZMSsZNC4bNzEcOTIdQDkhQTkhQzsiRT0jRj4kSkEmTEMnWE4tWU8uWk8uXFEvXVIwXlMwX1QxaV02bWA4bmE5cWQ6eGo+eWs+fW5Afm9Bi3pHjHtIkH9KmIZOmYdPnIlQnYpRo5BUppJVqJRWqpZXq5dYrJdYrZhZuaNfvaZhvqdiwKljwapjxK1lybFnyrJoy7NozrVm1Ltq171u2L5v2b9s2b9t2sBt3cNy3zEx3zIx38Rz4MVz4cZ04kI552NI6GVJ6Mx36s5368957dF674xb79J78NN78dV78tV789Z99Nd99dh+9rZv9th+9tl+99l/+duA+sx5+sx6+t2B+92B/N6B/d+C/uCD////AikOogAAAB90Uk5TACQkJSU9PT4+Q0NERJqav7/AwNjY4uLi4u7u8/P6+u6knPAAAAJkSURBVHja7d3pTxNBGMfxQbwAW06Pcj0tntQT8b7v+0JFxaserQcuKlQUFbFUaqvjH+1uG0lMfEETie4z39+bJ/tik/1kjt3MbDLGBFkWbeu0CtPZFq03v7KwxSpO04KKcmm7VZ32xeW2VK70nUF7tlj1afJnH+tA6k3UBWbUrHKBudJ0u8DsNtaJwIQJEyZMmDBhwoQJEyZMmPPCFCcCEyZMmDBhwoQJEyZMmDBhwoQJEyZMmDBhwoQJ010m+5swYcKECRMmTJgwYcKECRMmTJgwYcIMFfPHP8/vz5PLjnpzzmg2F07mxIhXVUYmwsjMVan0nbkQMrOeN1aY+zAsjHleNoRMf1x+rWa6KfjjM4RMvxdWN63+4QaYMGHC/EvM6b0HgpI6tvtoyq9vz+4/clcf89sJ2eiXIZGEyJD9sEl6RAa1MVPbpczsk8vT52SHHZCDUxelXxtzW/x4wPx+6cxn+0A2208PX9pB2aONef7xk3JrBjkth4Jysnf9fX1T0Czzmqx+6pcvcel/pJd5RRLXg1p6d0vWvdHKHJCeG2XljLVb5aZS5r2E3A6uTiUu2Km1klLK3CXxZDK5xd6RNYd3St+MTuaryr94G6y92iuy77X+b9rSi/d8usOEyZIXC5gsR7O5MN9bRexvwoQJEyZMmDBhwoQJEyZMmDBhwoT5vzNLLihLJu8CM2+6XGB2meUuMFeYyEf9ysmIqcsUtSuLmQZjGp8pdxafNxtjamIZ1f12MhOrDQ6uXhRLD4/nVb4/S/nx4XRsSeUY8prGtOI0186eKl8Xae3QSOxojTSUgT8BEvkXyqDHONgAAAAASUVORK5CYII=")
|
1279
|
-
center center/contain no-repeat;
|
1280
|
-
}
|
1281
656
|
|
1282
|
-
.submit-button-lock {
|
1283
|
-
height: 15px;
|
1284
|
-
margin-top: -2px;
|
1285
|
-
margin-right: 7px;
|
1286
|
-
vertical-align: middle;
|
1287
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAMAAAA7dZg3AAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QK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+AAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAAgYMEyIzOUpTVFViY3N2gJmcnaipq7fX3ebx+Pn8eTEuDQAAAI9JREFUKM/N0UkOglAQRdFHDyK90n64+9+lAyQgookjuaNKTlJJpaQlO2n6sW8SW/uCjrku2EloWDLhi3gDa4O3pTtA5Tt+BXDbiDsBmSQpAyZ3pRhoLUmS1QLxSilQPOcCSFfKgfxgPgfZ9ch7Y21LCcdd5wVH5SckEzkXc0ylpPJnMpETmX/d9eUpH1/5AKrsQVrz7YPBAAAAAElFTkSuQmCC")
|
1288
|
-
center center/contain no-repeat;
|
1289
|
-
width: 14px;
|
1290
|
-
display: inline-block;
|
1291
|
-
}
|
1292
657
|
|
1293
|
-
.align-middle {
|
1294
|
-
vertical-align: middle;
|
1295
|
-
}
|
1296
658
|
|
1297
|
-
|
1298
|
-
box-shadow: none !important;
|
1299
|
-
}
|
659
|
+
/* ................................................................ */
|
1300
660
|
|
1301
|
-
.
|
661
|
+
.fractal-pay-popup {
|
662
|
+
position: fixed;
|
663
|
+
z-index: 9999;
|
664
|
+
top: 0;
|
665
|
+
right: 0;
|
666
|
+
bottom: 0;
|
667
|
+
left: 0;
|
668
|
+
width: 100%;
|
669
|
+
height: 100%;
|
670
|
+
background-color: rgba(0, 0, 0, 0.5);
|
671
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
1302
672
|
display: flex;
|
1303
|
-
font-size: 12px;
|
1304
|
-
text-align: center;
|
1305
|
-
align-items: center;
|
1306
673
|
justify-content: center;
|
1307
|
-
|
1308
|
-
}
|
1309
|
-
|
1310
|
-
.powered-logo {
|
1311
|
-
width: 18px;
|
1312
|
-
height: auto;
|
1313
|
-
float: right;
|
1314
|
-
padding: 2px;
|
1315
|
-
background: #000000;
|
1316
|
-
border-radius: 4px;
|
1317
|
-
margin-left: 5px;
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
.comp-name {
|
1321
|
-
display: block;
|
1322
|
-
margin-bottom: 8px;
|
674
|
+
align-items: center;
|
1323
675
|
}
|
1324
676
|
|
1325
|
-
.
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
677
|
+
.fractal-pay-popup-content {
|
678
|
+
background-color: white;
|
679
|
+
padding:0px;
|
680
|
+
border-radius: 0.5rem;
|
681
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
682
|
+
box-sizing: border-box;
|
683
|
+
position: relative;
|
684
|
+
height: 100%;
|
685
|
+
max-height:90%;
|
686
|
+
overflow: hidden;
|
1330
687
|
}
|
688
|
+
.fractal-pay-popup-content iframe{height: 100% !important; }
|
689
|
+
.fractal-pay-popup-content iframe body{overflow: hidden;}
|
690
|
+
@media only screen and (min-width: 768px){
|
691
|
+
.fractal-pay-popup-content iframe{width: 768px;}
|
692
|
+
.fractal-pay-popup-content {
|
693
|
+
width: 750px;
|
1331
694
|
|
1332
|
-
|
1333
|
-
text-align: center;
|
695
|
+
}
|
1334
696
|
}
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
padding: 10px;
|
1340
|
-
border-radius: 5px;
|
1341
|
-
background: #ffffff;
|
697
|
+
@media only screen and (max-width: 600px){
|
698
|
+
.fractal-pay-popup-content {
|
699
|
+
width: 350px;
|
700
|
+
}
|
1342
701
|
}
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
transition: all 5s;
|
1348
|
-
padding: 5px;
|
1349
|
-
transition: max-height 0.5s, overflow 0.5s 0.5s;
|
702
|
+
@media only screen and (max-width: 450px){
|
703
|
+
.fractal-pay-popup-content {
|
704
|
+
width: 300px;
|
705
|
+
}
|
1350
706
|
}
|
1351
707
|
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
} */
|
1356
|
-
|
1357
|
-
input[type="number"]::-webkit-outer-spin-button,
|
1358
|
-
input[type="number"]::-webkit-inner-spin-button {
|
1359
|
-
-webkit-appearance: none;
|
1360
|
-
margin: 0;
|
708
|
+
.request-payment-popup-container {
|
709
|
+
padding: 0px !important;
|
710
|
+
border-radius: 12px !important;
|
1361
711
|
}
|
712
|
+
`);
|
713
|
+
};
|
714
|
+
var CustomModal2styles_default = CustomModal2styles;
|
715
|
+
|
716
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
717
|
+
var CustomModal2 = ({
|
718
|
+
open,
|
719
|
+
onClose,
|
720
|
+
children
|
721
|
+
}) => {
|
722
|
+
if (!open) return null;
|
723
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(CustomModal2styles_default, null), /* @__PURE__ */ import_react5.default.createElement("div", { className: "fractal-popup" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "fractal-popup-content request-payment-popup-container" }, children)));
|
724
|
+
};
|
725
|
+
var CustomModal2_default = CustomModal2;
|
1362
726
|
|
1363
|
-
|
1364
|
-
|
727
|
+
// src/app/components/RequestPayment/RequestPayment.tsx
|
728
|
+
var import_axios = __toESM(require("axios"));
|
729
|
+
var import_react_number_format = require("react-number-format");
|
730
|
+
function RequestPayment(props) {
|
731
|
+
const fractalpayClientKey = props.fractalpayClientKey;
|
732
|
+
const [show, setShow] = (0, import_react6.useState)(false);
|
733
|
+
const [loading, setLoading] = (0, import_react6.useState)(false);
|
734
|
+
const [errors, setErrors] = (0, import_react6.useState)({});
|
735
|
+
const [phone, setPhone] = (0, import_react6.useState)(null);
|
736
|
+
const [requestDetails, setRequestDetails] = (0, import_react6.useState)({
|
737
|
+
email: "",
|
738
|
+
phone_number: "",
|
739
|
+
order_id: "",
|
740
|
+
name: "",
|
741
|
+
fractalpayPublicKey: fractalpayClientKey
|
742
|
+
});
|
743
|
+
const [amount, setAmount] = (0, import_react6.useState)("");
|
744
|
+
const [showConfirmationModal, setShowConfirmationModal] = (0, import_react6.useState)(true);
|
745
|
+
const [apiResponse, setApiResponse] = (0, import_react6.useState)(null);
|
746
|
+
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
747
|
+
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
748
|
+
const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
749
|
+
const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
|
750
|
+
const handleClose = () => {
|
751
|
+
setShow(false);
|
752
|
+
setErrors({});
|
753
|
+
};
|
754
|
+
const handleShow = () => setShow(true);
|
755
|
+
const handleCloseConfirmationModal = () => {
|
756
|
+
console.log(apiResponse, "apiresponse");
|
757
|
+
handleSubmit(apiResponse);
|
758
|
+
setShowConfirmationModal(false);
|
759
|
+
};
|
760
|
+
function emptyFields() {
|
761
|
+
setRequestDetails({
|
762
|
+
email: "",
|
763
|
+
phone_number: "",
|
764
|
+
order_id: "",
|
765
|
+
name: "",
|
766
|
+
fractalpayPublicKey: fractalpayClientKey
|
767
|
+
});
|
768
|
+
setAmount("");
|
769
|
+
}
|
770
|
+
function handleSubmit(event) {
|
771
|
+
let message = {
|
772
|
+
type: "preview.compiledcheck",
|
773
|
+
other: __spreadProps(__spreadValues({}, event), { status: true })
|
774
|
+
};
|
775
|
+
window.parent.postMessage(message, "*");
|
776
|
+
}
|
777
|
+
const sendRequestPayment = async () => {
|
778
|
+
if (Object.keys(errors).length > 0) {
|
779
|
+
return;
|
780
|
+
}
|
781
|
+
setErrors({});
|
782
|
+
if (!(requestDetails == null ? void 0 : requestDetails.email) && phone && !phoneNumberRegex(phone)) {
|
783
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
784
|
+
phone: ErrorText.phonenumbervalid
|
785
|
+
}));
|
786
|
+
return;
|
787
|
+
}
|
788
|
+
if (!validateForm()) {
|
789
|
+
return;
|
790
|
+
}
|
791
|
+
try {
|
792
|
+
setLoading(true);
|
793
|
+
const formData = {
|
794
|
+
fractalpayPublicKey: fractalpayClientKey,
|
795
|
+
amount,
|
796
|
+
phone_number: phone,
|
797
|
+
order_id: requestDetails.order_id,
|
798
|
+
action: "request",
|
799
|
+
name: requestDetails.name,
|
800
|
+
email: requestDetails.email,
|
801
|
+
customer_id: (props == null ? void 0 : props.customerId) ? props == null ? void 0 : props.customerId : ""
|
802
|
+
};
|
803
|
+
let response = await import_axios.default.post(`${baseUrl}create-widget-order`, formData);
|
804
|
+
if ((response == null ? void 0 : response.status) === 200) {
|
805
|
+
setShowConfirmationModal(true);
|
806
|
+
setShow(false);
|
807
|
+
emptyFields();
|
808
|
+
setApiResponse(response == null ? void 0 : response.data);
|
809
|
+
}
|
810
|
+
setLoading(false);
|
811
|
+
} catch (error) {
|
812
|
+
console.log(error);
|
813
|
+
setLoading(false);
|
814
|
+
}
|
815
|
+
};
|
816
|
+
let favicon_logo = baseUrl + "images/logo-img.png";
|
817
|
+
const handleChange = (e) => {
|
818
|
+
const { value } = e.target;
|
819
|
+
const token = e.target.dataset.token;
|
820
|
+
setRequestDetails(__spreadProps(__spreadValues({}, requestDetails), { [token]: value }));
|
821
|
+
if (token === "name" && !isAlpha(value)) {
|
822
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
823
|
+
[token]: ErrorText.onlylettersallowed
|
824
|
+
}));
|
825
|
+
return;
|
826
|
+
}
|
827
|
+
let errorobj = errors;
|
828
|
+
if (token === "email" && !phone) {
|
829
|
+
delete errorobj.phone;
|
830
|
+
setErrors(errorobj);
|
831
|
+
}
|
832
|
+
if (value) {
|
833
|
+
delete errorobj[token];
|
834
|
+
setErrors(errorobj);
|
835
|
+
}
|
836
|
+
if (token === "email" && !value) {
|
837
|
+
delete errorobj[token];
|
838
|
+
setErrors(errorobj);
|
839
|
+
}
|
840
|
+
};
|
841
|
+
const handleAmountChange = (data) => {
|
842
|
+
const { value } = data;
|
843
|
+
if (Number(value) > 0) {
|
844
|
+
let errorobj = errors;
|
845
|
+
delete errorobj.amount;
|
846
|
+
setErrors(errorobj);
|
847
|
+
}
|
848
|
+
setAmount(value);
|
849
|
+
};
|
850
|
+
const validateForm = () => {
|
851
|
+
let newErrors = {};
|
852
|
+
if (!amount) newErrors.amount = ErrorText.amountrequired;
|
853
|
+
if (requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
854
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone = ErrorText.phoneoremailrequired;
|
855
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.phoneoremailrequired;
|
856
|
+
if (!phone && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
857
|
+
if (props.from === "merchant" && !requestDetails.order_id) newErrors.order_id = ErrorText.orderidrequired;
|
858
|
+
setErrors(newErrors);
|
859
|
+
return Object.keys(newErrors).length === 0;
|
860
|
+
};
|
861
|
+
(0, import_react6.useEffect)(() => {
|
862
|
+
if (props) {
|
863
|
+
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
864
|
+
order_id: props.orderID ? props.orderID : "",
|
865
|
+
name: (props == null ? void 0 : props.name) ? props == null ? void 0 : props.name : "",
|
866
|
+
email: (props == null ? void 0 : props.email) ? props == null ? void 0 : props.email : ""
|
867
|
+
}));
|
868
|
+
setAmount(props.amount ? props.amount : "");
|
869
|
+
setPhone(props.phone ? `${props.phone}` : null);
|
870
|
+
}
|
871
|
+
}, [props]);
|
872
|
+
const handlePhoneChange = (e) => {
|
873
|
+
let value = e == null ? void 0 : e.value;
|
874
|
+
if (value && (value == null ? void 0 : value.length) > 0 && (value == null ? void 0 : value.length) !== 10) {
|
875
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
876
|
+
phone: ErrorText.phonenumberlength
|
877
|
+
}));
|
878
|
+
setPhone(value);
|
879
|
+
return;
|
880
|
+
} else {
|
881
|
+
setPhone(value);
|
882
|
+
}
|
883
|
+
let errorobj = errors;
|
884
|
+
delete errorobj.phone;
|
885
|
+
if (value && !(requestDetails == null ? void 0 : requestDetails.email)) {
|
886
|
+
delete errorobj.email;
|
887
|
+
}
|
888
|
+
setErrors(errorobj);
|
889
|
+
};
|
890
|
+
function formatAmount(amount2) {
|
891
|
+
return new Intl.NumberFormat("en-US", {
|
892
|
+
style: "currency",
|
893
|
+
currency: "USD",
|
894
|
+
minimumFractionDigits: 2,
|
895
|
+
maximumFractionDigits: 2
|
896
|
+
}).format(Number(amount2));
|
897
|
+
}
|
898
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react6.default.createElement(Loader_default, { loading }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ import_react6.default.createElement(
|
899
|
+
CustomModal2_default,
|
900
|
+
{
|
901
|
+
open: show,
|
902
|
+
onClose: () => setShow(false)
|
903
|
+
},
|
904
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-amount-detail" }, /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-merchantname" }, "Pay ", props == null ? void 0 : props.webname), /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-amount" }, formatAmount(props == null ? void 0 : props.amount)), (props == null ? void 0 : props.from) === "merchant" && /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-orderid" }, requestDetails == null ? void 0 : requestDetails.order_id), /* @__PURE__ */ import_react6.default.createElement("span", { className: "request-payment-close-popup", onClick: handleClose }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" })), /* @__PURE__ */ import_react6.default.createElement("defs", null, /* @__PURE__ */ import_react6.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react6.default.createElement("rect", { width: "16", height: "16", fill: "white" })))))),
|
905
|
+
/* @__PURE__ */ import_react6.default.createElement("form", { className: "request-payment-input-form" }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "FULL NAME"), /* @__PURE__ */ import_react6.default.createElement(
|
906
|
+
"input",
|
907
|
+
{
|
908
|
+
className: "request-payment-input-box",
|
909
|
+
type: "text",
|
910
|
+
placeholder: "Full Name",
|
911
|
+
"data-token": "name",
|
912
|
+
onChange: handleChange,
|
913
|
+
value: requestDetails == null ? void 0 : requestDetails.name
|
914
|
+
}
|
915
|
+
), errors.name && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.name)), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "requestPhoneNumber", className: "request-payment-input-label" }, "Phone Number"), /* @__PURE__ */ import_react6.default.createElement(
|
916
|
+
import_react_number_format.PatternFormat,
|
917
|
+
{
|
918
|
+
className: "request-payment-input-box",
|
919
|
+
placeholder: "Mobile number",
|
920
|
+
format: "+1 (###) ###-####",
|
921
|
+
value: phone,
|
922
|
+
onValueChange: (e) => {
|
923
|
+
handlePhoneChange(e);
|
924
|
+
}
|
925
|
+
}
|
926
|
+
), errors.phone && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.phone)), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "EMAIL"), /* @__PURE__ */ import_react6.default.createElement(
|
927
|
+
"input",
|
928
|
+
{
|
929
|
+
className: "request-payment-input-box",
|
930
|
+
type: "text",
|
931
|
+
placeholder: "Email",
|
932
|
+
onChange: handleChange,
|
933
|
+
"data-token": "email",
|
934
|
+
value: requestDetails == null ? void 0 : requestDetails.email
|
935
|
+
}
|
936
|
+
), errors.email && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.email)), /* @__PURE__ */ import_react6.default.createElement(
|
937
|
+
"button",
|
938
|
+
{
|
939
|
+
type: "button",
|
940
|
+
className: "request-payment-submit-button",
|
941
|
+
onClick: sendRequestPayment,
|
942
|
+
disabled: loading
|
943
|
+
},
|
944
|
+
loading ? "Loading..." : "Send Request"
|
945
|
+
), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-fractal-powerd-by" }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M15.2165 4.11839C15.1973 3.69746 15.1973 3.29567 15.1973 2.89387C15.1973 2.56861 14.9486 2.31988 14.6234 2.31988C12.2317 2.31988 10.4141 1.63109 8.90257 0.157848C8.67298 -0.0526158 8.32858 -0.0526158 8.09898 0.157848C6.58748 1.63109 4.76984 2.31988 2.37821 2.31988C2.05295 2.31988 1.80422 2.56861 1.80422 2.89387C1.80422 3.29567 1.80422 3.69746 1.78508 4.11839C1.70855 8.13632 1.59375 13.6466 8.30945 15.9617L8.50078 16L8.69211 15.9617C15.3887 13.6466 15.293 8.15546 15.2165 4.11839ZM8.04159 9.6861C7.92679 9.78176 7.79286 9.83916 7.63979 9.83916H7.62066C7.46759 9.83916 7.31453 9.76263 7.21887 9.64783L5.43949 7.67713L6.30048 6.91181L7.69719 8.46158L10.7967 5.5151L11.5812 6.35695L8.04159 9.6861Z", fill: "#727272" })), "Secure payments powered by ", /* @__PURE__ */ import_react6.default.createElement("span", null, "Fractal"), /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M17.4999 5.49758V7.01156C17.4999 7.05924 17.4595 7.09898 17.411 7.09898H12.3516C12.9169 6.54266 13.4781 5.99032 14.0434 5.434C14.0596 5.4181 14.0838 5.41016 14.104 5.41016H17.411C17.4595 5.41016 17.4999 5.44989 17.4999 5.49758Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.3462 10.9037V9.29836C12.3462 9.25067 12.3866 9.21094 12.435 9.21094H13.8523C13.929 9.21094 13.9694 9.30631 13.9129 9.35796C13.392 9.87455 12.8711 10.3911 12.3462 10.9037Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.4404 9.00523H15.6949C15.7434 9.00523 15.7838 8.96549 15.7838 8.91781V7.40383C15.7838 7.35614 15.7434 7.31641 15.6949 7.31641H12.4404C12.3919 7.31641 12.3516 7.35614 12.3516 7.40383V8.91781C12.3516 8.96549 12.3919 9.00523 12.4404 9.00523Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.1581 0.0120725L11.4906 0.77105C11.531 0.794892 11.5471 0.84655 11.5229 0.890261L8.99114 5.20173C8.78521 4.44275 8.57927 3.68775 8.37334 2.92877C8.36527 2.90493 8.3693 2.88109 8.38142 2.86122L10.0329 0.0438621C10.0612 0.000151419 10.1177 -0.0117697 10.1581 0.0120725Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.3382 7.10006L10.9289 6.29737C10.8886 6.27353 10.8724 6.22187 10.8966 6.17816L11.6033 4.97015C11.6436 4.9026 11.7446 4.91452 11.7648 4.99002C11.9546 5.69734 12.1484 6.40068 12.3382 7.10006Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.7107 6.0771L12.338 3.30345C12.3622 3.26372 12.346 3.20808 12.3057 3.18424L10.9732 2.42526C10.9328 2.40142 10.8763 2.41732 10.852 2.45705L9.22476 5.2307C9.20053 5.27044 9.21669 5.32607 9.25706 5.34991L10.5896 6.10889C10.634 6.13273 10.6865 6.11683 10.7107 6.0771Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M1.66713 3.51237L2.99963 2.75339C3.04001 2.72955 3.09654 2.74544 3.12077 2.78518L5.65251 7.09665C4.88128 6.89399 4.11408 6.69133 3.34285 6.48867C3.31862 6.4847 3.30247 6.4688 3.29036 6.44893L1.63483 3.63158C1.6106 3.58787 1.62271 3.53621 1.66713 3.51237Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8.99793 5.20018L7.58871 5.99889C7.54833 6.02274 7.4918 6.00684 7.46757 5.9671L6.76095 4.76307C6.72057 4.69552 6.78517 4.61605 6.86189 4.63591C7.57256 4.82268 8.28726 5.00944 8.99793 5.20018Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.27986 6.07054L5.6526 3.2969C5.62837 3.25716 5.57588 3.24127 5.53146 3.26511L4.19896 4.02409C4.15858 4.04793 4.14243 4.09959 4.16666 4.1433L5.79392 6.91694C5.81815 6.95668 5.87064 6.97257 5.91506 6.94873L7.24756 6.18975C7.28794 6.16591 7.30409 6.11425 7.27986 6.07054Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M0.5 12.4998V10.9859C0.5 10.9382 0.540379 10.8984 0.588833 10.8984H5.64829C5.08299 11.4548 4.52172 12.0071 3.95642 12.5634C3.94027 12.5793 3.91604 12.5873 3.89585 12.5873H0.588833C0.540379 12.5873 0.5 12.5475 0.5 12.4998Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.65129 7.09766V8.70303C5.65129 8.75072 5.61091 8.79045 5.56246 8.79045H4.14516C4.06844 8.79045 4.02806 8.69508 4.08459 8.64343C4.60548 8.12685 5.12637 7.61424 5.65129 7.09766Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.55967 8.99609H2.30514C2.25669 8.99609 2.21631 9.03583 2.21631 9.08352V10.5975C2.21631 10.6452 2.25669 10.6849 2.30514 10.6849H5.55967C5.60813 10.6849 5.6485 10.6452 5.6485 10.5975V9.08352C5.6485 9.03583 5.60813 8.99609 5.55967 8.99609Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.82638 17.9865L6.49388 17.2276C6.4535 17.2037 6.43735 17.1521 6.46158 17.1083L8.99333 12.7969C9.19926 13.5559 9.40519 14.3109 9.61112 15.0698C9.6192 15.0937 9.61516 15.1175 9.60305 15.1374L7.95155 17.9547C7.91925 17.9985 7.86676 18.0104 7.82638 17.9865Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.64795 10.8984L7.05717 11.7011C7.09755 11.725 7.1137 11.7766 7.08947 11.8203L6.38284 13.0283C6.34246 13.0959 6.24152 13.084 6.22133 13.0085C6.02751 12.3012 5.83773 11.5978 5.64795 10.8984Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.2739 11.9258L5.64664 14.6994C5.62241 14.7392 5.63856 14.7948 5.67894 14.8187L7.01144 15.5776C7.05182 15.6015 7.10835 15.5856 7.13258 15.5458L8.75984 12.7722C8.78407 12.7325 8.76792 12.6768 8.72754 12.653L7.39504 11.894C7.35062 11.8702 7.29813 11.8861 7.2739 11.9258Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M16.3199 14.4866L14.9874 15.2456C14.947 15.2694 14.8904 15.2535 14.8662 15.2138L12.3345 10.9023C13.1057 11.105 13.8729 11.3077 14.6441 11.5103C14.6684 11.5143 14.6845 11.5302 14.6966 11.5501L16.3481 14.3674C16.3764 14.4111 16.3643 14.4628 16.3199 14.4866Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8.99121 12.7983L10.4004 11.9956C10.4408 11.9717 10.4973 11.9876 10.5216 12.0274L11.2282 13.2354C11.2686 13.3029 11.204 13.3824 11.1272 13.3625C10.4166 13.1758 9.70188 12.989 8.99121 12.7983Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.7077 11.9285L12.3349 14.7021C12.3592 14.7418 12.4117 14.7577 12.4561 14.7339L13.7886 13.9749C13.829 13.9511 13.8451 13.8994 13.8209 13.8557L12.1936 11.0821C12.1694 11.0423 12.1169 11.0264 12.0725 11.0503L10.74 11.8092C10.6996 11.8331 10.6834 11.8847 10.7077 11.9285Z", fill: "#61C699" }))))
|
946
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
947
|
+
CustomModal2_default,
|
948
|
+
{
|
949
|
+
open: showConfirmationModal,
|
950
|
+
onClose: handleCloseConfirmationModal
|
951
|
+
},
|
952
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "fractal-popup-content", style: { padding: "0px" } }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-container" }, /* @__PURE__ */ import_react6.default.createElement("span", { className: "request-payment-close-popup", onClick: handleCloseConfirmationModal }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" })), /* @__PURE__ */ import_react6.default.createElement("defs", null, /* @__PURE__ */ import_react6.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react6.default.createElement("rect", { width: "16", height: "16", fill: "white" }))))), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-tick-div" }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-tick" }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M6.12669 13.9774C5.97396 14.131 5.76558 14.2167 5.54913 14.2167C5.33267 14.2167 5.1243 14.131 4.97157 13.9774L0.359012 9.36408C-0.119671 8.8854 -0.119671 8.10919 0.359012 7.6314L0.936573 7.05369C1.4154 6.57501 2.19072 6.57501 2.6694 7.05369L5.54913 9.93357L13.3306 2.15198C13.8094 1.6733 14.5855 1.6733 15.0634 2.15198L15.641 2.72969C16.1196 3.20837 16.1196 3.98444 15.641 4.46237L6.12669 13.9774Z", fill: "#61C699" })))), /* @__PURE__ */ import_react6.default.createElement("h6", { className: "request-payment-success-text" }, "The request ", /* @__PURE__ */ import_react6.default.createElement("br", null), "was sent"), /* @__PURE__ */ import_react6.default.createElement("h6", { className: "request-payment-success-subtext" }, "Please wait for the customer to pay"), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-btn-div" }, /* @__PURE__ */ import_react6.default.createElement("button", { onClick: handleCloseConfirmationModal, className: "request-payment-success-btn2" }, "Close"))))
|
953
|
+
)));
|
1365
954
|
}
|
1366
955
|
|
1367
|
-
`);
|
1368
|
-
};
|
1369
|
-
var RequestPaymentstyles_default = RequestPaymentstyles;
|
1370
|
-
|
1371
956
|
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
957
|
+
var import_react7 = __toESM(require("react"));
|
958
|
+
var import_react_bootstrap = require("react-bootstrap");
|
959
|
+
var import_react_toastify = require("react-toastify");
|
960
|
+
var import_ReactToastify = require("react-toastify/dist/ReactToastify.css");
|
1372
961
|
function RequestPaymentAllInput({ fractalpayClientKey }) {
|
1373
|
-
const [isLoading, setIsLoading] = (0,
|
1374
|
-
const [show, setShow] = (0,
|
1375
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
1376
|
-
const [amount, setAmount] = (0,
|
1377
|
-
const [orderId, setOrderId] = (0,
|
1378
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
1379
|
-
const [isValidAmount, setIsValidAmount] = (0,
|
1380
|
-
const [isValidOrderId, setIsValidOrderId] = (0,
|
1381
|
-
const [errorMessagephone, setErrorMessagephone] = (0,
|
1382
|
-
const [errorMessageamount, setErrorMessageamount] = (0,
|
1383
|
-
const [errorMessageorderid, setErrorMessageorderid] = (0,
|
1384
|
-
const [submitClicked, setSubmitClicked] = (0,
|
962
|
+
const [isLoading, setIsLoading] = (0, import_react7.useState)(false);
|
963
|
+
const [show, setShow] = (0, import_react7.useState)(false);
|
964
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react7.useState)("");
|
965
|
+
const [amount, setAmount] = (0, import_react7.useState)("");
|
966
|
+
const [orderId, setOrderId] = (0, import_react7.useState)("");
|
967
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react7.useState)(true);
|
968
|
+
const [isValidAmount, setIsValidAmount] = (0, import_react7.useState)(true);
|
969
|
+
const [isValidOrderId, setIsValidOrderId] = (0, import_react7.useState)(true);
|
970
|
+
const [errorMessagephone, setErrorMessagephone] = (0, import_react7.useState)("");
|
971
|
+
const [errorMessageamount, setErrorMessageamount] = (0, import_react7.useState)("");
|
972
|
+
const [errorMessageorderid, setErrorMessageorderid] = (0, import_react7.useState)("");
|
973
|
+
const [submitClicked, setSubmitClicked] = (0, import_react7.useState)(false);
|
1385
974
|
const handleClose = () => setShow(false);
|
1386
975
|
const handleShow = () => setShow(true);
|
1387
976
|
const sendRequestPayment = () => {
|
@@ -1483,7 +1072,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1483
1072
|
setIsValidOrderId(false);
|
1484
1073
|
}
|
1485
1074
|
};
|
1486
|
-
return /* @__PURE__ */
|
1075
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react7.default.createElement("div", { className: " border-container" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Phone Number:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1487
1076
|
"input",
|
1488
1077
|
{
|
1489
1078
|
type: "text",
|
@@ -1493,7 +1082,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1493
1082
|
maxLength: 10,
|
1494
1083
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1495
1084
|
}
|
1496
|
-
), errorMessagephone && /* @__PURE__ */
|
1085
|
+
), errorMessagephone && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessagephone))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Amount:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1497
1086
|
"input",
|
1498
1087
|
{
|
1499
1088
|
type: "text",
|
@@ -1502,7 +1091,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1502
1091
|
placeholder: "Enter amount",
|
1503
1092
|
className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
|
1504
1093
|
}
|
1505
|
-
), errorMessageamount && /* @__PURE__ */
|
1094
|
+
), errorMessageamount && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessageamount))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Order ID:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1506
1095
|
"input",
|
1507
1096
|
{
|
1508
1097
|
type: "text",
|
@@ -1511,7 +1100,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1511
1100
|
placeholder: "Enter order ID",
|
1512
1101
|
className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
|
1513
1102
|
}
|
1514
|
-
), errorMessageorderid && /* @__PURE__ */
|
1103
|
+
), errorMessageorderid && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ import_react7.default.createElement(
|
1515
1104
|
"button",
|
1516
1105
|
{
|
1517
1106
|
onClick: sendRequestPayment,
|
@@ -1519,7 +1108,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1519
1108
|
className: "paymentBtn"
|
1520
1109
|
},
|
1521
1110
|
isLoading ? "Loading..." : "Request Payment"
|
1522
|
-
)), /* @__PURE__ */
|
1111
|
+
)), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Body, null, /* @__PURE__ */ import_react7.default.createElement(
|
1523
1112
|
"svg",
|
1524
1113
|
{
|
1525
1114
|
width: "60",
|
@@ -1528,7 +1117,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1528
1117
|
fill: "none",
|
1529
1118
|
xmlns: "http://www.w3.org/2000/svg"
|
1530
1119
|
},
|
1531
|
-
/* @__PURE__ */
|
1120
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
1532
1121
|
"rect",
|
1533
1122
|
{
|
1534
1123
|
x: "0.5",
|
@@ -1539,14 +1128,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1539
1128
|
stroke: "#31B379"
|
1540
1129
|
}
|
1541
1130
|
),
|
1542
|
-
/* @__PURE__ */
|
1131
|
+
/* @__PURE__ */ import_react7.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react7.default.createElement(
|
1543
1132
|
"path",
|
1544
1133
|
{
|
1545
1134
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1546
1135
|
fill: "#31B379"
|
1547
1136
|
}
|
1548
1137
|
)),
|
1549
|
-
/* @__PURE__ */
|
1138
|
+
/* @__PURE__ */ import_react7.default.createElement("defs", null, /* @__PURE__ */ import_react7.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react7.default.createElement(
|
1550
1139
|
"rect",
|
1551
1140
|
{
|
1552
1141
|
width: "22",
|
@@ -1555,12 +1144,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1555
1144
|
transform: "translate(19.5 19.0039)"
|
1556
1145
|
}
|
1557
1146
|
)))
|
1558
|
-
), /* @__PURE__ */
|
1147
|
+
), /* @__PURE__ */ import_react7.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react7.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Footer, null, /* @__PURE__ */ import_react7.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ import_react7.default.createElement(import_react_toastify.ToastContainer, null));
|
1559
1148
|
}
|
1560
1149
|
|
1561
1150
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1562
|
-
var
|
1563
|
-
var
|
1151
|
+
var import_react8 = __toESM(require("react"));
|
1152
|
+
var import_react_bootstrap2 = require("react-bootstrap");
|
1564
1153
|
|
1565
1154
|
// src/app/components/Api/createWidgetOrder.ts
|
1566
1155
|
var createWidgetOrder = (formData) => {
|
@@ -1583,8 +1172,8 @@ var createWidgetOrder = (formData) => {
|
|
1583
1172
|
|
1584
1173
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1585
1174
|
function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orderID }) {
|
1586
|
-
const [isLoading, setIsLoading] = (0,
|
1587
|
-
const [show, setShow] = (0,
|
1175
|
+
const [isLoading, setIsLoading] = (0, import_react8.useState)(false);
|
1176
|
+
const [show, setShow] = (0, import_react8.useState)(false);
|
1588
1177
|
const handleClose = () => setShow(false);
|
1589
1178
|
const handleShow = () => setShow(true);
|
1590
1179
|
const sendRequestPayment = () => {
|
@@ -1607,7 +1196,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1607
1196
|
console.error("Error:", error);
|
1608
1197
|
});
|
1609
1198
|
};
|
1610
|
-
return /* @__PURE__ */
|
1199
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
|
1611
1200
|
"button",
|
1612
1201
|
{
|
1613
1202
|
onClick: sendRequestPayment,
|
@@ -1615,7 +1204,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1615
1204
|
className: "paymentBtn"
|
1616
1205
|
},
|
1617
1206
|
isLoading ? "Loading..." : "Request Payment"
|
1618
|
-
), /* @__PURE__ */
|
1207
|
+
), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Body, null, /* @__PURE__ */ import_react8.default.createElement(
|
1619
1208
|
"svg",
|
1620
1209
|
{
|
1621
1210
|
width: "60",
|
@@ -1624,7 +1213,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1624
1213
|
fill: "none",
|
1625
1214
|
xmlns: "http://www.w3.org/2000/svg"
|
1626
1215
|
},
|
1627
|
-
/* @__PURE__ */
|
1216
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
1628
1217
|
"rect",
|
1629
1218
|
{
|
1630
1219
|
x: "0.5",
|
@@ -1635,14 +1224,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1635
1224
|
stroke: "#31B379"
|
1636
1225
|
}
|
1637
1226
|
),
|
1638
|
-
/* @__PURE__ */
|
1227
|
+
/* @__PURE__ */ import_react8.default.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react8.default.createElement(
|
1639
1228
|
"path",
|
1640
1229
|
{
|
1641
1230
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1642
1231
|
fill: "#31B379"
|
1643
1232
|
}
|
1644
1233
|
)),
|
1645
|
-
/* @__PURE__ */
|
1234
|
+
/* @__PURE__ */ import_react8.default.createElement("defs", null, /* @__PURE__ */ import_react8.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react8.default.createElement(
|
1646
1235
|
"rect",
|
1647
1236
|
{
|
1648
1237
|
width: "22",
|
@@ -1651,15 +1240,15 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1651
1240
|
transform: "translate(19.5 19.0039)"
|
1652
1241
|
}
|
1653
1242
|
)))
|
1654
|
-
), /* @__PURE__ */
|
1243
|
+
), /* @__PURE__ */ import_react8.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react8.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Footer, null, /* @__PURE__ */ import_react8.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1655
1244
|
}
|
1656
1245
|
|
1657
1246
|
// src/app/components/RequestPayment/RequestPaymentonClick.tsx
|
1658
|
-
var
|
1659
|
-
var
|
1247
|
+
var import_react9 = __toESM(require("react"));
|
1248
|
+
var import_react_bootstrap3 = require("react-bootstrap");
|
1660
1249
|
function RequestPaymentonClick(props) {
|
1661
|
-
const [isLoading, setIsLoading] = (0,
|
1662
|
-
const [show, setShow] = (0,
|
1250
|
+
const [isLoading, setIsLoading] = (0, import_react9.useState)(false);
|
1251
|
+
const [show, setShow] = (0, import_react9.useState)(false);
|
1663
1252
|
const handleClose = () => setShow(false);
|
1664
1253
|
const handleShow = () => setShow(true);
|
1665
1254
|
const { fractalpayClientKey, amount, phone_number, orderID, onSuccess, onError } = props;
|
@@ -1693,7 +1282,7 @@ function RequestPaymentonClick(props) {
|
|
1693
1282
|
console.error("Error:", error);
|
1694
1283
|
});
|
1695
1284
|
};
|
1696
|
-
return /* @__PURE__ */
|
1285
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react9.default.createElement(
|
1697
1286
|
"button",
|
1698
1287
|
{
|
1699
1288
|
onClick: sendRequestPayment,
|
@@ -1701,7 +1290,7 @@ function RequestPaymentonClick(props) {
|
|
1701
1290
|
className: "paymentBtn"
|
1702
1291
|
},
|
1703
1292
|
isLoading ? "Loading..." : "Request Payment"
|
1704
|
-
), /* @__PURE__ */
|
1293
|
+
), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Body, null, onSuccess && /* @__PURE__ */ import_react9.default.createElement(
|
1705
1294
|
"svg",
|
1706
1295
|
{
|
1707
1296
|
width: "60",
|
@@ -1710,7 +1299,7 @@ function RequestPaymentonClick(props) {
|
|
1710
1299
|
fill: "none",
|
1711
1300
|
xmlns: "http://www.w3.org/2000/svg"
|
1712
1301
|
},
|
1713
|
-
/* @__PURE__ */
|
1302
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
1714
1303
|
"rect",
|
1715
1304
|
{
|
1716
1305
|
x: "0.5",
|
@@ -1721,14 +1310,14 @@ function RequestPaymentonClick(props) {
|
|
1721
1310
|
stroke: "#31B379"
|
1722
1311
|
}
|
1723
1312
|
),
|
1724
|
-
/* @__PURE__ */
|
1313
|
+
/* @__PURE__ */ import_react9.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react9.default.createElement(
|
1725
1314
|
"path",
|
1726
1315
|
{
|
1727
1316
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1728
1317
|
fill: "#31B379"
|
1729
1318
|
}
|
1730
1319
|
)),
|
1731
|
-
/* @__PURE__ */
|
1320
|
+
/* @__PURE__ */ import_react9.default.createElement("defs", null, /* @__PURE__ */ import_react9.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react9.default.createElement(
|
1732
1321
|
"rect",
|
1733
1322
|
{
|
1734
1323
|
width: "22",
|
@@ -1737,21 +1326,21 @@ function RequestPaymentonClick(props) {
|
|
1737
1326
|
transform: "translate(19.5 19.0039)"
|
1738
1327
|
}
|
1739
1328
|
)))
|
1740
|
-
), onSuccess ? /* @__PURE__ */
|
1329
|
+
), onSuccess ? /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react9.default.createElement("h4", null, onSuccess)) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("h1", null, "Error!"), /* @__PURE__ */ import_react9.default.createElement("h4", null, onError))), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Footer, null, /* @__PURE__ */ import_react9.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1741
1330
|
}
|
1742
1331
|
|
1743
1332
|
// src/app/components/RequestPayment/RqstPaymntInputField.tsx
|
1744
|
-
var
|
1745
|
-
var
|
1333
|
+
var import_react10 = __toESM(require("react"));
|
1334
|
+
var import_react_bootstrap4 = require("react-bootstrap");
|
1746
1335
|
var import_react_toastify2 = require("react-toastify");
|
1747
1336
|
var import_ReactToastify2 = require("react-toastify/dist/ReactToastify.css");
|
1748
1337
|
function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
1749
|
-
const [isLoading, setIsLoading] = (0,
|
1750
|
-
const [show, setShow] = (0,
|
1751
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
1752
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
1753
|
-
const [errorMessage, setErrorMessage] = (0,
|
1754
|
-
const [submitClicked, setSubmitClicked] = (0,
|
1338
|
+
const [isLoading, setIsLoading] = (0, import_react10.useState)(false);
|
1339
|
+
const [show, setShow] = (0, import_react10.useState)(false);
|
1340
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react10.useState)("");
|
1341
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react10.useState)(true);
|
1342
|
+
const [errorMessage, setErrorMessage] = (0, import_react10.useState)("");
|
1343
|
+
const [submitClicked, setSubmitClicked] = (0, import_react10.useState)(false);
|
1755
1344
|
const handleClose = () => setShow(false);
|
1756
1345
|
const handleShow = () => setShow(true);
|
1757
1346
|
const sendRequestPayment = () => {
|
@@ -1814,7 +1403,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1814
1403
|
setErrorMessage(ErrorText.phonenumbervalid);
|
1815
1404
|
}
|
1816
1405
|
};
|
1817
|
-
return /* @__PURE__ */
|
1406
|
+
return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement("div", { className: "payment-container" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "input-wrapper" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react10.default.createElement(
|
1818
1407
|
"input",
|
1819
1408
|
{
|
1820
1409
|
type: "text",
|
@@ -1824,7 +1413,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1824
1413
|
maxLength: 10,
|
1825
1414
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1826
1415
|
}
|
1827
|
-
), errorMessage && /* @__PURE__ */
|
1416
|
+
), errorMessage && /* @__PURE__ */ import_react10.default.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ import_react10.default.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ import_react10.default.createElement(
|
1828
1417
|
"button",
|
1829
1418
|
{
|
1830
1419
|
onClick: sendRequestPayment,
|
@@ -1832,7 +1421,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1832
1421
|
className: "paymentBtn"
|
1833
1422
|
},
|
1834
1423
|
isLoading ? "Loading..." : "Request Payment"
|
1835
|
-
))), /* @__PURE__ */
|
1424
|
+
))), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Body, null, /* @__PURE__ */ import_react10.default.createElement(
|
1836
1425
|
"svg",
|
1837
1426
|
{
|
1838
1427
|
width: "60",
|
@@ -1841,7 +1430,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1841
1430
|
fill: "none",
|
1842
1431
|
xmlns: "http://www.w3.org/2000/svg"
|
1843
1432
|
},
|
1844
|
-
/* @__PURE__ */
|
1433
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1845
1434
|
"rect",
|
1846
1435
|
{
|
1847
1436
|
x: "0.5",
|
@@ -1852,14 +1441,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1852
1441
|
stroke: "#31B379"
|
1853
1442
|
}
|
1854
1443
|
),
|
1855
|
-
/* @__PURE__ */
|
1444
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react10.default.createElement(
|
1856
1445
|
"path",
|
1857
1446
|
{
|
1858
1447
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1859
1448
|
fill: "#31B379"
|
1860
1449
|
}
|
1861
1450
|
)),
|
1862
|
-
/* @__PURE__ */
|
1451
|
+
/* @__PURE__ */ import_react10.default.createElement("defs", null, /* @__PURE__ */ import_react10.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react10.default.createElement(
|
1863
1452
|
"rect",
|
1864
1453
|
{
|
1865
1454
|
width: "22",
|
@@ -1868,19 +1457,19 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1868
1457
|
transform: "translate(19.5 19.0039)"
|
1869
1458
|
}
|
1870
1459
|
)))
|
1871
|
-
), /* @__PURE__ */
|
1460
|
+
), /* @__PURE__ */ import_react10.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react10.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Footer, null, /* @__PURE__ */ import_react10.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ import_react10.default.createElement(import_react_toastify2.ToastContainer, null));
|
1872
1461
|
}
|
1873
1462
|
|
1874
1463
|
// src/app/components/Payment/Payment.tsx
|
1875
|
-
var
|
1464
|
+
var import_react12 = __toESM(require("react"));
|
1876
1465
|
var import_node_forge = __toESM(require("node-forge"));
|
1877
1466
|
var import_react_toastify3 = require("react-toastify");
|
1878
|
-
var
|
1467
|
+
var import_react_bootstrap5 = require("react-bootstrap");
|
1879
1468
|
|
1880
1469
|
// src/app/components/Payment/Paymentstyles.tsx
|
1881
|
-
var
|
1470
|
+
var import_react11 = __toESM(require("react"));
|
1882
1471
|
function Paymentstyles() {
|
1883
|
-
return /* @__PURE__ */
|
1472
|
+
return /* @__PURE__ */ import_react11.default.createElement("style", null, `
|
1884
1473
|
.paymentBtn {
|
1885
1474
|
background-color: black;
|
1886
1475
|
border: none;
|
@@ -2806,7 +2395,7 @@ input {
|
|
2806
2395
|
// src/app/components/Payment/Payment.tsx
|
2807
2396
|
function Payment() {
|
2808
2397
|
var _a;
|
2809
|
-
const [state, setState] = (0,
|
2398
|
+
const [state, setState] = (0, import_react12.useState)({
|
2810
2399
|
show: false,
|
2811
2400
|
publicKey: "",
|
2812
2401
|
sessionKey: "",
|
@@ -2817,9 +2406,9 @@ function Payment() {
|
|
2817
2406
|
zip: "",
|
2818
2407
|
amount: ""
|
2819
2408
|
});
|
2820
|
-
const [isValid, setIsValid] = (0,
|
2821
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
2822
|
-
const [data, setData] = (0,
|
2409
|
+
const [isValid, setIsValid] = (0, import_react12.useState)(false);
|
2410
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react12.useState)(false);
|
2411
|
+
const [data, setData] = (0, import_react12.useState)(null);
|
2823
2412
|
const handlePaymentClick = async () => {
|
2824
2413
|
try {
|
2825
2414
|
const response = await fetch(`${baseUrl}generate-session`, {
|
@@ -2983,7 +2572,7 @@ function Payment() {
|
|
2983
2572
|
}
|
2984
2573
|
return "";
|
2985
2574
|
}
|
2986
|
-
return /* @__PURE__ */
|
2575
|
+
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(Paymentstyles, null), /* @__PURE__ */ import_react12.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react12.default.createElement(
|
2987
2576
|
"button",
|
2988
2577
|
{
|
2989
2578
|
className: "export-btn",
|
@@ -2991,8 +2580,8 @@ function Payment() {
|
|
2991
2580
|
onClick: () => handlePaymentClick()
|
2992
2581
|
},
|
2993
2582
|
"Payment"
|
2994
|
-
), /* @__PURE__ */
|
2995
|
-
|
2583
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
2584
|
+
import_react_bootstrap5.Modal,
|
2996
2585
|
{
|
2997
2586
|
show: state.show,
|
2998
2587
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3000,8 +2589,8 @@ function Payment() {
|
|
3000
2589
|
})),
|
3001
2590
|
centered: true
|
3002
2591
|
},
|
3003
|
-
/* @__PURE__ */
|
3004
|
-
/* @__PURE__ */
|
2592
|
+
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap5.Modal.Header, { closeButton: true }),
|
2593
|
+
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap5.Modal.Body, null, /* @__PURE__ */ import_react12.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react12.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react12.default.createElement("h1", null, "Pay")), /* @__PURE__ */ import_react12.default.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group", style: { display: "none" } }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-group" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "input-group-addon" }, "$"), /* @__PURE__ */ import_react12.default.createElement(
|
3005
2594
|
"input",
|
3006
2595
|
{
|
3007
2596
|
type: "text",
|
@@ -3010,13 +2599,13 @@ function Payment() {
|
|
3010
2599
|
className: "form-control",
|
3011
2600
|
id: ""
|
3012
2601
|
}
|
3013
|
-
)), /* @__PURE__ */
|
2602
|
+
)), /* @__PURE__ */ import_react12.default.createElement(
|
3014
2603
|
"span",
|
3015
2604
|
{
|
3016
2605
|
id: "amount-error",
|
3017
2606
|
style: { color: "red", display: "none" }
|
3018
2607
|
}
|
3019
|
-
)), /* @__PURE__ */
|
2608
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Name on card"), /* @__PURE__ */ import_react12.default.createElement(
|
3020
2609
|
"input",
|
3021
2610
|
{
|
3022
2611
|
id: "NameOnCard",
|
@@ -3025,13 +2614,13 @@ function Payment() {
|
|
3025
2614
|
maxLength: 100,
|
3026
2615
|
placeholder: "Name"
|
3027
2616
|
}
|
3028
|
-
), /* @__PURE__ */
|
2617
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3029
2618
|
"span",
|
3030
2619
|
{
|
3031
2620
|
id: "NameOnCard-error",
|
3032
2621
|
style: { color: "red", display: "none" }
|
3033
2622
|
}
|
3034
|
-
)), /* @__PURE__ */
|
2623
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3035
2624
|
"input",
|
3036
2625
|
{
|
3037
2626
|
"data-token": "card_number",
|
@@ -3042,7 +2631,7 @@ function Payment() {
|
|
3042
2631
|
placeholder: "0000 0000 0000 0000",
|
3043
2632
|
onChange: handleCardNumberChange
|
3044
2633
|
}
|
3045
|
-
), state.error && /* @__PURE__ */
|
2634
|
+
), state.error && /* @__PURE__ */ import_react12.default.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3046
2635
|
"input",
|
3047
2636
|
{
|
3048
2637
|
"data-token": "exp_month",
|
@@ -3053,14 +2642,14 @@ function Payment() {
|
|
3053
2642
|
maxLength: 2,
|
3054
2643
|
onChange: (e) => handleMonthChange(e)
|
3055
2644
|
}
|
3056
|
-
), isValidMonth && /* @__PURE__ */
|
2645
|
+
), isValidMonth && /* @__PURE__ */ import_react12.default.createElement(
|
3057
2646
|
"span",
|
3058
2647
|
{
|
3059
2648
|
id: "card_number-error",
|
3060
2649
|
style: { color: "red", fontSize: "15px" }
|
3061
2650
|
},
|
3062
2651
|
(_a = ErrorText) == null ? void 0 : _a.montherror
|
3063
|
-
)), /* @__PURE__ */
|
2652
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3064
2653
|
"input",
|
3065
2654
|
{
|
3066
2655
|
"data-token": "exp_year",
|
@@ -3071,7 +2660,7 @@ function Payment() {
|
|
3071
2660
|
value: state.year,
|
3072
2661
|
onChange: (e) => handleYearChange(e)
|
3073
2662
|
}
|
3074
|
-
), state.yearError && /* @__PURE__ */
|
2663
|
+
), state.yearError && /* @__PURE__ */ import_react12.default.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react12.default.createElement(
|
3075
2664
|
"input",
|
3076
2665
|
{
|
3077
2666
|
"data-token": "cvv",
|
@@ -3082,7 +2671,7 @@ function Payment() {
|
|
3082
2671
|
placeholder: "CVV",
|
3083
2672
|
onChange: (e) => handleCVVChange(e)
|
3084
2673
|
}
|
3085
|
-
), /* @__PURE__ */
|
2674
|
+
), /* @__PURE__ */ import_react12.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ import_react12.default.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react12.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Postal code"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react12.default.createElement(
|
3086
2675
|
"input",
|
3087
2676
|
{
|
3088
2677
|
id: "ZIPCode",
|
@@ -3094,7 +2683,7 @@ function Payment() {
|
|
3094
2683
|
value: state.zip,
|
3095
2684
|
onChange: (e) => handleZIP(e)
|
3096
2685
|
}
|
3097
|
-
), /* @__PURE__ */
|
2686
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3098
2687
|
"a",
|
3099
2688
|
{
|
3100
2689
|
tabIndex: 0,
|
@@ -3104,15 +2693,15 @@ function Payment() {
|
|
3104
2693
|
"data-placement": "left",
|
3105
2694
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3106
2695
|
},
|
3107
|
-
/* @__PURE__ */
|
3108
|
-
), /* @__PURE__ */
|
2696
|
+
/* @__PURE__ */ import_react12.default.createElement("i", { className: "fa fa-question-circle" })
|
2697
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3109
2698
|
"span",
|
3110
2699
|
{
|
3111
2700
|
id: "ZIPCode-error",
|
3112
2701
|
style: { color: "red", display: "none" }
|
3113
2702
|
},
|
3114
2703
|
ErrorText.fieldrequired
|
3115
|
-
))), /* @__PURE__ */
|
2704
|
+
))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react12.default.createElement("div", null, /* @__PURE__ */ import_react12.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react12.default.createElement(
|
3116
2705
|
"input",
|
3117
2706
|
{
|
3118
2707
|
id: "Amount",
|
@@ -3124,7 +2713,7 @@ function Payment() {
|
|
3124
2713
|
onChange: (e) => handleAmount(e),
|
3125
2714
|
onBlur: handleAmountBlur
|
3126
2715
|
}
|
3127
|
-
))), /* @__PURE__ */
|
2716
|
+
))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "discover" }))), /* @__PURE__ */ import_react12.default.createElement(
|
3128
2717
|
"button",
|
3129
2718
|
{
|
3130
2719
|
type: "button",
|
@@ -3133,7 +2722,7 @@ function Payment() {
|
|
3133
2722
|
className: "btn btn-block btn-success submit-button"
|
3134
2723
|
},
|
3135
2724
|
"Pay"
|
3136
|
-
)), /* @__PURE__ */
|
2725
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react12.default.createElement(
|
3137
2726
|
"svg",
|
3138
2727
|
{
|
3139
2728
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3141,14 +2730,14 @@ function Payment() {
|
|
3141
2730
|
height: "20",
|
3142
2731
|
viewBox: "0 0 26 26"
|
3143
2732
|
},
|
3144
|
-
/* @__PURE__ */
|
2733
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3145
2734
|
"path",
|
3146
2735
|
{
|
3147
2736
|
fill: "currentColor",
|
3148
2737
|
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
3149
2738
|
}
|
3150
2739
|
)
|
3151
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
2740
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react12.default.createElement(
|
3152
2741
|
"img",
|
3153
2742
|
{
|
3154
2743
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3160,22 +2749,22 @@ function Payment() {
|
|
3160
2749
|
}
|
3161
2750
|
|
3162
2751
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
3163
|
-
var
|
3164
|
-
var
|
2752
|
+
var import_react14 = __toESM(require("react"));
|
2753
|
+
var import_react_bootstrap6 = require("react-bootstrap");
|
3165
2754
|
var import_react_bs_datatable = require("react-bs-datatable");
|
3166
2755
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
3167
2756
|
var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
|
3168
2757
|
var import_react_toastify4 = require("react-toastify");
|
3169
2758
|
|
3170
2759
|
// src/app/components/Pagination/Pagination.tsx
|
3171
|
-
var
|
2760
|
+
var import_react13 = __toESM(require("react"));
|
3172
2761
|
function PaginationPg({ totalPages, onPageChange, current }) {
|
3173
|
-
const [currentPage, setCurrentPage] = (0,
|
3174
|
-
const [showPages, setShowPages] = (0,
|
3175
|
-
(0,
|
2762
|
+
const [currentPage, setCurrentPage] = (0, import_react13.useState)(current);
|
2763
|
+
const [showPages, setShowPages] = (0, import_react13.useState)(false);
|
2764
|
+
(0, import_react13.useEffect)(() => {
|
3176
2765
|
setCurrentPage(current);
|
3177
2766
|
}, [current]);
|
3178
|
-
(0,
|
2767
|
+
(0, import_react13.useEffect)(() => {
|
3179
2768
|
setTimeout(() => {
|
3180
2769
|
setShowPages(true);
|
3181
2770
|
}, 1e3);
|
@@ -3211,7 +2800,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3211
2800
|
if (currentPage > 3) {
|
3212
2801
|
pageNumbers.push(renderPageNumber(1));
|
3213
2802
|
if (currentPage > 4) {
|
3214
|
-
pageNumbers.push(/* @__PURE__ */
|
2803
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
3215
2804
|
}
|
3216
2805
|
}
|
3217
2806
|
const startPage = Math.max(currentPage - 1, 1);
|
@@ -3221,15 +2810,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3221
2810
|
}
|
3222
2811
|
if (currentPage < totalPages - 2) {
|
3223
2812
|
if (currentPage < totalPages - 3) {
|
3224
|
-
pageNumbers.push(/* @__PURE__ */
|
2813
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
3225
2814
|
}
|
3226
2815
|
pageNumbers.push(renderPageNumber(totalPages));
|
3227
2816
|
}
|
3228
2817
|
}
|
3229
2818
|
return pageNumbers;
|
3230
2819
|
};
|
3231
|
-
const renderPageNumber = (pageNumber) => /* @__PURE__ */
|
3232
|
-
return /* @__PURE__ */
|
2820
|
+
const renderPageNumber = (pageNumber) => /* @__PURE__ */ import_react13.default.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
2821
|
+
return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ import_react13.default.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ import_react13.default.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ import_react13.default.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ import_react13.default.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ import_react13.default.createElement("span", null, "\u2B9E"))))));
|
3233
2822
|
}
|
3234
2823
|
|
3235
2824
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
@@ -3267,10 +2856,10 @@ var STORY_HEADERS = [
|
|
3267
2856
|
}
|
3268
2857
|
];
|
3269
2858
|
function CompletedTransactions(props) {
|
3270
|
-
const [dataList, setDataList] = (0,
|
3271
|
-
const [startDate, setStartDate] = (0,
|
3272
|
-
const [endDate, setEndDate] = (0,
|
3273
|
-
const [state, setState] = (0,
|
2859
|
+
const [dataList, setDataList] = (0, import_react14.useState)([]);
|
2860
|
+
const [startDate, setStartDate] = (0, import_react14.useState)(null);
|
2861
|
+
const [endDate, setEndDate] = (0, import_react14.useState)(null);
|
2862
|
+
const [state, setState] = (0, import_react14.useState)({
|
3274
2863
|
page: 1,
|
3275
2864
|
totalPage: 0,
|
3276
2865
|
data: [],
|
@@ -3393,18 +2982,18 @@ function CompletedTransactions(props) {
|
|
3393
2982
|
}
|
3394
2983
|
}
|
3395
2984
|
};
|
3396
|
-
(0,
|
2985
|
+
(0, import_react14.useEffect)(() => {
|
3397
2986
|
fetchData(state.page, startDate, endDate);
|
3398
2987
|
}, [state.page]);
|
3399
2988
|
const handlePageChange = (pageNumber) => {
|
3400
2989
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
|
3401
2990
|
fetchData(pageNumber, startDate, endDate);
|
3402
2991
|
};
|
3403
|
-
return /* @__PURE__ */
|
2992
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement("style", null, `
|
3404
2993
|
.react-datepicker-wrapper:first-child {
|
3405
2994
|
margin-right: 10px;
|
3406
2995
|
}
|
3407
|
-
`), /* @__PURE__ */
|
2996
|
+
`), /* @__PURE__ */ import_react14.default.createElement("div", { className: "mb-5" }, /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ import_react14.default.createElement("div", { style: { display: "flex", marginRight: "10px", marginTop: "25px" } }, /* @__PURE__ */ import_react14.default.createElement(
|
3408
2997
|
import_react_datepicker.default,
|
3409
2998
|
{
|
3410
2999
|
selected: startDate,
|
@@ -3415,7 +3004,7 @@ function CompletedTransactions(props) {
|
|
3415
3004
|
placeholderText: "Start Date",
|
3416
3005
|
required: true
|
3417
3006
|
}
|
3418
|
-
), /* @__PURE__ */
|
3007
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
3419
3008
|
import_react_datepicker.default,
|
3420
3009
|
{
|
3421
3010
|
selected: endDate,
|
@@ -3426,7 +3015,7 @@ function CompletedTransactions(props) {
|
|
3426
3015
|
minDate: startDate,
|
3427
3016
|
placeholderText: "End Date"
|
3428
3017
|
}
|
3429
|
-
)), /* @__PURE__ */
|
3018
|
+
)), /* @__PURE__ */ import_react14.default.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ import_react14.default.createElement(
|
3430
3019
|
import_react_bs_datatable.DatatableWrapper,
|
3431
3020
|
{
|
3432
3021
|
body: dataList,
|
@@ -3438,20 +3027,20 @@ function CompletedTransactions(props) {
|
|
3438
3027
|
}
|
3439
3028
|
}
|
3440
3029
|
},
|
3441
|
-
/* @__PURE__ */
|
3442
|
-
/* @__PURE__ */
|
3443
|
-
/* @__PURE__ */
|
3030
|
+
/* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Row, { className: "mb-4 p-2" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-lg-start align-items-center justify-content-sm-start mb-2 mb-sm-0" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.PaginationOptions, null)), /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.Filter, null))),
|
3031
|
+
/* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Row, null, /* @__PURE__ */ import_react14.default.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Table, null, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.TableHeader, null), /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.TableBody, null)))),
|
3032
|
+
/* @__PURE__ */ import_react14.default.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
3444
3033
|
))));
|
3445
3034
|
}
|
3446
3035
|
|
3447
3036
|
// src/app/components/Payment/TockenizPay.tsx
|
3448
|
-
var
|
3449
|
-
var
|
3037
|
+
var import_react15 = __toESM(require("react"));
|
3038
|
+
var import_react_bootstrap7 = require("react-bootstrap");
|
3450
3039
|
var import_react_toastify5 = require("react-toastify");
|
3451
3040
|
var import_node_forge2 = __toESM(require("node-forge"));
|
3452
3041
|
var import_credit_card_type = __toESM(require("credit-card-type"));
|
3453
3042
|
function TockenizPay() {
|
3454
|
-
const [state, setState] = (0,
|
3043
|
+
const [state, setState] = (0, import_react15.useState)({
|
3455
3044
|
show: false,
|
3456
3045
|
publicKey: "",
|
3457
3046
|
sessionKey: "",
|
@@ -3462,10 +3051,10 @@ function TockenizPay() {
|
|
3462
3051
|
zip: "",
|
3463
3052
|
amount: ""
|
3464
3053
|
});
|
3465
|
-
const [cardTypeDetail, setCardTypeDetail] = (0,
|
3466
|
-
const [isValid, setIsValid] = (0,
|
3467
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
3468
|
-
const [data, setData] = (0,
|
3054
|
+
const [cardTypeDetail, setCardTypeDetail] = (0, import_react15.useState)(null);
|
3055
|
+
const [isValid, setIsValid] = (0, import_react15.useState)(false);
|
3056
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react15.useState)(false);
|
3057
|
+
const [data, setData] = (0, import_react15.useState)(null);
|
3469
3058
|
const handlePaymentClick = async () => {
|
3470
3059
|
try {
|
3471
3060
|
const response = await fetch(`${baseUrl}/generate-session`, {
|
@@ -3677,7 +3266,7 @@ function TockenizPay() {
|
|
3677
3266
|
}
|
3678
3267
|
return "";
|
3679
3268
|
}
|
3680
|
-
return /* @__PURE__ */
|
3269
|
+
return /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement(import_react_toastify5.ToastContainer, null), /* @__PURE__ */ import_react15.default.createElement(
|
3681
3270
|
"button",
|
3682
3271
|
{
|
3683
3272
|
className: "export-btn mt-4",
|
@@ -3685,8 +3274,8 @@ function TockenizPay() {
|
|
3685
3274
|
onClick: () => handlePaymentClick()
|
3686
3275
|
},
|
3687
3276
|
"TokenizePay"
|
3688
|
-
), /* @__PURE__ */
|
3689
|
-
|
3277
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3278
|
+
import_react_bootstrap7.Modal,
|
3690
3279
|
{
|
3691
3280
|
show: state.show,
|
3692
3281
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3694,8 +3283,8 @@ function TockenizPay() {
|
|
3694
3283
|
})),
|
3695
3284
|
centered: true
|
3696
3285
|
},
|
3697
|
-
/* @__PURE__ */
|
3698
|
-
/* @__PURE__ */
|
3286
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_bootstrap7.Modal.Header, { closeButton: true }),
|
3287
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_bootstrap7.Modal.Body, null, /* @__PURE__ */ import_react15.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react15.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react15.default.createElement("h1", null, "Pay")), /* @__PURE__ */ import_react15.default.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react15.default.createElement("label", null, "Name on card"), /* @__PURE__ */ import_react15.default.createElement(
|
3699
3288
|
"input",
|
3700
3289
|
{
|
3701
3290
|
id: "NameOnCard",
|
@@ -3704,13 +3293,13 @@ function TockenizPay() {
|
|
3704
3293
|
maxLength: 100,
|
3705
3294
|
placeholder: "Name"
|
3706
3295
|
}
|
3707
|
-
), /* @__PURE__ */
|
3296
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3708
3297
|
"span",
|
3709
3298
|
{
|
3710
3299
|
id: "NameOnCard-error",
|
3711
3300
|
style: { color: "red", display: "none" }
|
3712
3301
|
}
|
3713
|
-
)), /* @__PURE__ */
|
3302
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3714
3303
|
"input",
|
3715
3304
|
{
|
3716
3305
|
"data-token": "card_number",
|
@@ -3721,7 +3310,7 @@ function TockenizPay() {
|
|
3721
3310
|
placeholder: "0000 0000 0000 0000",
|
3722
3311
|
onChange: handleCardNumberChange
|
3723
3312
|
}
|
3724
|
-
), state.error && /* @__PURE__ */
|
3313
|
+
), state.error && /* @__PURE__ */ import_react15.default.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3725
3314
|
"input",
|
3726
3315
|
{
|
3727
3316
|
"data-token": "exp_month",
|
@@ -3732,14 +3321,14 @@ function TockenizPay() {
|
|
3732
3321
|
maxLength: 2,
|
3733
3322
|
onChange: (e) => handleMonthChange(e)
|
3734
3323
|
}
|
3735
|
-
), isValidMonth && /* @__PURE__ */
|
3324
|
+
), isValidMonth && /* @__PURE__ */ import_react15.default.createElement(
|
3736
3325
|
"span",
|
3737
3326
|
{
|
3738
3327
|
id: "card_number-error",
|
3739
3328
|
style: { color: "red", fontSize: "15px" }
|
3740
3329
|
},
|
3741
3330
|
"Please write month only 1 to 12"
|
3742
|
-
)), /* @__PURE__ */
|
3331
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3743
3332
|
"input",
|
3744
3333
|
{
|
3745
3334
|
"data-token": "exp_year",
|
@@ -3750,7 +3339,7 @@ function TockenizPay() {
|
|
3750
3339
|
value: state.year,
|
3751
3340
|
onChange: (e) => handleYearChange(e)
|
3752
3341
|
}
|
3753
|
-
), state.yearError && /* @__PURE__ */
|
3342
|
+
), state.yearError && /* @__PURE__ */ import_react15.default.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react15.default.createElement(
|
3754
3343
|
"input",
|
3755
3344
|
{
|
3756
3345
|
"data-token": "cvv",
|
@@ -3761,7 +3350,7 @@ function TockenizPay() {
|
|
3761
3350
|
placeholder: "CVV",
|
3762
3351
|
onChange: (e) => handleCVVChange(e)
|
3763
3352
|
}
|
3764
|
-
), /* @__PURE__ */
|
3353
|
+
), /* @__PURE__ */ import_react15.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ import_react15.default.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react15.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react15.default.createElement("label", null, "Postal code"), /* @__PURE__ */ import_react15.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react15.default.createElement(
|
3765
3354
|
"input",
|
3766
3355
|
{
|
3767
3356
|
id: "ZIPCode",
|
@@ -3773,7 +3362,7 @@ function TockenizPay() {
|
|
3773
3362
|
value: state.zip,
|
3774
3363
|
onChange: (e) => handleZIP(e)
|
3775
3364
|
}
|
3776
|
-
), /* @__PURE__ */
|
3365
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3777
3366
|
"a",
|
3778
3367
|
{
|
3779
3368
|
tabIndex: 0,
|
@@ -3783,15 +3372,15 @@ function TockenizPay() {
|
|
3783
3372
|
"data-placement": "left",
|
3784
3373
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3785
3374
|
},
|
3786
|
-
/* @__PURE__ */
|
3787
|
-
), /* @__PURE__ */
|
3375
|
+
/* @__PURE__ */ import_react15.default.createElement("i", { className: "fa fa-question-circle" })
|
3376
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3788
3377
|
"span",
|
3789
3378
|
{
|
3790
3379
|
id: "ZIPCode-error",
|
3791
3380
|
style: { color: "red", display: "none" }
|
3792
3381
|
},
|
3793
3382
|
"This field is required"
|
3794
|
-
))), /* @__PURE__ */
|
3383
|
+
))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react15.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react15.default.createElement(
|
3795
3384
|
"input",
|
3796
3385
|
{
|
3797
3386
|
id: "Amount",
|
@@ -3803,7 +3392,7 @@ function TockenizPay() {
|
|
3803
3392
|
onChange: (e) => handleAmount(e),
|
3804
3393
|
onBlur: handleAmountBlur
|
3805
3394
|
}
|
3806
|
-
))), /* @__PURE__ */
|
3395
|
+
))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react15.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "discover" }))), /* @__PURE__ */ import_react15.default.createElement(
|
3807
3396
|
"button",
|
3808
3397
|
{
|
3809
3398
|
type: "button",
|
@@ -3812,7 +3401,7 @@ function TockenizPay() {
|
|
3812
3401
|
className: "btn btn-block btn-success submit-button"
|
3813
3402
|
},
|
3814
3403
|
"Submit"
|
3815
|
-
)), /* @__PURE__ */
|
3404
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react15.default.createElement(
|
3816
3405
|
"svg",
|
3817
3406
|
{
|
3818
3407
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3820,14 +3409,14 @@ function TockenizPay() {
|
|
3820
3409
|
height: "20",
|
3821
3410
|
viewBox: "0 0 26 26"
|
3822
3411
|
},
|
3823
|
-
/* @__PURE__ */
|
3412
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
3824
3413
|
"path",
|
3825
3414
|
{
|
3826
3415
|
fill: "currentColor",
|
3827
3416
|
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
3828
3417
|
}
|
3829
3418
|
)
|
3830
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
3419
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react15.default.createElement(
|
3831
3420
|
"img",
|
3832
3421
|
{
|
3833
3422
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3839,25 +3428,25 @@ function TockenizPay() {
|
|
3839
3428
|
}
|
3840
3429
|
|
3841
3430
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3842
|
-
var
|
3843
|
-
var
|
3431
|
+
var import_react17 = __toESM(require("react"));
|
3432
|
+
var import_react_bootstrap8 = require("react-bootstrap");
|
3844
3433
|
|
3845
3434
|
// src/app/components/Loader/MyLoadingAnimation.tsx
|
3846
|
-
var
|
3435
|
+
var import_react16 = __toESM(require("react"));
|
3847
3436
|
function MyLoadingAnimation() {
|
3848
|
-
return /* @__PURE__ */
|
3437
|
+
return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(LoaderStyle_default, null), /* @__PURE__ */ import_react16.default.createElement("div", { className: "loading-animation" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "spinner" })));
|
3849
3438
|
}
|
3850
3439
|
|
3851
3440
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3852
3441
|
function GetPaymentDynamic(props) {
|
3853
3442
|
const { amount, fractalpayClientKey, orderID } = props;
|
3854
|
-
const [loading, setLoading] = (0,
|
3855
|
-
const [show, setShow] = (0,
|
3856
|
-
const [iframeLoaded, setIframeLoaded] = (0,
|
3857
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
3858
|
-
const [errorMessage, setErrorMessage] = (0,
|
3859
|
-
const [submitClicked, setSubmitClicked] = (0,
|
3860
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
3443
|
+
const [loading, setLoading] = (0, import_react17.useState)(false);
|
3444
|
+
const [show, setShow] = (0, import_react17.useState)(false);
|
3445
|
+
const [iframeLoaded, setIframeLoaded] = (0, import_react17.useState)(false);
|
3446
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react17.useState)("");
|
3447
|
+
const [errorMessage, setErrorMessage] = (0, import_react17.useState)("");
|
3448
|
+
const [submitClicked, setSubmitClicked] = (0, import_react17.useState)(false);
|
3449
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react17.useState)(true);
|
3861
3450
|
const handleClose = () => {
|
3862
3451
|
setIframeLoaded(false);
|
3863
3452
|
setTimeout(() => {
|
@@ -3872,7 +3461,7 @@ function GetPaymentDynamic(props) {
|
|
3872
3461
|
console.error(ErrorText.fractalpayclientidrequired);
|
3873
3462
|
}
|
3874
3463
|
};
|
3875
|
-
(0,
|
3464
|
+
(0, import_react17.useEffect)(() => {
|
3876
3465
|
if (!fractalpayClientKey) {
|
3877
3466
|
console.error(ErrorText.fractalpayclientidrequired);
|
3878
3467
|
}
|
@@ -3895,7 +3484,7 @@ function GetPaymentDynamic(props) {
|
|
3895
3484
|
const handleLoad = () => {
|
3896
3485
|
setLoading(false);
|
3897
3486
|
};
|
3898
|
-
(0,
|
3487
|
+
(0, import_react17.useEffect)(() => {
|
3899
3488
|
const messageListener = (event) => {
|
3900
3489
|
var _a, _b;
|
3901
3490
|
const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
|
@@ -3910,7 +3499,7 @@ function GetPaymentDynamic(props) {
|
|
3910
3499
|
window.removeEventListener("message", messageListener);
|
3911
3500
|
};
|
3912
3501
|
}, []);
|
3913
|
-
return /* @__PURE__ */
|
3502
|
+
return /* @__PURE__ */ import_react17.default.createElement("div", null, /* @__PURE__ */ import_react17.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Pay"), /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal, { show: show && iframeLoaded, id: "modal-pay", className: "modal-lg", onHide: handleClose }, /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal.Body, null, loading && /* @__PURE__ */ import_react17.default.createElement(MyLoadingAnimation, null), /* @__PURE__ */ import_react17.default.createElement(
|
3914
3503
|
"iframe",
|
3915
3504
|
{
|
3916
3505
|
src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,
|