@pinerohit11/testwidget 0.1.61 → 0.1.63
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.css +219 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +752 -1156
- package/dist/index.mjs +707 -1117
- package/package.json +15 -3
- package/postcss-import.d.ts +5 -0
- package/postcss.config.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -192,926 +192,359 @@ var Loader = (props) => {
|
|
|
192
192
|
};
|
|
193
193
|
var Loader_default = Loader;
|
|
194
194
|
|
|
195
|
-
// src/app/components/
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
|
199
|
-
var import_react3 = __toESM(require("react"));
|
|
200
|
-
var RequestPaymentstyles = (props) => {
|
|
201
|
-
return /* @__PURE__ */ import_react3.default.createElement("style", null, `
|
|
202
|
-
.paymentBtn {
|
|
203
|
-
background-color: black;
|
|
204
|
-
border: none;
|
|
205
|
-
color: white;
|
|
206
|
-
padding: 15px 32px;
|
|
207
|
-
text-align: center;
|
|
208
|
-
text-decoration: none;
|
|
209
|
-
display: inline-block;
|
|
210
|
-
font-size: 16px;
|
|
211
|
-
margin: 4px 2px;
|
|
212
|
-
cursor: pointer;
|
|
213
|
-
border-radius: 180px;
|
|
214
|
-
/* width: auto; */
|
|
215
|
-
}
|
|
216
|
-
.modal-backdrop {
|
|
217
|
-
display: none !important;
|
|
218
|
-
}
|
|
219
|
-
/* CSS for modal */
|
|
220
|
-
.modal {
|
|
221
|
-
/* display: none; */
|
|
222
|
-
position: fixed;
|
|
223
|
-
z-index: 5555;
|
|
224
|
-
left: 0;
|
|
225
|
-
top: 0;
|
|
226
|
-
width: 100%;
|
|
227
|
-
height: 100%;
|
|
228
|
-
overflow: auto;
|
|
229
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.input-container {
|
|
233
|
-
position: relative;
|
|
234
|
-
}
|
|
235
|
-
.error {
|
|
236
|
-
border: 1px solid red;
|
|
237
|
-
background-color: #ffe6e6; /* light red background color */
|
|
238
|
-
}
|
|
239
|
-
.form-group {
|
|
240
|
-
margin-bottom: 15px;
|
|
241
|
-
}
|
|
242
|
-
.input-container input {
|
|
243
|
-
padding-right: 25px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.modal-header {
|
|
247
|
-
border-bottom: 0 !important;
|
|
248
|
-
padding-top: 0 !important;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* CSS for modal content */
|
|
252
|
-
.modal-content {
|
|
253
|
-
/* height: 90vh !important; */
|
|
254
|
-
height: auto;
|
|
255
|
-
padding: 20px 5px;
|
|
256
|
-
/* background: #fff; */
|
|
257
|
-
border-radius: 20px !important;
|
|
258
|
-
position: relative;
|
|
259
|
-
width: 100%;
|
|
260
|
-
max-width: 100%;
|
|
261
|
-
margin: 30px auto;
|
|
262
|
-
overflow: inherit !important;
|
|
263
|
-
}
|
|
264
|
-
.input-container {
|
|
265
|
-
display: flex;
|
|
266
|
-
align-items: baseline;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.input-error-container {
|
|
270
|
-
flex: 1;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.paymentBtn {
|
|
274
|
-
margin-left: 10px;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.PayButton {
|
|
278
|
-
outline: 0 !important;
|
|
279
|
-
height: 46px;
|
|
280
|
-
font-size: 16px;
|
|
281
|
-
background-color: #161616 !important;
|
|
282
|
-
border: none;
|
|
283
|
-
display: block;
|
|
284
|
-
width: 100%;
|
|
285
|
-
border-radius: 180px;
|
|
286
|
-
margin: 10px 0;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
#PayButton:hover {
|
|
290
|
-
background-color: #61c699 !important;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
#PayButton:active {
|
|
294
|
-
background-color: #61c699 !important;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
#PayButton:disabled {
|
|
298
|
-
background: rgb(172, 44, 170) !important;
|
|
299
|
-
color: #fff !important;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
label {
|
|
303
|
-
color: rgba(53, 37, 77, 0.6);
|
|
304
|
-
margin-bottom: 2px;
|
|
305
|
-
text-transform: uppercase;
|
|
306
|
-
font-family: "IBM Plex Mono", monospace;
|
|
307
|
-
font-weight: 500;
|
|
308
|
-
font-size: 12px;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.input-container {
|
|
312
|
-
position: relative;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.input-container input {
|
|
316
|
-
padding-right: 25px;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
#Checkout {
|
|
320
|
-
/* z-index: 100001; */
|
|
321
|
-
width: 100%;
|
|
322
|
-
/* height: 100%; */
|
|
323
|
-
/* background: 0 0 #ffffff; */
|
|
324
|
-
border-radius: 24px;
|
|
325
|
-
border: 1px solid #e0dfe2;
|
|
326
|
-
display: block;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.container {
|
|
330
|
-
margin-top: 10px;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.powered-logo {
|
|
334
|
-
width: 18px;
|
|
335
|
-
height: 18px;
|
|
336
|
-
/* float: right; */
|
|
337
|
-
padding: 2px;
|
|
338
|
-
background: #000000;
|
|
339
|
-
border-radius: 4px;
|
|
340
|
-
/* margin-left: 5px; */
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.modal-content .container {
|
|
344
|
-
width: 100%;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.powerd-by-part {
|
|
348
|
-
display: flex;
|
|
349
|
-
justify-content: center;
|
|
350
|
-
align-items: center;
|
|
351
|
-
gap: 5px;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.errorText {
|
|
355
|
-
color: red;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.input-group {
|
|
359
|
-
position: relative;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.paynowbtn {
|
|
363
|
-
outline: 0 !important;
|
|
364
|
-
padding: 7px 25px !important;
|
|
365
|
-
font-size: 13px;
|
|
366
|
-
background-color: #161616 !important;
|
|
367
|
-
border: #161616 1px solid !important;
|
|
368
|
-
color: #fff !important;
|
|
369
|
-
display: inline-block !important;
|
|
370
|
-
border-radius: 180px !important;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.paynowbtn:hover {
|
|
374
|
-
background-color: #fff !important;
|
|
375
|
-
border: #161616 1px solid !important;
|
|
376
|
-
color: #161616 !important;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.ButtonGroup__root.btn-group {
|
|
380
|
-
margin: 10px 0 20px 0;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.ButtonGroup__root.btn-group button {
|
|
384
|
-
background: #000;
|
|
385
|
-
border: 0;
|
|
386
|
-
margin: 0 5px;
|
|
387
|
-
border-radius: 4px !important;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.ButtonGroup__root.btn-group button:hover,
|
|
391
|
-
.ButtonGroup__root.btn-group button:focus {
|
|
392
|
-
background: #333 !important;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.input-group button {
|
|
396
|
-
background: #000;
|
|
397
|
-
border: 0;
|
|
398
|
-
margin: 0 5px;
|
|
399
|
-
border-radius: 0 4px 4px 0 !important;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.input-group button:hover,
|
|
403
|
-
.input-group button:focus {
|
|
404
|
-
background: #333 !important;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.payment-suc {
|
|
408
|
-
text-align: center;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.payment-suc .modal-dialog {
|
|
412
|
-
min-width: 600px;
|
|
413
|
-
padding: 50px 0;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.payment-suc h2 {
|
|
417
|
-
font-size: 24px;
|
|
418
|
-
color: #35254d;
|
|
419
|
-
font-weight: 500;
|
|
420
|
-
padding: 15px 0;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.payment-suc p {
|
|
424
|
-
font-size: 14px;
|
|
425
|
-
color: #9a92a6;
|
|
426
|
-
font-weight: 500;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.payment-suc .btn-close {
|
|
430
|
-
position: absolute;
|
|
431
|
-
right: 20px;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.Checkout.container iframe {
|
|
435
|
-
width: 100%;
|
|
436
|
-
overflow: hidden !important;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.responsive-tbl {
|
|
440
|
-
overflow-x: auto;
|
|
441
|
-
}
|
|
442
|
-
body {
|
|
443
|
-
position: relative !important;
|
|
444
|
-
}
|
|
445
|
-
thead,
|
|
446
|
-
tbody,
|
|
447
|
-
tfoot,
|
|
448
|
-
tr,
|
|
449
|
-
td,
|
|
450
|
-
th {
|
|
451
|
-
white-space: nowrap;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.button-group {
|
|
455
|
-
display: flex;
|
|
456
|
-
gap: 10px;
|
|
457
|
-
}
|
|
458
|
-
.rqstonClickbtn {
|
|
459
|
-
color: #fff;
|
|
460
|
-
background-color: #337ab7;
|
|
461
|
-
border-color: #2e6da4;
|
|
462
|
-
}
|
|
463
|
-
.loading-animation {
|
|
464
|
-
position: absolute;
|
|
465
|
-
top: 50%;
|
|
466
|
-
left: 50%;
|
|
467
|
-
transform: translate(-50%, -50%);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.spinner {
|
|
471
|
-
width: 40px;
|
|
472
|
-
height: 40px;
|
|
473
|
-
border-radius: 50%;
|
|
474
|
-
border: 4px solid #f3f3f3;
|
|
475
|
-
border-top: 4px solid black;
|
|
476
|
-
animation: spin 1s linear infinite;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
@keyframes spin {
|
|
480
|
-
0% {
|
|
481
|
-
transform: rotate(0deg);
|
|
482
|
-
}
|
|
483
|
-
100% {
|
|
484
|
-
transform: rotate(360deg);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
/* .border-container {
|
|
488
|
-
display: flex;
|
|
489
|
-
flex-direction: column;
|
|
490
|
-
border: 0px solid #ccc;
|
|
491
|
-
padding: 20px;
|
|
492
|
-
border-radius: 10px;
|
|
493
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
494
|
-
align-items: baseline;
|
|
495
|
-
}
|
|
496
|
-
.payment-container {
|
|
497
|
-
border: 0px solid #ccc;
|
|
498
|
-
padding: 20px;
|
|
499
|
-
border-radius: 10px;
|
|
500
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
501
|
-
} */
|
|
502
|
-
|
|
503
|
-
.payment-row {
|
|
504
|
-
display: flex;
|
|
505
|
-
align-items: center;
|
|
506
|
-
margin-bottom: 20px;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.payment-row label {
|
|
510
|
-
width: 150px;
|
|
511
|
-
font-weight: bold;
|
|
512
|
-
margin-right: 10px;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.payment-row input {
|
|
516
|
-
flex-grow: 1;
|
|
517
|
-
margin-right: 10px;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.payment-row button {
|
|
521
|
-
flex-grow: 1;
|
|
522
|
-
}
|
|
523
|
-
.payment-row {
|
|
524
|
-
display: flex;
|
|
525
|
-
flex-direction: column;
|
|
526
|
-
border-radius: 10px;
|
|
527
|
-
margin-top: 10px;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.input-wrapper {
|
|
531
|
-
flex: 1;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.button-wrapper {
|
|
535
|
-
margin-left: 10px;
|
|
536
|
-
}
|
|
537
|
-
.input-container {
|
|
538
|
-
display: flex;
|
|
539
|
-
flex-direction: column;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.export-btn1 {
|
|
543
|
-
background: black;
|
|
544
|
-
color: white;
|
|
545
|
-
height: 35px;
|
|
546
|
-
width: 68px;
|
|
547
|
-
border-radius: 5px;
|
|
548
|
-
margin-top: 20px;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.export-btn {
|
|
552
|
-
background: black;
|
|
553
|
-
color: white;
|
|
554
|
-
height: 35px;
|
|
555
|
-
width: 68px;
|
|
556
|
-
border-radius: 5px;
|
|
557
|
-
margin-left: 14px;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
.payment-popup {
|
|
561
|
-
padding: 12px 20px;
|
|
562
|
-
background: #fff;
|
|
563
|
-
border-radius: 20px;
|
|
564
|
-
position: relative;
|
|
565
|
-
width: 100%;
|
|
566
|
-
margin: 0 auto;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
// .modal-content {
|
|
570
|
-
// max-width: 420px;
|
|
571
|
-
// margin-top: 5%;
|
|
572
|
-
// }
|
|
573
|
-
@media (max-width: 460px) {
|
|
574
|
-
.payment-popup {
|
|
575
|
-
padding: 35px 25px;
|
|
576
|
-
width: 98%;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.close-pop {
|
|
581
|
-
position: absolute;
|
|
582
|
-
right: 8px;
|
|
583
|
-
top: 8px;
|
|
584
|
-
border: 0;
|
|
585
|
-
padding: 0;
|
|
586
|
-
background: none !important;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.amex {
|
|
590
|
-
background-image: url("../amex.svg");
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.visa {
|
|
594
|
-
background-image: url("../visa.svg");
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.mastercard {
|
|
598
|
-
background-image: url("../mastercard.svg");
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.discover {
|
|
602
|
-
background-image: url("../discover.svg");
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.expiry-date-group {
|
|
606
|
-
float: left;
|
|
607
|
-
width: 30%;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.expiry-date-group input {
|
|
611
|
-
width: calc(100% + 1px);
|
|
612
|
-
border-top-right-radius: 0;
|
|
613
|
-
border-bottom-right-radius: 0;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.expiry-date-group input:focus {
|
|
617
|
-
position: relative;
|
|
618
|
-
z-index: 10;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.security-code-group {
|
|
622
|
-
float: right;
|
|
623
|
-
width: 40%;
|
|
624
|
-
position: relative;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
.security-code-group input {
|
|
628
|
-
border-top-left-radius: 0;
|
|
629
|
-
border-bottom-left-radius: 0;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
.zip-code-group {
|
|
633
|
-
clear: both;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
#submitButton {
|
|
637
|
-
outline: 0 !important;
|
|
638
|
-
height: 46px;
|
|
639
|
-
font-size: 16px;
|
|
640
|
-
background-color: #161616 !important;
|
|
641
|
-
border: none;
|
|
642
|
-
display: block;
|
|
643
|
-
width: 100%;
|
|
644
|
-
border-radius: 180px;
|
|
645
|
-
}
|
|
646
|
-
#submitRequestButton {
|
|
647
|
-
outline: 0 !important;
|
|
648
|
-
height: 46px;
|
|
649
|
-
font-size: 16px;
|
|
650
|
-
background-color: #161616 !important;
|
|
651
|
-
border: none;
|
|
652
|
-
display: block;
|
|
653
|
-
width: 100%;
|
|
654
|
-
border-radius: 180px;
|
|
655
|
-
}
|
|
656
|
-
#PayButton {
|
|
657
|
-
outline: 0 !important;
|
|
658
|
-
height: 46px;
|
|
659
|
-
font-size: 16px;
|
|
660
|
-
background-color: #161616 !important;
|
|
661
|
-
border: none;
|
|
662
|
-
display: block;
|
|
663
|
-
width: 100%;
|
|
664
|
-
border-radius: 180px;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
#PayButton:hover {
|
|
668
|
-
background-color: #61c699 !important;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
#PayButton:active {
|
|
672
|
-
background-color: #61c699 !important;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
#PayButton:disabled {
|
|
676
|
-
background: rgb(172, 44, 170) !important;
|
|
677
|
-
color: #fff !important;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
.form-control {
|
|
681
|
-
color: #35254d;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.container {
|
|
685
|
-
margin-top: 10px;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
#Checkout {
|
|
689
|
-
z-index: 100001;
|
|
690
|
-
width: 100%;
|
|
691
|
-
height: 100%;
|
|
692
|
-
min-height: 100%;
|
|
693
|
-
background: 0 0 #ffffff;
|
|
694
|
-
border-radius: 24px;
|
|
695
|
-
border: 1px solid #e0dfe2;
|
|
696
|
-
margin-left: auto;
|
|
697
|
-
margin-right: auto;
|
|
698
|
-
display: block;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
#Checkout .header {
|
|
702
|
-
display: flex;
|
|
703
|
-
/* Enables Flexbox */
|
|
704
|
-
justify-content: center;
|
|
705
|
-
/* Centers content horizontally */
|
|
706
|
-
align-items: center;
|
|
707
|
-
/* Centers content vertically */
|
|
708
|
-
text-align: center;
|
|
709
|
-
padding: 8px;
|
|
710
|
-
border-bottom: 1px solid #dedede;
|
|
711
|
-
margin: 0 10px 20px 10px;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
#Checkout .header button {
|
|
715
|
-
border: 0;
|
|
716
|
-
background: none;
|
|
717
|
-
padding: 0;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
#Checkout h1 {
|
|
721
|
-
margin: 0;
|
|
722
|
-
flex: 1;
|
|
723
|
-
padding: 10px;
|
|
724
|
-
/* Allows the title to grow and fill the space for centering */
|
|
725
|
-
font-size: 23px;
|
|
726
|
-
font-weight: 500;
|
|
727
|
-
color: #35254d;
|
|
728
|
-
align-items: start;
|
|
729
|
-
display: flex;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
#Checkout > form {
|
|
733
|
-
margin: 0 25px 10px 25px;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
label {
|
|
737
|
-
color: rgba(53, 37, 77, 0.6);
|
|
738
|
-
margin-bottom: 2px;
|
|
739
|
-
text-transform: uppercase;
|
|
740
|
-
font-family: "IBM Plex Mono", monospace;
|
|
741
|
-
font-weight: 500;
|
|
742
|
-
font-size: 12px;
|
|
743
|
-
}
|
|
195
|
+
// src/app/components/baseurl.ts
|
|
196
|
+
var baseUrl = "https://staging-widget.fractalpay.com/";
|
|
744
197
|
|
|
745
|
-
.
|
|
746
|
-
|
|
747
|
-
|
|
198
|
+
// src/app/components/Errortext.ts
|
|
199
|
+
var ErrorText = {
|
|
200
|
+
namerequired: "Full Name is required",
|
|
201
|
+
amountrequired: "Amount is required",
|
|
202
|
+
amountpositive: "Amount should be positive",
|
|
203
|
+
amountzero: "Amount should not be zero",
|
|
204
|
+
amountenter: "Please enter an amount",
|
|
205
|
+
amountvalid: "Please enter a valid amount",
|
|
206
|
+
phoneoremailrequired: "Phone or Email is required",
|
|
207
|
+
invalidemail: "Please enter a valid email",
|
|
208
|
+
invalidemailformat: "Invalid email format",
|
|
209
|
+
onlylettersallowed: "Only letters are allowed",
|
|
210
|
+
phonenumberlength: "Phone number should be 10 digits",
|
|
211
|
+
phonenumberrequired: "Please enter a phone number",
|
|
212
|
+
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
|
213
|
+
phonenumbervalid: "Please enter a valid phone number",
|
|
214
|
+
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
|
215
|
+
orderidenter: "Please enter an order ID",
|
|
216
|
+
orderidrequired: "Order ID is required",
|
|
217
|
+
networkresponseerror: "Network response was not ok",
|
|
218
|
+
anerroroccured: "An error occurred. Please try again.",
|
|
219
|
+
montherror: "Please write month only 1 to 12",
|
|
220
|
+
fieldrequired: "This field is required",
|
|
221
|
+
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
|
222
|
+
};
|
|
748
223
|
|
|
749
|
-
.
|
|
750
|
-
|
|
751
|
-
}
|
|
224
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
|
225
|
+
var import_react4 = __toESM(require("react"));
|
|
752
226
|
|
|
753
|
-
|
|
754
|
-
|
|
227
|
+
// src/app/components/CustomModal/CustomModal2styles.tsx
|
|
228
|
+
var import_react3 = __toESM(require("react"));
|
|
229
|
+
var CustomModal2styles = (props) => {
|
|
230
|
+
return /* @__PURE__ */ import_react3.default.createElement("style", null, `
|
|
231
|
+
.fractal-input::placeholder {
|
|
232
|
+
color: #35254D;
|
|
233
|
+
opacity: 1;
|
|
234
|
+
font-size: 15px;
|
|
755
235
|
}
|
|
756
236
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
right: 8px;
|
|
761
|
-
top: 9px;
|
|
237
|
+
.fractal-input::-ms-input-placeholder {
|
|
238
|
+
color: #35254D;
|
|
239
|
+
font-size: 15px;
|
|
762
240
|
}
|
|
763
241
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
border-radius: 6px;
|
|
769
|
-
position: absolute;
|
|
770
|
-
right: 26px;
|
|
771
|
-
top: -9px;
|
|
772
|
-
font-size: 12.5px;
|
|
773
|
-
text-transform: capitalize !important;
|
|
242
|
+
.trigger{
|
|
243
|
+
text-align: center;
|
|
244
|
+
padding: 7px 13px;
|
|
245
|
+
background: #3e3e3e;
|
|
774
246
|
color: #fff;
|
|
775
|
-
|
|
776
|
-
|
|
247
|
+
font-size: 15px;
|
|
248
|
+
outline: none;
|
|
249
|
+
border: none;
|
|
250
|
+
border-radius: 5px;
|
|
251
|
+
font-family: cursive;
|
|
777
252
|
}
|
|
778
253
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
position: absolute;
|
|
787
|
-
right: -7px;
|
|
788
|
-
top: 50%;
|
|
789
|
-
transform: translateY(-50%);
|
|
790
|
-
content: "";
|
|
791
|
-
}
|
|
254
|
+
.fractal-popup {
|
|
255
|
+
position: fixed;
|
|
256
|
+
z-index: 9999;
|
|
257
|
+
top: 0;
|
|
258
|
+
right: 0;
|
|
259
|
+
bottom: 0;
|
|
260
|
+
left: 0;
|
|
792
261
|
|
|
793
|
-
|
|
794
|
-
|
|
262
|
+
width: 100%;
|
|
263
|
+
height: 100%;
|
|
264
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
265
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
|
266
|
+
display: flex;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
align-items: center;
|
|
795
269
|
}
|
|
796
270
|
|
|
797
|
-
.
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
position: absolute;
|
|
805
|
-
top: 5px;
|
|
806
|
-
right: 6px;
|
|
807
|
-
cursor: pointer;
|
|
808
|
-
text-align: center;
|
|
271
|
+
.fractal-popup-content {
|
|
272
|
+
background-color: white;
|
|
273
|
+
padding:20px;
|
|
274
|
+
border-radius: 0.5rem;
|
|
275
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
position: relative;
|
|
809
278
|
}
|
|
810
279
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
280
|
+
@media only screen and (min-width: 600px){
|
|
281
|
+
.fractal-popup-content {
|
|
282
|
+
width: 500px;
|
|
815
283
|
|
|
816
|
-
|
|
817
|
-
white-space: nowrap;
|
|
818
|
-
font-size: 44px;
|
|
819
|
-
/* height: 35px; */
|
|
820
|
-
font-weight: 600;
|
|
821
|
-
line-height: 40px;
|
|
284
|
+
}
|
|
822
285
|
}
|
|
823
|
-
|
|
824
|
-
.
|
|
825
|
-
|
|
826
|
-
|
|
286
|
+
@media only screen and (max-width: 600px){
|
|
287
|
+
.fractal-popup-content {
|
|
288
|
+
width: 350px;
|
|
289
|
+
}
|
|
827
290
|
}
|
|
828
|
-
|
|
829
|
-
.
|
|
830
|
-
|
|
291
|
+
@media only screen and (max-width: 450px){
|
|
292
|
+
.fractal-popup-content {
|
|
293
|
+
width: 300px;
|
|
294
|
+
}
|
|
831
295
|
}
|
|
832
|
-
|
|
833
|
-
|
|
296
|
+
.close-popup {
|
|
297
|
+
max-height:25px;
|
|
298
|
+
width:25px;
|
|
299
|
+
height: 25px;
|
|
300
|
+
color: #999;
|
|
301
|
+
position: absolute;
|
|
302
|
+
top: 2px;
|
|
303
|
+
right: 4px;
|
|
304
|
+
z-index: 7;
|
|
305
|
+
text-align: center;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
border-radius: 0.25rem;
|
|
308
|
+
font-size: 30px;
|
|
309
|
+
line-height: 30px;
|
|
834
310
|
display: flex;
|
|
835
|
-
margin-bottom: 10px;
|
|
836
311
|
align-items: center;
|
|
837
|
-
justify-content:
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
.amtleft {
|
|
841
|
-
text-align: center;
|
|
312
|
+
justify-content: center;
|
|
842
313
|
}
|
|
843
314
|
|
|
844
|
-
.
|
|
845
|
-
color: #
|
|
846
|
-
margin: 0 -5px;
|
|
315
|
+
.close-popup:hover {
|
|
316
|
+
color: #000;
|
|
847
317
|
}
|
|
848
318
|
|
|
849
|
-
.
|
|
850
|
-
|
|
851
|
-
margin: 22px 0 0 0;
|
|
852
|
-
max-width: 85px;
|
|
853
|
-
line-height: 20px;
|
|
319
|
+
.fractal-inpt-list {
|
|
320
|
+
margin-bottom: 15px;
|
|
854
321
|
}
|
|
855
322
|
|
|
856
|
-
.
|
|
857
|
-
|
|
323
|
+
.fractal-label {
|
|
324
|
+
color: #727272;
|
|
325
|
+
margin-bottom: 3px;
|
|
326
|
+
font-family: "Inter", sans-serif;
|
|
327
|
+
font-weight: 500;
|
|
328
|
+
font-size: 12px;
|
|
329
|
+
display: block;
|
|
330
|
+
text-align: left;
|
|
858
331
|
}
|
|
859
332
|
|
|
860
|
-
.
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
333
|
+
.fractal-input {
|
|
334
|
+
display: block;
|
|
335
|
+
width: 100%;
|
|
336
|
+
padding: .320rem .75rem;
|
|
337
|
+
font-size: 1rem;
|
|
338
|
+
font-weight: 400;
|
|
339
|
+
line-height: 1.5;
|
|
340
|
+
color: #35254D;
|
|
341
|
+
appearance: none;
|
|
342
|
+
background-color:#ffffff;
|
|
343
|
+
background-clip: padding-box;
|
|
344
|
+
border:1px solid #dee2e6;
|
|
345
|
+
border-radius: 0.375rem;
|
|
346
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
|
|
350
|
+
|
|
351
|
+
.fractal-group {
|
|
352
|
+
position: relative;
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: stretch;
|
|
355
|
+
width: 100%;
|
|
867
356
|
}
|
|
868
357
|
|
|
869
|
-
.
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
358
|
+
.fractal-group-icons {
|
|
359
|
+
display: flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
padding: 0.375rem 0.75rem;
|
|
362
|
+
font-size: 1rem;
|
|
363
|
+
font-weight: 400;
|
|
364
|
+
line-height: 1.5;
|
|
365
|
+
color: #212529;
|
|
366
|
+
text-align: center;
|
|
367
|
+
white-space: nowrap;
|
|
368
|
+
background-color: #f8f9fa;
|
|
369
|
+
border:#dee2e6 1px solid;
|
|
370
|
+
border-radius: 0.375rem 0 0 0.375rem ;
|
|
874
371
|
}
|
|
875
372
|
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
} */
|
|
879
|
-
|
|
880
|
-
.cvc-preview-container {
|
|
881
|
-
/* overflow: hidden; */
|
|
882
|
-
position: absolute;
|
|
883
|
-
z-index: 9999;
|
|
884
|
-
right: -71px;
|
|
885
|
-
top: -54px;
|
|
886
|
-
width: 165px;
|
|
887
|
-
border-radius: 5px;
|
|
888
|
-
padding: 5px;
|
|
889
|
-
background-color: rgb(0, 0, 0, 0.3);
|
|
890
|
-
display: none;
|
|
373
|
+
.fractal-group .fractal-input{
|
|
374
|
+
border-radius:0 0.375rem 0.375rem 0;
|
|
891
375
|
}
|
|
892
376
|
|
|
893
|
-
.cvc-preview-container:before {
|
|
894
|
-
position: absolute;
|
|
895
|
-
left: 50%;
|
|
896
|
-
transform: translate(-50%);
|
|
897
|
-
bottom: -5px;
|
|
898
|
-
width: 0;
|
|
899
|
-
height: 0;
|
|
900
|
-
border-left: 5px solid transparent;
|
|
901
|
-
border-right: 5px solid transparent;
|
|
902
|
-
border-top: 5px solid #000;
|
|
903
|
-
opacity: 0.3;
|
|
904
|
-
content: "";
|
|
905
|
-
}
|
|
906
377
|
|
|
907
|
-
.
|
|
908
|
-
|
|
378
|
+
.pay-button {
|
|
379
|
+
outline: 0;
|
|
380
|
+
height: 46px;
|
|
381
|
+
font-size: 16px;
|
|
382
|
+
background: #ddd;
|
|
383
|
+
border: none;
|
|
384
|
+
display: block;
|
|
385
|
+
color: #fff;
|
|
386
|
+
width: 100%;
|
|
387
|
+
border-radius: 180px;
|
|
388
|
+
margin: 10px 0;
|
|
389
|
+
text-decoration: none;
|
|
909
390
|
}
|
|
910
391
|
|
|
911
|
-
.
|
|
912
|
-
width: 50%;
|
|
913
|
-
height: 45px;
|
|
914
|
-
}
|
|
392
|
+
.pay-button:hover, .pay-button:focus {background: #333; color: #fff;}
|
|
915
393
|
|
|
916
|
-
.
|
|
917
|
-
|
|
394
|
+
.fractal-powerd-by {
|
|
395
|
+
display: flex;
|
|
396
|
+
font-size: 12px;
|
|
397
|
+
text-align: center;
|
|
398
|
+
align-items: center;
|
|
399
|
+
justify-content: center;
|
|
400
|
+
margin: 5px 0 20px 0;
|
|
918
401
|
}
|
|
919
402
|
|
|
920
|
-
.cvc-preview-container.two-card div.visa-mc-dis-cvc-preview {
|
|
921
|
-
float: left;
|
|
922
|
-
}
|
|
923
403
|
|
|
924
|
-
/* .cvc-preview-container div {
|
|
925
|
-
height: 160px;
|
|
926
|
-
} */
|
|
927
404
|
|
|
928
|
-
.amex-cvc-preview {
|
|
929
|
-
background: url("data:image/png;base64,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")
|
|
930
|
-
center center/contain no-repeat;
|
|
931
|
-
}
|
|
932
405
|
|
|
933
|
-
.visa-mc-dis-cvc-preview {
|
|
934
|
-
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=")
|
|
935
|
-
center center/contain no-repeat;
|
|
936
|
-
}
|
|
937
406
|
|
|
938
|
-
.submit-button-lock {
|
|
939
|
-
height: 15px;
|
|
940
|
-
margin-top: -2px;
|
|
941
|
-
margin-right: 7px;
|
|
942
|
-
vertical-align: middle;
|
|
943
|
-
background: url("data:image/png;base64,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NQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAAgYMEyIzOUpTVFViY3N2gJmcnaipq7fX3ebx+Pn8eTEuDQAAAI9JREFUKM/N0UkOglAQRdFHDyK90n64+9+lAyQgookjuaNKTlJJpaQlO2n6sW8SW/uCjrku2EloWDLhi3gDa4O3pTtA5Tt+BXDbiDsBmSQpAyZ3pRhoLUmS1QLxSilQPOcCSFfKgfxgPgfZ9ch7Y21LCcdd5wVH5SckEzkXc0ylpPJnMpETmX/d9eUpH1/5AKrsQVrz7YPBAAAAAElFTkSuQmCC")
|
|
944
|
-
center center/contain no-repeat;
|
|
945
|
-
width: 14px;
|
|
946
|
-
display: inline-block;
|
|
947
|
-
}
|
|
948
407
|
|
|
949
|
-
.align-middle {
|
|
950
|
-
vertical-align: middle;
|
|
951
|
-
}
|
|
952
408
|
|
|
953
|
-
|
|
954
|
-
box-shadow: none !important;
|
|
955
|
-
}
|
|
409
|
+
/* ................................................................ */
|
|
956
410
|
|
|
957
|
-
.
|
|
411
|
+
.fractal-pay-popup {
|
|
412
|
+
position: fixed;
|
|
413
|
+
z-index: 9999;
|
|
414
|
+
top: 0;
|
|
415
|
+
right: 0;
|
|
416
|
+
bottom: 0;
|
|
417
|
+
left: 0;
|
|
418
|
+
width: 100%;
|
|
419
|
+
height: 100%;
|
|
420
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
421
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
|
958
422
|
display: flex;
|
|
959
|
-
font-size: 12px;
|
|
960
|
-
text-align: center;
|
|
961
|
-
align-items: center;
|
|
962
423
|
justify-content: center;
|
|
963
|
-
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
.powered-logo {
|
|
967
|
-
width: 18px;
|
|
968
|
-
height: auto;
|
|
969
|
-
float: right;
|
|
970
|
-
padding: 2px;
|
|
971
|
-
background: #000000;
|
|
972
|
-
border-radius: 4px;
|
|
973
|
-
margin-left: 5px;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.comp-name {
|
|
977
|
-
display: block;
|
|
978
|
-
margin-bottom: 8px;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
.client-logo {
|
|
982
|
-
max-width: 140px;
|
|
983
|
-
display: block;
|
|
984
|
-
margin: auto;
|
|
985
|
-
padding: 5px;
|
|
424
|
+
align-items: center;
|
|
986
425
|
}
|
|
987
426
|
|
|
988
|
-
|
|
989
|
-
|
|
427
|
+
.fractal-pay-popup-content {
|
|
428
|
+
background-color: white;
|
|
429
|
+
padding:0px;
|
|
430
|
+
border-radius: 0.5rem;
|
|
431
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
432
|
+
box-sizing: border-box;
|
|
433
|
+
position: relative;
|
|
434
|
+
height: 100%;
|
|
435
|
+
max-height:90%;
|
|
436
|
+
overflow: hidden;
|
|
990
437
|
}
|
|
438
|
+
.fractal-pay-popup-content iframe{height: 100% !important; }
|
|
439
|
+
.fractal-pay-popup-content iframe body{overflow: hidden;}
|
|
440
|
+
@media only screen and (min-width: 768px){
|
|
441
|
+
.fractal-pay-popup-content iframe{width: 768px;}
|
|
442
|
+
.fractal-pay-popup-content {
|
|
443
|
+
width: 750px;
|
|
991
444
|
|
|
992
|
-
|
|
993
|
-
cursor: pointer;
|
|
994
|
-
border: 1px solid rgb(252, 252, 252);
|
|
995
|
-
padding: 10px;
|
|
996
|
-
border-radius: 5px;
|
|
997
|
-
background: #ffffff;
|
|
445
|
+
}
|
|
998
446
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
transition: all 5s;
|
|
1004
|
-
padding: 5px;
|
|
1005
|
-
transition: max-height 0.5s, overflow 0.5s 0.5s;
|
|
447
|
+
@media only screen and (max-width: 600px){
|
|
448
|
+
.fractal-pay-popup-content {
|
|
449
|
+
width: 350px;
|
|
450
|
+
}
|
|
1006
451
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
} */
|
|
1012
|
-
|
|
1013
|
-
input[type="number"]::-webkit-outer-spin-button,
|
|
1014
|
-
input[type="number"]::-webkit-inner-spin-button {
|
|
1015
|
-
-webkit-appearance: none;
|
|
1016
|
-
margin: 0;
|
|
452
|
+
@media only screen and (max-width: 450px){
|
|
453
|
+
.fractal-pay-popup-content {
|
|
454
|
+
width: 300px;
|
|
455
|
+
}
|
|
1017
456
|
}
|
|
1018
457
|
|
|
1019
|
-
|
|
1020
|
-
|
|
458
|
+
.request-payment-popup-container {
|
|
459
|
+
padding: 0px !important;
|
|
460
|
+
border-radius: 12px !important;
|
|
1021
461
|
}
|
|
1022
|
-
|
|
1023
|
-
`);
|
|
462
|
+
`);
|
|
1024
463
|
};
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1027
|
-
// src/app/components/
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
amountzero: "Amount should not be zero",
|
|
1036
|
-
amountenter: "Please enter an amount",
|
|
1037
|
-
amountvalid: "Please enter a valid amount",
|
|
1038
|
-
phoneoremailrequired: "Phone or Email is required",
|
|
1039
|
-
invalidemail: "Invalid email",
|
|
1040
|
-
invalidemailformat: "Invalid email format",
|
|
1041
|
-
onlylettersallowed: "Only letters are allowed",
|
|
1042
|
-
phonenumberlength: "Phone number should be 10 digits",
|
|
1043
|
-
phonenumberrequired: "Please enter a phone number",
|
|
1044
|
-
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
|
1045
|
-
phonenumbervalid: "Please enter a valid phone number (max 10 digits)",
|
|
1046
|
-
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
|
1047
|
-
orderidenter: "Please enter an order ID",
|
|
1048
|
-
networkresponseerror: "Network response was not ok",
|
|
1049
|
-
anerroroccured: "An error occurred. Please try again.",
|
|
1050
|
-
montherror: "Please write month only 1 to 12",
|
|
1051
|
-
fieldrequired: "This field is required",
|
|
1052
|
-
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
|
464
|
+
var CustomModal2styles_default = CustomModal2styles;
|
|
465
|
+
|
|
466
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
|
467
|
+
var CustomModal2 = ({
|
|
468
|
+
open,
|
|
469
|
+
onClose,
|
|
470
|
+
children
|
|
471
|
+
}) => {
|
|
472
|
+
if (!open) return null;
|
|
473
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(CustomModal2styles_default, null), /* @__PURE__ */ import_react4.default.createElement("div", { className: "fractal-popup" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "fractal-popup-content request-payment-popup-container" }, children)));
|
|
1053
474
|
};
|
|
1054
|
-
|
|
1055
|
-
// src/app/components/Bootstrapclient.ts
|
|
1056
|
-
var import_react4 = require("react");
|
|
1057
|
-
function BootstrapClient() {
|
|
1058
|
-
(0, import_react4.useEffect)(() => {
|
|
1059
|
-
require("bootstrap/dist/js/bootstrap.bundle.min.js");
|
|
1060
|
-
}, []);
|
|
1061
|
-
return null;
|
|
1062
|
-
}
|
|
1063
|
-
var Bootstrapclient_default = BootstrapClient;
|
|
475
|
+
var CustomModal2_default = CustomModal2;
|
|
1064
476
|
|
|
1065
477
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
|
478
|
+
var import_axios = __toESM(require("axios"));
|
|
479
|
+
var import_react_number_format = require("react-number-format");
|
|
480
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
481
|
+
var Label = import_styled_components.default.label`
|
|
482
|
+
color: #727272;
|
|
483
|
+
font-family: Inter;
|
|
484
|
+
font-size: 12px;
|
|
485
|
+
font-style: normal;
|
|
486
|
+
font-weight: 500;
|
|
487
|
+
margin-bottom: 6px !important;
|
|
488
|
+
text-align: start !important;
|
|
489
|
+
width: 100% !important;
|
|
490
|
+
margin-bottom: 6px !important;
|
|
491
|
+
text-transform: uppercase;
|
|
492
|
+
`;
|
|
1066
493
|
function RequestPayment(props) {
|
|
1067
494
|
const fractalpayClientKey = props.fractalpayClientKey;
|
|
1068
495
|
const [show, setShow] = (0, import_react5.useState)(false);
|
|
1069
496
|
const [loading, setLoading] = (0, import_react5.useState)(false);
|
|
1070
497
|
const [errors, setErrors] = (0, import_react5.useState)({});
|
|
498
|
+
const [phone, setPhone] = (0, import_react5.useState)(null);
|
|
1071
499
|
const [requestDetails, setRequestDetails] = (0, import_react5.useState)({
|
|
1072
500
|
email: "",
|
|
1073
|
-
amount: "",
|
|
1074
501
|
phone_number: "",
|
|
1075
502
|
order_id: "",
|
|
1076
503
|
name: "",
|
|
1077
504
|
fractalpayPublicKey: fractalpayClientKey
|
|
1078
505
|
});
|
|
506
|
+
const [amount, setAmount] = (0, import_react5.useState)("");
|
|
1079
507
|
const [showConfirmationModal, setShowConfirmationModal] = (0, import_react5.useState)(false);
|
|
508
|
+
const [apiResponse, setApiResponse] = (0, import_react5.useState)(null);
|
|
1080
509
|
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
|
1081
510
|
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
|
1082
|
-
const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
|
|
1083
511
|
const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
|
1084
512
|
const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
|
|
1085
513
|
const handleClose = () => {
|
|
1086
514
|
setShow(false);
|
|
1087
|
-
emptyFields();
|
|
1088
515
|
setErrors({});
|
|
1089
516
|
};
|
|
1090
517
|
const handleShow = () => setShow(true);
|
|
1091
|
-
const handleCloseConfirmationModal = () =>
|
|
1092
|
-
|
|
518
|
+
const handleCloseConfirmationModal = () => {
|
|
519
|
+
console.log(apiResponse, "apiresponse");
|
|
520
|
+
handleSubmit(apiResponse);
|
|
521
|
+
setShowConfirmationModal(false);
|
|
522
|
+
};
|
|
523
|
+
function emptyFields() {
|
|
1093
524
|
setRequestDetails({
|
|
1094
525
|
email: "",
|
|
1095
|
-
amount: "",
|
|
1096
526
|
phone_number: "",
|
|
1097
527
|
order_id: "",
|
|
1098
528
|
name: "",
|
|
1099
529
|
fractalpayPublicKey: fractalpayClientKey
|
|
1100
530
|
});
|
|
1101
|
-
|
|
1102
|
-
|
|
531
|
+
setAmount("");
|
|
532
|
+
}
|
|
533
|
+
function handleSubmit(event) {
|
|
1103
534
|
let message = {
|
|
1104
535
|
type: "preview.compiledcheck",
|
|
1105
536
|
other: __spreadProps(__spreadValues({}, event), { status: true })
|
|
1106
537
|
};
|
|
1107
|
-
console.log("message: ", message);
|
|
1108
538
|
window.parent.postMessage(message, "*");
|
|
1109
|
-
}
|
|
539
|
+
}
|
|
1110
540
|
const sendRequestPayment = async () => {
|
|
541
|
+
if (Object.keys(errors).length > 0) {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
1111
544
|
setErrors({});
|
|
1112
|
-
if (!(requestDetails == null ? void 0 : requestDetails.email) &&
|
|
545
|
+
if (!(requestDetails == null ? void 0 : requestDetails.email) && phone && !phoneNumberRegex(phone)) {
|
|
1113
546
|
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
1114
|
-
|
|
547
|
+
phone: ErrorText.phonenumbervalid
|
|
1115
548
|
}));
|
|
1116
549
|
return;
|
|
1117
550
|
}
|
|
@@ -1122,39 +555,28 @@ function RequestPayment(props) {
|
|
|
1122
555
|
setLoading(true);
|
|
1123
556
|
const formData = {
|
|
1124
557
|
fractalpayPublicKey: fractalpayClientKey,
|
|
1125
|
-
amount
|
|
1126
|
-
phone_number:
|
|
558
|
+
amount,
|
|
559
|
+
phone_number: phone,
|
|
1127
560
|
order_id: requestDetails.order_id,
|
|
1128
561
|
action: "request",
|
|
1129
562
|
name: requestDetails.name,
|
|
1130
|
-
email: requestDetails.email
|
|
563
|
+
email: requestDetails.email,
|
|
564
|
+
customer_id: (props == null ? void 0 : props.customerId) ? props == null ? void 0 : props.customerId : ""
|
|
1131
565
|
};
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
headers: {
|
|
1135
|
-
"Content-Type": "application/json"
|
|
1136
|
-
},
|
|
1137
|
-
body: JSON.stringify(formData)
|
|
1138
|
-
});
|
|
1139
|
-
if (!response.ok) {
|
|
1140
|
-
throw new Error("Failed to create widget order");
|
|
1141
|
-
}
|
|
1142
|
-
const data = await response.json();
|
|
1143
|
-
if (data) {
|
|
566
|
+
let response = await import_axios.default.post(`${baseUrl}create-widget-order`, formData);
|
|
567
|
+
if ((response == null ? void 0 : response.status) === 200) {
|
|
1144
568
|
setShowConfirmationModal(true);
|
|
1145
569
|
setShow(false);
|
|
1146
570
|
emptyFields();
|
|
1147
|
-
|
|
571
|
+
setApiResponse(response == null ? void 0 : response.data);
|
|
1148
572
|
}
|
|
1149
|
-
console.log(data);
|
|
1150
573
|
setLoading(false);
|
|
1151
574
|
} catch (error) {
|
|
1152
575
|
console.log(error);
|
|
1153
576
|
setLoading(false);
|
|
1154
577
|
}
|
|
1155
578
|
};
|
|
1156
|
-
|
|
1157
|
-
const PositiveAmount = (amount) => positiveAmountRegex.test(amount);
|
|
579
|
+
let favicon_logo = baseUrl + "images/logo-img.png";
|
|
1158
580
|
const handleChange = (e) => {
|
|
1159
581
|
const { value } = e.target;
|
|
1160
582
|
const token = e.target.dataset.token;
|
|
@@ -1165,231 +587,405 @@ function RequestPayment(props) {
|
|
|
1165
587
|
}));
|
|
1166
588
|
return;
|
|
1167
589
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
return;
|
|
1173
|
-
}
|
|
1174
|
-
if (token === "email" && !isValidEmail(value)) {
|
|
1175
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
1176
|
-
email: ErrorText.invalidemailformat
|
|
1177
|
-
}));
|
|
1178
|
-
return;
|
|
1179
|
-
}
|
|
1180
|
-
if (token === "amount" && !value) {
|
|
1181
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
1182
|
-
amount: ErrorText.amountrequired
|
|
1183
|
-
}));
|
|
1184
|
-
return;
|
|
1185
|
-
}
|
|
1186
|
-
if (token === "amount" && !PositiveAmount(value)) {
|
|
1187
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
1188
|
-
amount: ErrorText.amountpositive
|
|
1189
|
-
}));
|
|
1190
|
-
return;
|
|
1191
|
-
}
|
|
1192
|
-
if (token === "amount" && parseFloat(value) === 0) {
|
|
1193
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
1194
|
-
amount: ErrorText.amountzero
|
|
1195
|
-
}));
|
|
1196
|
-
return;
|
|
590
|
+
let errorobj = errors;
|
|
591
|
+
if (token === "email" && !phone) {
|
|
592
|
+
delete errorobj.phone;
|
|
593
|
+
setErrors(errorobj);
|
|
1197
594
|
}
|
|
1198
595
|
if (value) {
|
|
1199
|
-
|
|
596
|
+
delete errorobj[token];
|
|
597
|
+
setErrors(errorobj);
|
|
1200
598
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
if (value && !value.includes(".")) {
|
|
1205
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
1206
|
-
amount: `${value}.00`
|
|
1207
|
-
}));
|
|
599
|
+
if (token === "email" && !value) {
|
|
600
|
+
delete errorobj[token];
|
|
601
|
+
setErrors(errorobj);
|
|
1208
602
|
}
|
|
1209
603
|
};
|
|
604
|
+
const handleAmountChange = (data) => {
|
|
605
|
+
const { value } = data;
|
|
606
|
+
if (Number(value) > 0) {
|
|
607
|
+
let errorobj = errors;
|
|
608
|
+
delete errorobj.amount;
|
|
609
|
+
setErrors(errorobj);
|
|
610
|
+
}
|
|
611
|
+
setAmount(value);
|
|
612
|
+
};
|
|
1210
613
|
const validateForm = () => {
|
|
1211
614
|
let newErrors = {};
|
|
1212
|
-
if (!
|
|
1213
|
-
if (!requestDetails.
|
|
1214
|
-
if (!
|
|
1215
|
-
if (!
|
|
1216
|
-
if (!
|
|
615
|
+
if (!amount) newErrors.amount = ErrorText.amountrequired;
|
|
616
|
+
if (requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
|
617
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone = ErrorText.phoneoremailrequired;
|
|
618
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.phoneoremailrequired;
|
|
619
|
+
if (!phone && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
|
620
|
+
if (props.from === "merchant" && !requestDetails.order_id) newErrors.order_id = ErrorText.orderidrequired;
|
|
1217
621
|
setErrors(newErrors);
|
|
1218
622
|
return Object.keys(newErrors).length === 0;
|
|
1219
623
|
};
|
|
1220
624
|
(0, import_react5.useEffect)(() => {
|
|
1221
|
-
if (props
|
|
1222
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
625
|
+
if (props) {
|
|
626
|
+
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
627
|
+
order_id: props.orderID ? props.orderID : "",
|
|
628
|
+
name: (props == null ? void 0 : props.name) ? props == null ? void 0 : props.name : "",
|
|
629
|
+
email: (props == null ? void 0 : props.email) ? props == null ? void 0 : props.email : ""
|
|
630
|
+
}));
|
|
631
|
+
setAmount(props.amount ? props.amount : "");
|
|
632
|
+
setPhone(props.phone ? `${props.phone}` : null);
|
|
633
|
+
}
|
|
634
|
+
}, [props]);
|
|
635
|
+
const handlePhoneChange = (e) => {
|
|
636
|
+
let value = e == null ? void 0 : e.value;
|
|
637
|
+
if (value && (value == null ? void 0 : value.length) > 0 && (value == null ? void 0 : value.length) !== 10) {
|
|
638
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
|
639
|
+
phone: ErrorText.phonenumberlength
|
|
640
|
+
}));
|
|
641
|
+
setPhone(value);
|
|
642
|
+
return;
|
|
643
|
+
} else {
|
|
644
|
+
setPhone(value);
|
|
1223
645
|
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
if (
|
|
1227
|
-
|
|
646
|
+
let errorobj = errors;
|
|
647
|
+
delete errorobj.phone;
|
|
648
|
+
if (value && !(requestDetails == null ? void 0 : requestDetails.email)) {
|
|
649
|
+
delete errorobj.email;
|
|
1228
650
|
}
|
|
651
|
+
setErrors(errorobj);
|
|
1229
652
|
};
|
|
1230
|
-
|
|
1231
|
-
|
|
653
|
+
function formatAmount(amount2) {
|
|
654
|
+
return new Intl.NumberFormat("en-US", {
|
|
655
|
+
style: "currency",
|
|
656
|
+
currency: "USD",
|
|
657
|
+
minimumFractionDigits: 2,
|
|
658
|
+
maximumFractionDigits: 2
|
|
659
|
+
}).format(Number(amount2));
|
|
660
|
+
}
|
|
661
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(Loader_default, { loading }), /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ import_react5.default.createElement(
|
|
662
|
+
CustomModal2_default,
|
|
1232
663
|
{
|
|
1233
|
-
show,
|
|
1234
|
-
|
|
1235
|
-
size: "lg",
|
|
1236
|
-
backdrop: "static",
|
|
1237
|
-
keyboard: false
|
|
664
|
+
open: show,
|
|
665
|
+
onClose: () => setShow(false)
|
|
1238
666
|
},
|
|
1239
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
1240
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
667
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-amount-detail" }, /* @__PURE__ */ import_react5.default.createElement("p", { className: "request-payment-merchantname" }, "Pay ", props == null ? void 0 : props.webname), /* @__PURE__ */ import_react5.default.createElement("p", { className: "request-payment-amount" }, formatAmount(props == null ? void 0 : props.amount)), (props == null ? void 0 : props.from) === "merchant" && /* @__PURE__ */ import_react5.default.createElement("p", { className: "request-payment-orderid" }, requestDetails == null ? void 0 : requestDetails.order_id), /* @__PURE__ */ import_react5.default.createElement("span", { className: "request-payment-close-popup", onClick: handleClose }, /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react5.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_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react5.default.createElement("rect", { width: "16", height: "16", fill: "white" })))))),
|
|
668
|
+
/* @__PURE__ */ import_react5.default.createElement("form", { className: "request-payment-input-form" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react5.default.createElement(Label, { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "FULL NAME"), /* @__PURE__ */ import_react5.default.createElement(
|
|
1241
669
|
"input",
|
|
1242
670
|
{
|
|
1243
|
-
className: "
|
|
671
|
+
className: "request-payment-input-box",
|
|
1244
672
|
type: "text",
|
|
1245
673
|
placeholder: "Full Name",
|
|
1246
674
|
"data-token": "name",
|
|
1247
|
-
onChange: handleChange
|
|
1248
|
-
}
|
|
1249
|
-
), errors.name && /* @__PURE__ */ import_react5.default.createElement("small", { className: "text-danger" }, errors.name)), /* @__PURE__ */ import_react5.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: "requestPhoneNumber", className: "form-label" }, "Phone Number"), /* @__PURE__ */ import_react5.default.createElement(
|
|
1250
|
-
"input",
|
|
1251
|
-
{
|
|
1252
|
-
maxLength: 10,
|
|
1253
|
-
className: "form-control",
|
|
1254
|
-
onChange: (e) => {
|
|
1255
|
-
handleChange(e);
|
|
1256
|
-
},
|
|
1257
|
-
placeholder: "Phone Number",
|
|
1258
|
-
type: "text",
|
|
1259
|
-
"data-token": "phone_number"
|
|
1260
|
-
}
|
|
1261
|
-
), errors.phone_number && /* @__PURE__ */ import_react5.default.createElement("small", { className: "text-danger" }, errors.phone_number))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "EMAIL"), /* @__PURE__ */ import_react5.default.createElement(
|
|
1262
|
-
"input",
|
|
1263
|
-
{
|
|
1264
|
-
className: "form-control",
|
|
1265
|
-
type: "text",
|
|
1266
|
-
placeholder: "Email",
|
|
1267
675
|
onChange: handleChange,
|
|
1268
|
-
|
|
676
|
+
value: requestDetails == null ? void 0 : requestDetails.name
|
|
1269
677
|
}
|
|
1270
|
-
), errors.
|
|
1271
|
-
|
|
678
|
+
), errors.name && /* @__PURE__ */ import_react5.default.createElement("small", { className: "request-payment-error-msg" }, errors.name)), /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react5.default.createElement(Label, { htmlFor: "requestPhoneNumber", className: "request-payment-input-label" }, "Phone Number"), /* @__PURE__ */ import_react5.default.createElement(
|
|
679
|
+
import_react_number_format.PatternFormat,
|
|
1272
680
|
{
|
|
1273
|
-
|
|
1274
|
-
placeholder: "
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
onBlur: handleAmountBlur,
|
|
1281
|
-
onKeyDown: handleKeyDown,
|
|
1282
|
-
onFocus: (e) => e.target.addEventListener("wheel", function(e2) {
|
|
1283
|
-
e2.preventDefault();
|
|
1284
|
-
}, { passive: false })
|
|
681
|
+
className: "request-payment-input-box",
|
|
682
|
+
placeholder: "Mobile number",
|
|
683
|
+
format: "+1 (###) ###-####",
|
|
684
|
+
value: phone,
|
|
685
|
+
onValueChange: (e) => {
|
|
686
|
+
handlePhoneChange(e);
|
|
687
|
+
}
|
|
1285
688
|
}
|
|
1286
|
-
)
|
|
689
|
+
), errors.phone && /* @__PURE__ */ import_react5.default.createElement("small", { className: "request-payment-error-msg" }, errors.phone)), /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react5.default.createElement(Label, { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "EMAIL"), /* @__PURE__ */ import_react5.default.createElement(
|
|
1287
690
|
"input",
|
|
1288
691
|
{
|
|
1289
|
-
className: "
|
|
692
|
+
className: "request-payment-input-box",
|
|
1290
693
|
type: "text",
|
|
1291
|
-
placeholder: "
|
|
694
|
+
placeholder: "Email",
|
|
1292
695
|
onChange: handleChange,
|
|
1293
|
-
"data-token": "
|
|
696
|
+
"data-token": "email",
|
|
697
|
+
value: requestDetails == null ? void 0 : requestDetails.email
|
|
1294
698
|
}
|
|
1295
|
-
), errors.
|
|
1296
|
-
|
|
699
|
+
), errors.email && /* @__PURE__ */ import_react5.default.createElement("small", { className: "request-payment-error-msg" }, errors.email)), /* @__PURE__ */ import_react5.default.createElement(
|
|
700
|
+
"button",
|
|
1297
701
|
{
|
|
1298
702
|
type: "button",
|
|
1299
|
-
className: "
|
|
703
|
+
className: "request-payment-submit-button",
|
|
1300
704
|
onClick: sendRequestPayment,
|
|
1301
705
|
disabled: loading
|
|
1302
706
|
},
|
|
1303
707
|
loading ? "Loading..." : "Send Request"
|
|
1304
|
-
)
|
|
1305
|
-
"svg",
|
|
1306
|
-
{
|
|
1307
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1308
|
-
width: "20",
|
|
1309
|
-
height: "20",
|
|
1310
|
-
viewBox: "0 0 26 26"
|
|
1311
|
-
},
|
|
1312
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
1313
|
-
"path",
|
|
1314
|
-
{
|
|
1315
|
-
fill: "currentColor",
|
|
1316
|
-
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"
|
|
1317
|
-
}
|
|
1318
|
-
)
|
|
1319
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react5.default.createElement(
|
|
1320
|
-
"img",
|
|
1321
|
-
{
|
|
1322
|
-
src: "https://ui.fractalpay.com/favicon.ico",
|
|
1323
|
-
alt: "Fractal logo",
|
|
1324
|
-
className: "powered-logo"
|
|
1325
|
-
}
|
|
1326
|
-
)))
|
|
708
|
+
), /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-fractal-powerd-by" }, /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" }, /* @__PURE__ */ import_react5.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_react5.default.createElement("span", null, "Fractal"), /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, /* @__PURE__ */ import_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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_react5.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" }))))
|
|
1327
709
|
), /* @__PURE__ */ import_react5.default.createElement(
|
|
1328
|
-
|
|
710
|
+
CustomModal2_default,
|
|
1329
711
|
{
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
onHide: handleCloseConfirmationModal
|
|
712
|
+
open: showConfirmationModal,
|
|
713
|
+
onClose: handleCloseConfirmationModal
|
|
1333
714
|
},
|
|
1334
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
1335
|
-
/* @__PURE__ */ import_react5.default.createElement(import_react_bootstrap.Modal.Body, null, /* @__PURE__ */ import_react5.default.createElement(
|
|
1336
|
-
"svg",
|
|
1337
|
-
{
|
|
1338
|
-
width: "60",
|
|
1339
|
-
height: "60",
|
|
1340
|
-
viewBox: "0 0 60 60",
|
|
1341
|
-
fill: "none",
|
|
1342
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1343
|
-
},
|
|
1344
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
1345
|
-
"rect",
|
|
1346
|
-
{
|
|
1347
|
-
x: "0.5",
|
|
1348
|
-
y: "0.5",
|
|
1349
|
-
width: "59",
|
|
1350
|
-
height: "59",
|
|
1351
|
-
rx: "29.5",
|
|
1352
|
-
stroke: "#31B379"
|
|
1353
|
-
}
|
|
1354
|
-
),
|
|
1355
|
-
/* @__PURE__ */ import_react5.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1356
|
-
"path",
|
|
1357
|
-
{
|
|
1358
|
-
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",
|
|
1359
|
-
fill: "#31B379"
|
|
1360
|
-
}
|
|
1361
|
-
)),
|
|
1362
|
-
/* @__PURE__ */ import_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1363
|
-
"rect",
|
|
1364
|
-
{
|
|
1365
|
-
width: "22",
|
|
1366
|
-
height: "22",
|
|
1367
|
-
fill: "white",
|
|
1368
|
-
transform: "translate(19.5 19.0039)"
|
|
1369
|
-
}
|
|
1370
|
-
)))
|
|
1371
|
-
), /* @__PURE__ */ import_react5.default.createElement("h2", null, "Payment link has been ", /* @__PURE__ */ import_react5.default.createElement("br", null), " sent successfully"))
|
|
715
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "fractal-popup-content", style: { padding: "0px" } }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-success-container" }, /* @__PURE__ */ import_react5.default.createElement("span", { className: "request-payment-close-popup", onClick: handleCloseConfirmationModal }, /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react5.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_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react5.default.createElement("rect", { width: "16", height: "16", fill: "white" }))))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-success-tick-div" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-success-tick" }, /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react5.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_react5.default.createElement("h6", { className: "request-payment-success-text" }, "The request ", /* @__PURE__ */ import_react5.default.createElement("br", null), "was sent"), /* @__PURE__ */ import_react5.default.createElement("h6", { className: "request-payment-success-subtext" }, "Please wait for the customer to pay"), /* @__PURE__ */ import_react5.default.createElement("div", { className: "request-payment-success-btn-div" }, /* @__PURE__ */ import_react5.default.createElement("button", { onClick: handleCloseConfirmationModal, className: "request-payment-success-btn2" }, "Close"))))
|
|
1372
716
|
)));
|
|
1373
717
|
}
|
|
1374
718
|
|
|
1375
719
|
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
|
1376
|
-
var
|
|
1377
|
-
var
|
|
720
|
+
var import_react7 = __toESM(require("react"));
|
|
721
|
+
var import_react_bootstrap = require("react-bootstrap");
|
|
1378
722
|
var import_react_toastify = require("react-toastify");
|
|
1379
723
|
var import_ReactToastify = require("react-toastify/dist/ReactToastify.css");
|
|
724
|
+
|
|
725
|
+
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
|
726
|
+
var import_react6 = __toESM(require("react"));
|
|
727
|
+
var RequestPaymentstyles = (props) => {
|
|
728
|
+
return /* @__PURE__ */ import_react6.default.createElement("style", null, `
|
|
729
|
+
.paymentBtn {
|
|
730
|
+
background-color: black;
|
|
731
|
+
border: none;
|
|
732
|
+
color: white;
|
|
733
|
+
padding: 15px 32px;
|
|
734
|
+
text-align: center;
|
|
735
|
+
text-decoration: none;
|
|
736
|
+
display: inline-block;
|
|
737
|
+
font-size: 16px;
|
|
738
|
+
margin: 4px 2px;
|
|
739
|
+
cursor: pointer;
|
|
740
|
+
border-radius: 180px;
|
|
741
|
+
/* width: auto; */
|
|
742
|
+
}
|
|
743
|
+
/*****************************************REDESIGNING STYLES **************************************/
|
|
744
|
+
|
|
745
|
+
.request-payment-amount {
|
|
746
|
+
color: #161616;
|
|
747
|
+
text-align: center;
|
|
748
|
+
font-family: Inter;
|
|
749
|
+
font-size: 42px;
|
|
750
|
+
font-style: normal;
|
|
751
|
+
font-weight: 600;
|
|
752
|
+
text-transform: uppercase;
|
|
753
|
+
margin: 8px 0px !important;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.request-payment-orderid {
|
|
757
|
+
color: #727272;
|
|
758
|
+
text-align: center;
|
|
759
|
+
font-family: Inter;
|
|
760
|
+
font-size: 14px;
|
|
761
|
+
font-style: normal;
|
|
762
|
+
font-weight: 500;
|
|
763
|
+
margin: 0px;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.request-payment-pre-auth-merchantname {
|
|
767
|
+
color: #727272;
|
|
768
|
+
text-align: center;
|
|
769
|
+
font-family: Inter;
|
|
770
|
+
font-size: 14px;
|
|
771
|
+
font-style: normal;
|
|
772
|
+
font-weight: 500;
|
|
773
|
+
margin-top: 10px !important;
|
|
774
|
+
margin-bottom: 0px !important;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.request-payment-merchantname {
|
|
778
|
+
color: #727272;
|
|
779
|
+
text-align: center;
|
|
780
|
+
font-family: Inter;
|
|
781
|
+
font-size: 14px;
|
|
782
|
+
font-style: normal;
|
|
783
|
+
font-weight: 500;
|
|
784
|
+
margin-top: 20px !important;
|
|
785
|
+
margin-bottom: 0px !important;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.request-payment-close-popup {
|
|
789
|
+
position: absolute;
|
|
790
|
+
right: 20px;
|
|
791
|
+
top: 20px;
|
|
792
|
+
cursor: pointer;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.request-payment-amount-detail {
|
|
796
|
+
padding: 32px 0px;
|
|
797
|
+
border-bottom: 1px solid #E0DFE2;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.request-payment-popup-container {
|
|
801
|
+
padding: 0px !important;
|
|
802
|
+
border-radius: 12px !important;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.request-payment-input-form {
|
|
806
|
+
padding: 24px 48px 32px 48px;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.request-payment-input-label {
|
|
810
|
+
color: #727272;
|
|
811
|
+
font-family: Inter;
|
|
812
|
+
font-size: 12px;
|
|
813
|
+
font-style: normal;
|
|
814
|
+
font-weight: 500;
|
|
815
|
+
margin-bottom: 6px !important;
|
|
816
|
+
text-align: start !important;
|
|
817
|
+
width: 100% !important;
|
|
818
|
+
margin-bottom: 6px !important;
|
|
819
|
+
text-transform: uppercase;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.request-payment-input-box {
|
|
823
|
+
border-radius: 8px;
|
|
824
|
+
border: 1px solid #E0DFE2;
|
|
825
|
+
padding: 11px;
|
|
826
|
+
display: block;
|
|
827
|
+
width: 100%;
|
|
828
|
+
color: #161616;
|
|
829
|
+
margin-top: 6px !important;
|
|
830
|
+
font-family: Inter;
|
|
831
|
+
font-size: 14px;
|
|
832
|
+
font-style: normal;
|
|
833
|
+
font-weight: 500;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.request-payment-list-div {
|
|
837
|
+
margin-bottom: 12px;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.request-payment-submit-button {
|
|
841
|
+
border-radius: 80px;
|
|
842
|
+
background: #161616;
|
|
843
|
+
height: 48px;
|
|
844
|
+
padding: 12px 24px;
|
|
845
|
+
margin-top: 20px;
|
|
846
|
+
color: #fff;
|
|
847
|
+
width: 100% !important;
|
|
848
|
+
border: none !important;
|
|
849
|
+
font-family: Inter;
|
|
850
|
+
font-size: 16px;
|
|
851
|
+
font-style: normal;
|
|
852
|
+
font-weight: 500;
|
|
853
|
+
cursor: pointer;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.request-payment-submit-button:disabled {
|
|
857
|
+
cursor: not-allowed;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.request-payment-fractal-powerd-by {
|
|
861
|
+
color: #727272;
|
|
862
|
+
font-family: Inter;
|
|
863
|
+
font-size: 14px;
|
|
864
|
+
font-style: normal;
|
|
865
|
+
font-weight: 500;
|
|
866
|
+
margin-top: 16px;
|
|
867
|
+
display: flex;
|
|
868
|
+
text-align: center;
|
|
869
|
+
align-items: center;
|
|
870
|
+
justify-content: center;
|
|
871
|
+
gap: 6px;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.request-payment-fractal-powerd-by span {
|
|
875
|
+
color: #61C699;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.request-payment-success-container {
|
|
879
|
+
display: flex;
|
|
880
|
+
padding: 120px 48px 32px 48px;
|
|
881
|
+
flex-direction: column;
|
|
882
|
+
justify-content: center;
|
|
883
|
+
align-items: center;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.request-payment-success-tick {
|
|
887
|
+
border-radius: 1000px;
|
|
888
|
+
background: rgba(97, 198, 153, 0.14);
|
|
889
|
+
display: flex;
|
|
890
|
+
width: 60px;
|
|
891
|
+
height: 60px;
|
|
892
|
+
justify-content: center;
|
|
893
|
+
align-items: center;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.request-payment-success-text {
|
|
897
|
+
color: #161616;
|
|
898
|
+
text-align: center;
|
|
899
|
+
font-family: Inter;
|
|
900
|
+
font-size: 32px;
|
|
901
|
+
font-style: normal;
|
|
902
|
+
font-weight: 500;
|
|
903
|
+
line-height: 36px;
|
|
904
|
+
/* 112.5% */
|
|
905
|
+
letter-spacing: -0.64px;
|
|
906
|
+
margin-top: 20px;
|
|
907
|
+
margin-bottom: 5px !important;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.request-payment-success-subtext {
|
|
911
|
+
color: #727272;
|
|
912
|
+
text-align: center;
|
|
913
|
+
font-family: Inter;
|
|
914
|
+
font-size: 14px;
|
|
915
|
+
font-style: normal;
|
|
916
|
+
font-weight: 500;
|
|
917
|
+
line-height: 18px;
|
|
918
|
+
letter-spacing: -0.28px;
|
|
919
|
+
margin-bottom: 6rem !important;
|
|
920
|
+
margin-top: 8px !important;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.request-payment-success-btn-div {
|
|
924
|
+
display: flex;
|
|
925
|
+
align-items: flex-start;
|
|
926
|
+
justify-content: center;
|
|
927
|
+
gap: 8px;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.request-payment-success-tick-div {
|
|
931
|
+
display: flex;
|
|
932
|
+
justify-content: center;
|
|
933
|
+
align-items: center;
|
|
934
|
+
margin-top: 32px;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.request-payment-success-btn1 {
|
|
938
|
+
cursor: pointer;
|
|
939
|
+
border-radius: 80px;
|
|
940
|
+
border: 1px solid #E0DFE2;
|
|
941
|
+
display: flex;
|
|
942
|
+
padding: 12px 32px;
|
|
943
|
+
justify-content: center;
|
|
944
|
+
align-items: center;
|
|
945
|
+
gap: 6px;
|
|
946
|
+
background-color: #fff;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.request-payment-success-btn2 {
|
|
950
|
+
border-radius: 80px;
|
|
951
|
+
cursor: pointer;
|
|
952
|
+
border: 1px solid #E0DFE2;
|
|
953
|
+
display: flex;
|
|
954
|
+
padding: 12px 32px;
|
|
955
|
+
justify-content: center;
|
|
956
|
+
align-items: center;
|
|
957
|
+
gap: 6px;
|
|
958
|
+
background-color: #161616;
|
|
959
|
+
color: #fff;
|
|
960
|
+
font-family: Inter;
|
|
961
|
+
font-size: 14px;
|
|
962
|
+
font-style: normal;
|
|
963
|
+
font-weight: 500;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.request-payment-error-msg{
|
|
967
|
+
color: #dc3545;
|
|
968
|
+
font-family: Inter;
|
|
969
|
+
font-size: 12px;
|
|
970
|
+
}
|
|
971
|
+
`);
|
|
972
|
+
};
|
|
973
|
+
var RequestPaymentstyles_default = RequestPaymentstyles;
|
|
974
|
+
|
|
975
|
+
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
|
1380
976
|
function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1381
|
-
const [isLoading, setIsLoading] = (0,
|
|
1382
|
-
const [show, setShow] = (0,
|
|
1383
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
|
1384
|
-
const [amount, setAmount] = (0,
|
|
1385
|
-
const [orderId, setOrderId] = (0,
|
|
1386
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
|
1387
|
-
const [isValidAmount, setIsValidAmount] = (0,
|
|
1388
|
-
const [isValidOrderId, setIsValidOrderId] = (0,
|
|
1389
|
-
const [errorMessagephone, setErrorMessagephone] = (0,
|
|
1390
|
-
const [errorMessageamount, setErrorMessageamount] = (0,
|
|
1391
|
-
const [errorMessageorderid, setErrorMessageorderid] = (0,
|
|
1392
|
-
const [submitClicked, setSubmitClicked] = (0,
|
|
977
|
+
const [isLoading, setIsLoading] = (0, import_react7.useState)(false);
|
|
978
|
+
const [show, setShow] = (0, import_react7.useState)(false);
|
|
979
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react7.useState)("");
|
|
980
|
+
const [amount, setAmount] = (0, import_react7.useState)("");
|
|
981
|
+
const [orderId, setOrderId] = (0, import_react7.useState)("");
|
|
982
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react7.useState)(true);
|
|
983
|
+
const [isValidAmount, setIsValidAmount] = (0, import_react7.useState)(true);
|
|
984
|
+
const [isValidOrderId, setIsValidOrderId] = (0, import_react7.useState)(true);
|
|
985
|
+
const [errorMessagephone, setErrorMessagephone] = (0, import_react7.useState)("");
|
|
986
|
+
const [errorMessageamount, setErrorMessageamount] = (0, import_react7.useState)("");
|
|
987
|
+
const [errorMessageorderid, setErrorMessageorderid] = (0, import_react7.useState)("");
|
|
988
|
+
const [submitClicked, setSubmitClicked] = (0, import_react7.useState)(false);
|
|
1393
989
|
const handleClose = () => setShow(false);
|
|
1394
990
|
const handleShow = () => setShow(true);
|
|
1395
991
|
const sendRequestPayment = () => {
|
|
@@ -1491,7 +1087,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1491
1087
|
setIsValidOrderId(false);
|
|
1492
1088
|
}
|
|
1493
1089
|
};
|
|
1494
|
-
return /* @__PURE__ */
|
|
1090
|
+
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(
|
|
1495
1091
|
"input",
|
|
1496
1092
|
{
|
|
1497
1093
|
type: "text",
|
|
@@ -1501,7 +1097,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1501
1097
|
maxLength: 10,
|
|
1502
1098
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
|
1503
1099
|
}
|
|
1504
|
-
), errorMessagephone && /* @__PURE__ */
|
|
1100
|
+
), 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(
|
|
1505
1101
|
"input",
|
|
1506
1102
|
{
|
|
1507
1103
|
type: "text",
|
|
@@ -1510,7 +1106,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1510
1106
|
placeholder: "Enter amount",
|
|
1511
1107
|
className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
|
|
1512
1108
|
}
|
|
1513
|
-
), errorMessageamount && /* @__PURE__ */
|
|
1109
|
+
), 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(
|
|
1514
1110
|
"input",
|
|
1515
1111
|
{
|
|
1516
1112
|
type: "text",
|
|
@@ -1519,7 +1115,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1519
1115
|
placeholder: "Enter order ID",
|
|
1520
1116
|
className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
|
|
1521
1117
|
}
|
|
1522
|
-
), errorMessageorderid && /* @__PURE__ */
|
|
1118
|
+
), errorMessageorderid && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ import_react7.default.createElement(
|
|
1523
1119
|
"button",
|
|
1524
1120
|
{
|
|
1525
1121
|
onClick: sendRequestPayment,
|
|
@@ -1527,7 +1123,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1527
1123
|
className: "paymentBtn"
|
|
1528
1124
|
},
|
|
1529
1125
|
isLoading ? "Loading..." : "Request Payment"
|
|
1530
|
-
)), /* @__PURE__ */
|
|
1126
|
+
)), /* @__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(
|
|
1531
1127
|
"svg",
|
|
1532
1128
|
{
|
|
1533
1129
|
width: "60",
|
|
@@ -1536,7 +1132,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1536
1132
|
fill: "none",
|
|
1537
1133
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1538
1134
|
},
|
|
1539
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
|
1540
1136
|
"rect",
|
|
1541
1137
|
{
|
|
1542
1138
|
x: "0.5",
|
|
@@ -1547,14 +1143,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1547
1143
|
stroke: "#31B379"
|
|
1548
1144
|
}
|
|
1549
1145
|
),
|
|
1550
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ import_react7.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1551
1147
|
"path",
|
|
1552
1148
|
{
|
|
1553
1149
|
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",
|
|
1554
1150
|
fill: "#31B379"
|
|
1555
1151
|
}
|
|
1556
1152
|
)),
|
|
1557
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ import_react7.default.createElement("defs", null, /* @__PURE__ */ import_react7.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1558
1154
|
"rect",
|
|
1559
1155
|
{
|
|
1560
1156
|
width: "22",
|
|
@@ -1563,12 +1159,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
|
1563
1159
|
transform: "translate(19.5 19.0039)"
|
|
1564
1160
|
}
|
|
1565
1161
|
)))
|
|
1566
|
-
), /* @__PURE__ */
|
|
1162
|
+
), /* @__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));
|
|
1567
1163
|
}
|
|
1568
1164
|
|
|
1569
1165
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
|
1570
|
-
var
|
|
1571
|
-
var
|
|
1166
|
+
var import_react8 = __toESM(require("react"));
|
|
1167
|
+
var import_react_bootstrap2 = require("react-bootstrap");
|
|
1572
1168
|
|
|
1573
1169
|
// src/app/components/Api/createWidgetOrder.ts
|
|
1574
1170
|
var createWidgetOrder = (formData) => {
|
|
@@ -1591,8 +1187,8 @@ var createWidgetOrder = (formData) => {
|
|
|
1591
1187
|
|
|
1592
1188
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
|
1593
1189
|
function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orderID }) {
|
|
1594
|
-
const [isLoading, setIsLoading] = (0,
|
|
1595
|
-
const [show, setShow] = (0,
|
|
1190
|
+
const [isLoading, setIsLoading] = (0, import_react8.useState)(false);
|
|
1191
|
+
const [show, setShow] = (0, import_react8.useState)(false);
|
|
1596
1192
|
const handleClose = () => setShow(false);
|
|
1597
1193
|
const handleShow = () => setShow(true);
|
|
1598
1194
|
const sendRequestPayment = () => {
|
|
@@ -1615,7 +1211,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
|
1615
1211
|
console.error("Error:", error);
|
|
1616
1212
|
});
|
|
1617
1213
|
};
|
|
1618
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
|
|
1619
1215
|
"button",
|
|
1620
1216
|
{
|
|
1621
1217
|
onClick: sendRequestPayment,
|
|
@@ -1623,7 +1219,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
|
1623
1219
|
className: "paymentBtn"
|
|
1624
1220
|
},
|
|
1625
1221
|
isLoading ? "Loading..." : "Request Payment"
|
|
1626
|
-
), /* @__PURE__ */
|
|
1222
|
+
), /* @__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(
|
|
1627
1223
|
"svg",
|
|
1628
1224
|
{
|
|
1629
1225
|
width: "60",
|
|
@@ -1632,7 +1228,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
|
1632
1228
|
fill: "none",
|
|
1633
1229
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1634
1230
|
},
|
|
1635
|
-
/* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
1636
1232
|
"rect",
|
|
1637
1233
|
{
|
|
1638
1234
|
x: "0.5",
|
|
@@ -1643,14 +1239,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
|
1643
1239
|
stroke: "#31B379"
|
|
1644
1240
|
}
|
|
1645
1241
|
),
|
|
1646
|
-
/* @__PURE__ */
|
|
1242
|
+
/* @__PURE__ */ import_react8.default.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
1647
1243
|
"path",
|
|
1648
1244
|
{
|
|
1649
1245
|
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",
|
|
1650
1246
|
fill: "#31B379"
|
|
1651
1247
|
}
|
|
1652
1248
|
)),
|
|
1653
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ import_react8.default.createElement("defs", null, /* @__PURE__ */ import_react8.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
1654
1250
|
"rect",
|
|
1655
1251
|
{
|
|
1656
1252
|
width: "22",
|
|
@@ -1659,15 +1255,15 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
|
1659
1255
|
transform: "translate(19.5 19.0039)"
|
|
1660
1256
|
}
|
|
1661
1257
|
)))
|
|
1662
|
-
), /* @__PURE__ */
|
|
1258
|
+
), /* @__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"))));
|
|
1663
1259
|
}
|
|
1664
1260
|
|
|
1665
1261
|
// src/app/components/RequestPayment/RequestPaymentonClick.tsx
|
|
1666
|
-
var
|
|
1667
|
-
var
|
|
1262
|
+
var import_react9 = __toESM(require("react"));
|
|
1263
|
+
var import_react_bootstrap3 = require("react-bootstrap");
|
|
1668
1264
|
function RequestPaymentonClick(props) {
|
|
1669
|
-
const [isLoading, setIsLoading] = (0,
|
|
1670
|
-
const [show, setShow] = (0,
|
|
1265
|
+
const [isLoading, setIsLoading] = (0, import_react9.useState)(false);
|
|
1266
|
+
const [show, setShow] = (0, import_react9.useState)(false);
|
|
1671
1267
|
const handleClose = () => setShow(false);
|
|
1672
1268
|
const handleShow = () => setShow(true);
|
|
1673
1269
|
const { fractalpayClientKey, amount, phone_number, orderID, onSuccess, onError } = props;
|
|
@@ -1701,7 +1297,7 @@ function RequestPaymentonClick(props) {
|
|
|
1701
1297
|
console.error("Error:", error);
|
|
1702
1298
|
});
|
|
1703
1299
|
};
|
|
1704
|
-
return /* @__PURE__ */
|
|
1300
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react9.default.createElement(
|
|
1705
1301
|
"button",
|
|
1706
1302
|
{
|
|
1707
1303
|
onClick: sendRequestPayment,
|
|
@@ -1709,7 +1305,7 @@ function RequestPaymentonClick(props) {
|
|
|
1709
1305
|
className: "paymentBtn"
|
|
1710
1306
|
},
|
|
1711
1307
|
isLoading ? "Loading..." : "Request Payment"
|
|
1712
|
-
), /* @__PURE__ */
|
|
1308
|
+
), /* @__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(
|
|
1713
1309
|
"svg",
|
|
1714
1310
|
{
|
|
1715
1311
|
width: "60",
|
|
@@ -1718,7 +1314,7 @@ function RequestPaymentonClick(props) {
|
|
|
1718
1314
|
fill: "none",
|
|
1719
1315
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1720
1316
|
},
|
|
1721
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
|
1722
1318
|
"rect",
|
|
1723
1319
|
{
|
|
1724
1320
|
x: "0.5",
|
|
@@ -1729,14 +1325,14 @@ function RequestPaymentonClick(props) {
|
|
|
1729
1325
|
stroke: "#31B379"
|
|
1730
1326
|
}
|
|
1731
1327
|
),
|
|
1732
|
-
/* @__PURE__ */
|
|
1328
|
+
/* @__PURE__ */ import_react9.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react9.default.createElement(
|
|
1733
1329
|
"path",
|
|
1734
1330
|
{
|
|
1735
1331
|
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",
|
|
1736
1332
|
fill: "#31B379"
|
|
1737
1333
|
}
|
|
1738
1334
|
)),
|
|
1739
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ import_react9.default.createElement("defs", null, /* @__PURE__ */ import_react9.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react9.default.createElement(
|
|
1740
1336
|
"rect",
|
|
1741
1337
|
{
|
|
1742
1338
|
width: "22",
|
|
@@ -1745,21 +1341,21 @@ function RequestPaymentonClick(props) {
|
|
|
1745
1341
|
transform: "translate(19.5 19.0039)"
|
|
1746
1342
|
}
|
|
1747
1343
|
)))
|
|
1748
|
-
), onSuccess ? /* @__PURE__ */
|
|
1344
|
+
), 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"))));
|
|
1749
1345
|
}
|
|
1750
1346
|
|
|
1751
1347
|
// src/app/components/RequestPayment/RqstPaymntInputField.tsx
|
|
1752
|
-
var
|
|
1753
|
-
var
|
|
1348
|
+
var import_react10 = __toESM(require("react"));
|
|
1349
|
+
var import_react_bootstrap4 = require("react-bootstrap");
|
|
1754
1350
|
var import_react_toastify2 = require("react-toastify");
|
|
1755
1351
|
var import_ReactToastify2 = require("react-toastify/dist/ReactToastify.css");
|
|
1756
1352
|
function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1757
|
-
const [isLoading, setIsLoading] = (0,
|
|
1758
|
-
const [show, setShow] = (0,
|
|
1759
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
|
1760
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
|
1761
|
-
const [errorMessage, setErrorMessage] = (0,
|
|
1762
|
-
const [submitClicked, setSubmitClicked] = (0,
|
|
1353
|
+
const [isLoading, setIsLoading] = (0, import_react10.useState)(false);
|
|
1354
|
+
const [show, setShow] = (0, import_react10.useState)(false);
|
|
1355
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react10.useState)("");
|
|
1356
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react10.useState)(true);
|
|
1357
|
+
const [errorMessage, setErrorMessage] = (0, import_react10.useState)("");
|
|
1358
|
+
const [submitClicked, setSubmitClicked] = (0, import_react10.useState)(false);
|
|
1763
1359
|
const handleClose = () => setShow(false);
|
|
1764
1360
|
const handleShow = () => setShow(true);
|
|
1765
1361
|
const sendRequestPayment = () => {
|
|
@@ -1822,7 +1418,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1822
1418
|
setErrorMessage(ErrorText.phonenumbervalid);
|
|
1823
1419
|
}
|
|
1824
1420
|
};
|
|
1825
|
-
return /* @__PURE__ */
|
|
1421
|
+
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(
|
|
1826
1422
|
"input",
|
|
1827
1423
|
{
|
|
1828
1424
|
type: "text",
|
|
@@ -1832,7 +1428,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1832
1428
|
maxLength: 10,
|
|
1833
1429
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
|
1834
1430
|
}
|
|
1835
|
-
), errorMessage && /* @__PURE__ */
|
|
1431
|
+
), 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(
|
|
1836
1432
|
"button",
|
|
1837
1433
|
{
|
|
1838
1434
|
onClick: sendRequestPayment,
|
|
@@ -1840,7 +1436,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1840
1436
|
className: "paymentBtn"
|
|
1841
1437
|
},
|
|
1842
1438
|
isLoading ? "Loading..." : "Request Payment"
|
|
1843
|
-
))), /* @__PURE__ */
|
|
1439
|
+
))), /* @__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(
|
|
1844
1440
|
"svg",
|
|
1845
1441
|
{
|
|
1846
1442
|
width: "60",
|
|
@@ -1849,7 +1445,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1849
1445
|
fill: "none",
|
|
1850
1446
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1851
1447
|
},
|
|
1852
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1853
1449
|
"rect",
|
|
1854
1450
|
{
|
|
1855
1451
|
x: "0.5",
|
|
@@ -1860,14 +1456,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1860
1456
|
stroke: "#31B379"
|
|
1861
1457
|
}
|
|
1862
1458
|
),
|
|
1863
|
-
/* @__PURE__ */
|
|
1459
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1864
1460
|
"path",
|
|
1865
1461
|
{
|
|
1866
1462
|
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",
|
|
1867
1463
|
fill: "#31B379"
|
|
1868
1464
|
}
|
|
1869
1465
|
)),
|
|
1870
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ import_react10.default.createElement("defs", null, /* @__PURE__ */ import_react10.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1871
1467
|
"rect",
|
|
1872
1468
|
{
|
|
1873
1469
|
width: "22",
|
|
@@ -1876,19 +1472,19 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
|
1876
1472
|
transform: "translate(19.5 19.0039)"
|
|
1877
1473
|
}
|
|
1878
1474
|
)))
|
|
1879
|
-
), /* @__PURE__ */
|
|
1475
|
+
), /* @__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));
|
|
1880
1476
|
}
|
|
1881
1477
|
|
|
1882
1478
|
// src/app/components/Payment/Payment.tsx
|
|
1883
|
-
var
|
|
1479
|
+
var import_react12 = __toESM(require("react"));
|
|
1884
1480
|
var import_node_forge = __toESM(require("node-forge"));
|
|
1885
1481
|
var import_react_toastify3 = require("react-toastify");
|
|
1886
|
-
var
|
|
1482
|
+
var import_react_bootstrap5 = require("react-bootstrap");
|
|
1887
1483
|
|
|
1888
1484
|
// src/app/components/Payment/Paymentstyles.tsx
|
|
1889
|
-
var
|
|
1485
|
+
var import_react11 = __toESM(require("react"));
|
|
1890
1486
|
function Paymentstyles() {
|
|
1891
|
-
return /* @__PURE__ */
|
|
1487
|
+
return /* @__PURE__ */ import_react11.default.createElement("style", null, `
|
|
1892
1488
|
.paymentBtn {
|
|
1893
1489
|
background-color: black;
|
|
1894
1490
|
border: none;
|
|
@@ -2814,7 +2410,7 @@ input {
|
|
|
2814
2410
|
// src/app/components/Payment/Payment.tsx
|
|
2815
2411
|
function Payment() {
|
|
2816
2412
|
var _a;
|
|
2817
|
-
const [state, setState] = (0,
|
|
2413
|
+
const [state, setState] = (0, import_react12.useState)({
|
|
2818
2414
|
show: false,
|
|
2819
2415
|
publicKey: "",
|
|
2820
2416
|
sessionKey: "",
|
|
@@ -2825,9 +2421,9 @@ function Payment() {
|
|
|
2825
2421
|
zip: "",
|
|
2826
2422
|
amount: ""
|
|
2827
2423
|
});
|
|
2828
|
-
const [isValid, setIsValid] = (0,
|
|
2829
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
|
2830
|
-
const [data, setData] = (0,
|
|
2424
|
+
const [isValid, setIsValid] = (0, import_react12.useState)(false);
|
|
2425
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react12.useState)(false);
|
|
2426
|
+
const [data, setData] = (0, import_react12.useState)(null);
|
|
2831
2427
|
const handlePaymentClick = async () => {
|
|
2832
2428
|
try {
|
|
2833
2429
|
const response = await fetch(`${baseUrl}generate-session`, {
|
|
@@ -2991,7 +2587,7 @@ function Payment() {
|
|
|
2991
2587
|
}
|
|
2992
2588
|
return "";
|
|
2993
2589
|
}
|
|
2994
|
-
return /* @__PURE__ */
|
|
2590
|
+
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(
|
|
2995
2591
|
"button",
|
|
2996
2592
|
{
|
|
2997
2593
|
className: "export-btn",
|
|
@@ -2999,8 +2595,8 @@ function Payment() {
|
|
|
2999
2595
|
onClick: () => handlePaymentClick()
|
|
3000
2596
|
},
|
|
3001
2597
|
"Payment"
|
|
3002
|
-
), /* @__PURE__ */
|
|
3003
|
-
|
|
2598
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
2599
|
+
import_react_bootstrap5.Modal,
|
|
3004
2600
|
{
|
|
3005
2601
|
show: state.show,
|
|
3006
2602
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3008,8 +2604,8 @@ function Payment() {
|
|
|
3008
2604
|
})),
|
|
3009
2605
|
centered: true
|
|
3010
2606
|
},
|
|
3011
|
-
/* @__PURE__ */
|
|
3012
|
-
/* @__PURE__ */
|
|
2607
|
+
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap5.Modal.Header, { closeButton: true }),
|
|
2608
|
+
/* @__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(
|
|
3013
2609
|
"input",
|
|
3014
2610
|
{
|
|
3015
2611
|
type: "text",
|
|
@@ -3018,13 +2614,13 @@ function Payment() {
|
|
|
3018
2614
|
className: "form-control",
|
|
3019
2615
|
id: ""
|
|
3020
2616
|
}
|
|
3021
|
-
)), /* @__PURE__ */
|
|
2617
|
+
)), /* @__PURE__ */ import_react12.default.createElement(
|
|
3022
2618
|
"span",
|
|
3023
2619
|
{
|
|
3024
2620
|
id: "amount-error",
|
|
3025
2621
|
style: { color: "red", display: "none" }
|
|
3026
2622
|
}
|
|
3027
|
-
)), /* @__PURE__ */
|
|
2623
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Name on card"), /* @__PURE__ */ import_react12.default.createElement(
|
|
3028
2624
|
"input",
|
|
3029
2625
|
{
|
|
3030
2626
|
id: "NameOnCard",
|
|
@@ -3033,13 +2629,13 @@ function Payment() {
|
|
|
3033
2629
|
maxLength: 100,
|
|
3034
2630
|
placeholder: "Name"
|
|
3035
2631
|
}
|
|
3036
|
-
), /* @__PURE__ */
|
|
2632
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
3037
2633
|
"span",
|
|
3038
2634
|
{
|
|
3039
2635
|
id: "NameOnCard-error",
|
|
3040
2636
|
style: { color: "red", display: "none" }
|
|
3041
2637
|
}
|
|
3042
|
-
)), /* @__PURE__ */
|
|
2638
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
3043
2639
|
"input",
|
|
3044
2640
|
{
|
|
3045
2641
|
"data-token": "card_number",
|
|
@@ -3050,7 +2646,7 @@ function Payment() {
|
|
|
3050
2646
|
placeholder: "0000 0000 0000 0000",
|
|
3051
2647
|
onChange: handleCardNumberChange
|
|
3052
2648
|
}
|
|
3053
|
-
), state.error && /* @__PURE__ */
|
|
2649
|
+
), 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(
|
|
3054
2650
|
"input",
|
|
3055
2651
|
{
|
|
3056
2652
|
"data-token": "exp_month",
|
|
@@ -3061,14 +2657,14 @@ function Payment() {
|
|
|
3061
2657
|
maxLength: 2,
|
|
3062
2658
|
onChange: (e) => handleMonthChange(e)
|
|
3063
2659
|
}
|
|
3064
|
-
), isValidMonth && /* @__PURE__ */
|
|
2660
|
+
), isValidMonth && /* @__PURE__ */ import_react12.default.createElement(
|
|
3065
2661
|
"span",
|
|
3066
2662
|
{
|
|
3067
2663
|
id: "card_number-error",
|
|
3068
2664
|
style: { color: "red", fontSize: "15px" }
|
|
3069
2665
|
},
|
|
3070
2666
|
(_a = ErrorText) == null ? void 0 : _a.montherror
|
|
3071
|
-
)), /* @__PURE__ */
|
|
2667
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
3072
2668
|
"input",
|
|
3073
2669
|
{
|
|
3074
2670
|
"data-token": "exp_year",
|
|
@@ -3079,7 +2675,7 @@ function Payment() {
|
|
|
3079
2675
|
value: state.year,
|
|
3080
2676
|
onChange: (e) => handleYearChange(e)
|
|
3081
2677
|
}
|
|
3082
|
-
), state.yearError && /* @__PURE__ */
|
|
2678
|
+
), 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(
|
|
3083
2679
|
"input",
|
|
3084
2680
|
{
|
|
3085
2681
|
"data-token": "cvv",
|
|
@@ -3090,7 +2686,7 @@ function Payment() {
|
|
|
3090
2686
|
placeholder: "CVV",
|
|
3091
2687
|
onChange: (e) => handleCVVChange(e)
|
|
3092
2688
|
}
|
|
3093
|
-
), /* @__PURE__ */
|
|
2689
|
+
), /* @__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(
|
|
3094
2690
|
"input",
|
|
3095
2691
|
{
|
|
3096
2692
|
id: "ZIPCode",
|
|
@@ -3102,7 +2698,7 @@ function Payment() {
|
|
|
3102
2698
|
value: state.zip,
|
|
3103
2699
|
onChange: (e) => handleZIP(e)
|
|
3104
2700
|
}
|
|
3105
|
-
), /* @__PURE__ */
|
|
2701
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
3106
2702
|
"a",
|
|
3107
2703
|
{
|
|
3108
2704
|
tabIndex: 0,
|
|
@@ -3112,15 +2708,15 @@ function Payment() {
|
|
|
3112
2708
|
"data-placement": "left",
|
|
3113
2709
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
|
3114
2710
|
},
|
|
3115
|
-
/* @__PURE__ */
|
|
3116
|
-
), /* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ import_react12.default.createElement("i", { className: "fa fa-question-circle" })
|
|
2712
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
3117
2713
|
"span",
|
|
3118
2714
|
{
|
|
3119
2715
|
id: "ZIPCode-error",
|
|
3120
2716
|
style: { color: "red", display: "none" }
|
|
3121
2717
|
},
|
|
3122
2718
|
ErrorText.fieldrequired
|
|
3123
|
-
))), /* @__PURE__ */
|
|
2719
|
+
))), /* @__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(
|
|
3124
2720
|
"input",
|
|
3125
2721
|
{
|
|
3126
2722
|
id: "Amount",
|
|
@@ -3132,7 +2728,7 @@ function Payment() {
|
|
|
3132
2728
|
onChange: (e) => handleAmount(e),
|
|
3133
2729
|
onBlur: handleAmountBlur
|
|
3134
2730
|
}
|
|
3135
|
-
))), /* @__PURE__ */
|
|
2731
|
+
))), /* @__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(
|
|
3136
2732
|
"button",
|
|
3137
2733
|
{
|
|
3138
2734
|
type: "button",
|
|
@@ -3141,7 +2737,7 @@ function Payment() {
|
|
|
3141
2737
|
className: "btn btn-block btn-success submit-button"
|
|
3142
2738
|
},
|
|
3143
2739
|
"Pay"
|
|
3144
|
-
)), /* @__PURE__ */
|
|
2740
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
3145
2741
|
"svg",
|
|
3146
2742
|
{
|
|
3147
2743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3149,14 +2745,14 @@ function Payment() {
|
|
|
3149
2745
|
height: "20",
|
|
3150
2746
|
viewBox: "0 0 26 26"
|
|
3151
2747
|
},
|
|
3152
|
-
/* @__PURE__ */
|
|
2748
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
|
3153
2749
|
"path",
|
|
3154
2750
|
{
|
|
3155
2751
|
fill: "currentColor",
|
|
3156
2752
|
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"
|
|
3157
2753
|
}
|
|
3158
2754
|
)
|
|
3159
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
|
2755
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react12.default.createElement(
|
|
3160
2756
|
"img",
|
|
3161
2757
|
{
|
|
3162
2758
|
src: "https://ui.fractalpay.com/favicon.ico",
|
|
@@ -3168,22 +2764,22 @@ function Payment() {
|
|
|
3168
2764
|
}
|
|
3169
2765
|
|
|
3170
2766
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
|
3171
|
-
var
|
|
3172
|
-
var
|
|
2767
|
+
var import_react14 = __toESM(require("react"));
|
|
2768
|
+
var import_react_bootstrap6 = require("react-bootstrap");
|
|
3173
2769
|
var import_react_bs_datatable = require("react-bs-datatable");
|
|
3174
2770
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
|
3175
2771
|
var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
|
|
3176
2772
|
var import_react_toastify4 = require("react-toastify");
|
|
3177
2773
|
|
|
3178
2774
|
// src/app/components/Pagination/Pagination.tsx
|
|
3179
|
-
var
|
|
2775
|
+
var import_react13 = __toESM(require("react"));
|
|
3180
2776
|
function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3181
|
-
const [currentPage, setCurrentPage] = (0,
|
|
3182
|
-
const [showPages, setShowPages] = (0,
|
|
3183
|
-
(0,
|
|
2777
|
+
const [currentPage, setCurrentPage] = (0, import_react13.useState)(current);
|
|
2778
|
+
const [showPages, setShowPages] = (0, import_react13.useState)(false);
|
|
2779
|
+
(0, import_react13.useEffect)(() => {
|
|
3184
2780
|
setCurrentPage(current);
|
|
3185
2781
|
}, [current]);
|
|
3186
|
-
(0,
|
|
2782
|
+
(0, import_react13.useEffect)(() => {
|
|
3187
2783
|
setTimeout(() => {
|
|
3188
2784
|
setShowPages(true);
|
|
3189
2785
|
}, 1e3);
|
|
@@ -3219,7 +2815,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
|
3219
2815
|
if (currentPage > 3) {
|
|
3220
2816
|
pageNumbers.push(renderPageNumber(1));
|
|
3221
2817
|
if (currentPage > 4) {
|
|
3222
|
-
pageNumbers.push(/* @__PURE__ */
|
|
2818
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
|
3223
2819
|
}
|
|
3224
2820
|
}
|
|
3225
2821
|
const startPage = Math.max(currentPage - 1, 1);
|
|
@@ -3229,15 +2825,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
|
3229
2825
|
}
|
|
3230
2826
|
if (currentPage < totalPages - 2) {
|
|
3231
2827
|
if (currentPage < totalPages - 3) {
|
|
3232
|
-
pageNumbers.push(/* @__PURE__ */
|
|
2828
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
|
3233
2829
|
}
|
|
3234
2830
|
pageNumbers.push(renderPageNumber(totalPages));
|
|
3235
2831
|
}
|
|
3236
2832
|
}
|
|
3237
2833
|
return pageNumbers;
|
|
3238
2834
|
};
|
|
3239
|
-
const renderPageNumber = (pageNumber) => /* @__PURE__ */
|
|
3240
|
-
return /* @__PURE__ */
|
|
2835
|
+
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));
|
|
2836
|
+
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"))))));
|
|
3241
2837
|
}
|
|
3242
2838
|
|
|
3243
2839
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
|
@@ -3275,10 +2871,10 @@ var STORY_HEADERS = [
|
|
|
3275
2871
|
}
|
|
3276
2872
|
];
|
|
3277
2873
|
function CompletedTransactions(props) {
|
|
3278
|
-
const [dataList, setDataList] = (0,
|
|
3279
|
-
const [startDate, setStartDate] = (0,
|
|
3280
|
-
const [endDate, setEndDate] = (0,
|
|
3281
|
-
const [state, setState] = (0,
|
|
2874
|
+
const [dataList, setDataList] = (0, import_react14.useState)([]);
|
|
2875
|
+
const [startDate, setStartDate] = (0, import_react14.useState)(null);
|
|
2876
|
+
const [endDate, setEndDate] = (0, import_react14.useState)(null);
|
|
2877
|
+
const [state, setState] = (0, import_react14.useState)({
|
|
3282
2878
|
page: 1,
|
|
3283
2879
|
totalPage: 0,
|
|
3284
2880
|
data: [],
|
|
@@ -3401,18 +2997,18 @@ function CompletedTransactions(props) {
|
|
|
3401
2997
|
}
|
|
3402
2998
|
}
|
|
3403
2999
|
};
|
|
3404
|
-
(0,
|
|
3000
|
+
(0, import_react14.useEffect)(() => {
|
|
3405
3001
|
fetchData(state.page, startDate, endDate);
|
|
3406
3002
|
}, [state.page]);
|
|
3407
3003
|
const handlePageChange = (pageNumber) => {
|
|
3408
3004
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
|
|
3409
3005
|
fetchData(pageNumber, startDate, endDate);
|
|
3410
3006
|
};
|
|
3411
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement("style", null, `
|
|
3412
3008
|
.react-datepicker-wrapper:first-child {
|
|
3413
3009
|
margin-right: 10px;
|
|
3414
3010
|
}
|
|
3415
|
-
`), /* @__PURE__ */
|
|
3011
|
+
`), /* @__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(
|
|
3416
3012
|
import_react_datepicker.default,
|
|
3417
3013
|
{
|
|
3418
3014
|
selected: startDate,
|
|
@@ -3423,7 +3019,7 @@ function CompletedTransactions(props) {
|
|
|
3423
3019
|
placeholderText: "Start Date",
|
|
3424
3020
|
required: true
|
|
3425
3021
|
}
|
|
3426
|
-
), /* @__PURE__ */
|
|
3022
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
|
3427
3023
|
import_react_datepicker.default,
|
|
3428
3024
|
{
|
|
3429
3025
|
selected: endDate,
|
|
@@ -3434,7 +3030,7 @@ function CompletedTransactions(props) {
|
|
|
3434
3030
|
minDate: startDate,
|
|
3435
3031
|
placeholderText: "End Date"
|
|
3436
3032
|
}
|
|
3437
|
-
)), /* @__PURE__ */
|
|
3033
|
+
)), /* @__PURE__ */ import_react14.default.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ import_react14.default.createElement(
|
|
3438
3034
|
import_react_bs_datatable.DatatableWrapper,
|
|
3439
3035
|
{
|
|
3440
3036
|
body: dataList,
|
|
@@ -3446,20 +3042,20 @@ function CompletedTransactions(props) {
|
|
|
3446
3042
|
}
|
|
3447
3043
|
}
|
|
3448
3044
|
},
|
|
3449
|
-
/* @__PURE__ */
|
|
3450
|
-
/* @__PURE__ */
|
|
3451
|
-
/* @__PURE__ */
|
|
3045
|
+
/* @__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))),
|
|
3046
|
+
/* @__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)))),
|
|
3047
|
+
/* @__PURE__ */ import_react14.default.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
|
3452
3048
|
))));
|
|
3453
3049
|
}
|
|
3454
3050
|
|
|
3455
3051
|
// src/app/components/Payment/TockenizPay.tsx
|
|
3456
|
-
var
|
|
3457
|
-
var
|
|
3052
|
+
var import_react15 = __toESM(require("react"));
|
|
3053
|
+
var import_react_bootstrap7 = require("react-bootstrap");
|
|
3458
3054
|
var import_react_toastify5 = require("react-toastify");
|
|
3459
3055
|
var import_node_forge2 = __toESM(require("node-forge"));
|
|
3460
3056
|
var import_credit_card_type = __toESM(require("credit-card-type"));
|
|
3461
3057
|
function TockenizPay() {
|
|
3462
|
-
const [state, setState] = (0,
|
|
3058
|
+
const [state, setState] = (0, import_react15.useState)({
|
|
3463
3059
|
show: false,
|
|
3464
3060
|
publicKey: "",
|
|
3465
3061
|
sessionKey: "",
|
|
@@ -3470,10 +3066,10 @@ function TockenizPay() {
|
|
|
3470
3066
|
zip: "",
|
|
3471
3067
|
amount: ""
|
|
3472
3068
|
});
|
|
3473
|
-
const [cardTypeDetail, setCardTypeDetail] = (0,
|
|
3474
|
-
const [isValid, setIsValid] = (0,
|
|
3475
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
|
3476
|
-
const [data, setData] = (0,
|
|
3069
|
+
const [cardTypeDetail, setCardTypeDetail] = (0, import_react15.useState)(null);
|
|
3070
|
+
const [isValid, setIsValid] = (0, import_react15.useState)(false);
|
|
3071
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react15.useState)(false);
|
|
3072
|
+
const [data, setData] = (0, import_react15.useState)(null);
|
|
3477
3073
|
const handlePaymentClick = async () => {
|
|
3478
3074
|
try {
|
|
3479
3075
|
const response = await fetch(`${baseUrl}/generate-session`, {
|
|
@@ -3685,7 +3281,7 @@ function TockenizPay() {
|
|
|
3685
3281
|
}
|
|
3686
3282
|
return "";
|
|
3687
3283
|
}
|
|
3688
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement(import_react_toastify5.ToastContainer, null), /* @__PURE__ */ import_react15.default.createElement(
|
|
3689
3285
|
"button",
|
|
3690
3286
|
{
|
|
3691
3287
|
className: "export-btn mt-4",
|
|
@@ -3693,8 +3289,8 @@ function TockenizPay() {
|
|
|
3693
3289
|
onClick: () => handlePaymentClick()
|
|
3694
3290
|
},
|
|
3695
3291
|
"TokenizePay"
|
|
3696
|
-
), /* @__PURE__ */
|
|
3697
|
-
|
|
3292
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3293
|
+
import_react_bootstrap7.Modal,
|
|
3698
3294
|
{
|
|
3699
3295
|
show: state.show,
|
|
3700
3296
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3702,8 +3298,8 @@ function TockenizPay() {
|
|
|
3702
3298
|
})),
|
|
3703
3299
|
centered: true
|
|
3704
3300
|
},
|
|
3705
|
-
/* @__PURE__ */
|
|
3706
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_bootstrap7.Modal.Header, { closeButton: true }),
|
|
3302
|
+
/* @__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(
|
|
3707
3303
|
"input",
|
|
3708
3304
|
{
|
|
3709
3305
|
id: "NameOnCard",
|
|
@@ -3712,13 +3308,13 @@ function TockenizPay() {
|
|
|
3712
3308
|
maxLength: 100,
|
|
3713
3309
|
placeholder: "Name"
|
|
3714
3310
|
}
|
|
3715
|
-
), /* @__PURE__ */
|
|
3311
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3716
3312
|
"span",
|
|
3717
3313
|
{
|
|
3718
3314
|
id: "NameOnCard-error",
|
|
3719
3315
|
style: { color: "red", display: "none" }
|
|
3720
3316
|
}
|
|
3721
|
-
)), /* @__PURE__ */
|
|
3317
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
|
3722
3318
|
"input",
|
|
3723
3319
|
{
|
|
3724
3320
|
"data-token": "card_number",
|
|
@@ -3729,7 +3325,7 @@ function TockenizPay() {
|
|
|
3729
3325
|
placeholder: "0000 0000 0000 0000",
|
|
3730
3326
|
onChange: handleCardNumberChange
|
|
3731
3327
|
}
|
|
3732
|
-
), state.error && /* @__PURE__ */
|
|
3328
|
+
), 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(
|
|
3733
3329
|
"input",
|
|
3734
3330
|
{
|
|
3735
3331
|
"data-token": "exp_month",
|
|
@@ -3740,14 +3336,14 @@ function TockenizPay() {
|
|
|
3740
3336
|
maxLength: 2,
|
|
3741
3337
|
onChange: (e) => handleMonthChange(e)
|
|
3742
3338
|
}
|
|
3743
|
-
), isValidMonth && /* @__PURE__ */
|
|
3339
|
+
), isValidMonth && /* @__PURE__ */ import_react15.default.createElement(
|
|
3744
3340
|
"span",
|
|
3745
3341
|
{
|
|
3746
3342
|
id: "card_number-error",
|
|
3747
3343
|
style: { color: "red", fontSize: "15px" }
|
|
3748
3344
|
},
|
|
3749
3345
|
"Please write month only 1 to 12"
|
|
3750
|
-
)), /* @__PURE__ */
|
|
3346
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
|
3751
3347
|
"input",
|
|
3752
3348
|
{
|
|
3753
3349
|
"data-token": "exp_year",
|
|
@@ -3758,7 +3354,7 @@ function TockenizPay() {
|
|
|
3758
3354
|
value: state.year,
|
|
3759
3355
|
onChange: (e) => handleYearChange(e)
|
|
3760
3356
|
}
|
|
3761
|
-
), state.yearError && /* @__PURE__ */
|
|
3357
|
+
), 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(
|
|
3762
3358
|
"input",
|
|
3763
3359
|
{
|
|
3764
3360
|
"data-token": "cvv",
|
|
@@ -3769,7 +3365,7 @@ function TockenizPay() {
|
|
|
3769
3365
|
placeholder: "CVV",
|
|
3770
3366
|
onChange: (e) => handleCVVChange(e)
|
|
3771
3367
|
}
|
|
3772
|
-
), /* @__PURE__ */
|
|
3368
|
+
), /* @__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(
|
|
3773
3369
|
"input",
|
|
3774
3370
|
{
|
|
3775
3371
|
id: "ZIPCode",
|
|
@@ -3781,7 +3377,7 @@ function TockenizPay() {
|
|
|
3781
3377
|
value: state.zip,
|
|
3782
3378
|
onChange: (e) => handleZIP(e)
|
|
3783
3379
|
}
|
|
3784
|
-
), /* @__PURE__ */
|
|
3380
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3785
3381
|
"a",
|
|
3786
3382
|
{
|
|
3787
3383
|
tabIndex: 0,
|
|
@@ -3791,15 +3387,15 @@ function TockenizPay() {
|
|
|
3791
3387
|
"data-placement": "left",
|
|
3792
3388
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
|
3793
3389
|
},
|
|
3794
|
-
/* @__PURE__ */
|
|
3795
|
-
), /* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ import_react15.default.createElement("i", { className: "fa fa-question-circle" })
|
|
3391
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
|
3796
3392
|
"span",
|
|
3797
3393
|
{
|
|
3798
3394
|
id: "ZIPCode-error",
|
|
3799
3395
|
style: { color: "red", display: "none" }
|
|
3800
3396
|
},
|
|
3801
3397
|
"This field is required"
|
|
3802
|
-
))), /* @__PURE__ */
|
|
3398
|
+
))), /* @__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(
|
|
3803
3399
|
"input",
|
|
3804
3400
|
{
|
|
3805
3401
|
id: "Amount",
|
|
@@ -3811,7 +3407,7 @@ function TockenizPay() {
|
|
|
3811
3407
|
onChange: (e) => handleAmount(e),
|
|
3812
3408
|
onBlur: handleAmountBlur
|
|
3813
3409
|
}
|
|
3814
|
-
))), /* @__PURE__ */
|
|
3410
|
+
))), /* @__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(
|
|
3815
3411
|
"button",
|
|
3816
3412
|
{
|
|
3817
3413
|
type: "button",
|
|
@@ -3820,7 +3416,7 @@ function TockenizPay() {
|
|
|
3820
3416
|
className: "btn btn-block btn-success submit-button"
|
|
3821
3417
|
},
|
|
3822
3418
|
"Submit"
|
|
3823
|
-
)), /* @__PURE__ */
|
|
3419
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react15.default.createElement(
|
|
3824
3420
|
"svg",
|
|
3825
3421
|
{
|
|
3826
3422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3828,14 +3424,14 @@ function TockenizPay() {
|
|
|
3828
3424
|
height: "20",
|
|
3829
3425
|
viewBox: "0 0 26 26"
|
|
3830
3426
|
},
|
|
3831
|
-
/* @__PURE__ */
|
|
3427
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
|
3832
3428
|
"path",
|
|
3833
3429
|
{
|
|
3834
3430
|
fill: "currentColor",
|
|
3835
3431
|
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"
|
|
3836
3432
|
}
|
|
3837
3433
|
)
|
|
3838
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
|
3434
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react15.default.createElement(
|
|
3839
3435
|
"img",
|
|
3840
3436
|
{
|
|
3841
3437
|
src: "https://ui.fractalpay.com/favicon.ico",
|
|
@@ -3847,25 +3443,25 @@ function TockenizPay() {
|
|
|
3847
3443
|
}
|
|
3848
3444
|
|
|
3849
3445
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
|
3850
|
-
var
|
|
3851
|
-
var
|
|
3446
|
+
var import_react17 = __toESM(require("react"));
|
|
3447
|
+
var import_react_bootstrap8 = require("react-bootstrap");
|
|
3852
3448
|
|
|
3853
3449
|
// src/app/components/Loader/MyLoadingAnimation.tsx
|
|
3854
|
-
var
|
|
3450
|
+
var import_react16 = __toESM(require("react"));
|
|
3855
3451
|
function MyLoadingAnimation() {
|
|
3856
|
-
return /* @__PURE__ */
|
|
3452
|
+
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" })));
|
|
3857
3453
|
}
|
|
3858
3454
|
|
|
3859
3455
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
|
3860
3456
|
function GetPaymentDynamic(props) {
|
|
3861
3457
|
const { amount, fractalpayClientKey, orderID } = props;
|
|
3862
|
-
const [loading, setLoading] = (0,
|
|
3863
|
-
const [show, setShow] = (0,
|
|
3864
|
-
const [iframeLoaded, setIframeLoaded] = (0,
|
|
3865
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
|
3866
|
-
const [errorMessage, setErrorMessage] = (0,
|
|
3867
|
-
const [submitClicked, setSubmitClicked] = (0,
|
|
3868
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
|
3458
|
+
const [loading, setLoading] = (0, import_react17.useState)(false);
|
|
3459
|
+
const [show, setShow] = (0, import_react17.useState)(false);
|
|
3460
|
+
const [iframeLoaded, setIframeLoaded] = (0, import_react17.useState)(false);
|
|
3461
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react17.useState)("");
|
|
3462
|
+
const [errorMessage, setErrorMessage] = (0, import_react17.useState)("");
|
|
3463
|
+
const [submitClicked, setSubmitClicked] = (0, import_react17.useState)(false);
|
|
3464
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react17.useState)(true);
|
|
3869
3465
|
const handleClose = () => {
|
|
3870
3466
|
setIframeLoaded(false);
|
|
3871
3467
|
setTimeout(() => {
|
|
@@ -3880,7 +3476,7 @@ function GetPaymentDynamic(props) {
|
|
|
3880
3476
|
console.error(ErrorText.fractalpayclientidrequired);
|
|
3881
3477
|
}
|
|
3882
3478
|
};
|
|
3883
|
-
(0,
|
|
3479
|
+
(0, import_react17.useEffect)(() => {
|
|
3884
3480
|
if (!fractalpayClientKey) {
|
|
3885
3481
|
console.error(ErrorText.fractalpayclientidrequired);
|
|
3886
3482
|
}
|
|
@@ -3903,7 +3499,7 @@ function GetPaymentDynamic(props) {
|
|
|
3903
3499
|
const handleLoad = () => {
|
|
3904
3500
|
setLoading(false);
|
|
3905
3501
|
};
|
|
3906
|
-
(0,
|
|
3502
|
+
(0, import_react17.useEffect)(() => {
|
|
3907
3503
|
const messageListener = (event) => {
|
|
3908
3504
|
var _a, _b;
|
|
3909
3505
|
const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
|
|
@@ -3918,7 +3514,7 @@ function GetPaymentDynamic(props) {
|
|
|
3918
3514
|
window.removeEventListener("message", messageListener);
|
|
3919
3515
|
};
|
|
3920
3516
|
}, []);
|
|
3921
|
-
return /* @__PURE__ */
|
|
3517
|
+
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(
|
|
3922
3518
|
"iframe",
|
|
3923
3519
|
{
|
|
3924
3520
|
src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,
|