@pinerohit11/testwidget 0.1.50 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +272 -236
- package/dist/{index.cjs → index.mjs} +236 -272
- package/package.json +2 -3
- /package/dist/{index.d.cts → index.d.mts} +0 -0
@@ -1,12 +1,7 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
1
|
var __defProp = Object.defineProperty;
|
4
2
|
var __defProps = Object.defineProperties;
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
8
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
9
|
-
var __getProtoOf = Object.getPrototypeOf;
|
10
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
11
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
12
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
@@ -22,54 +17,18 @@ var __spreadValues = (a, b) => {
|
|
22
17
|
return a;
|
23
18
|
};
|
24
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
25
|
-
var __export = (target, all) => {
|
26
|
-
for (var name in all)
|
27
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
28
|
-
};
|
29
|
-
var __copyProps = (to, from, except, desc) => {
|
30
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
31
|
-
for (let key of __getOwnPropNames(from))
|
32
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
33
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
34
|
-
}
|
35
|
-
return to;
|
36
|
-
};
|
37
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
38
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
39
|
-
// file that has been converted to a CommonJS file using a Babel-
|
40
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
41
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
42
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
43
|
-
mod
|
44
|
-
));
|
45
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
46
|
-
|
47
|
-
// src/app/index.ts
|
48
|
-
var app_exports = {};
|
49
|
-
__export(app_exports, {
|
50
|
-
CompletedTransactions: () => CompletedTransactions,
|
51
|
-
GetPaymentDynamic: () => GetPaymentDynamic,
|
52
|
-
Payment: () => Payment,
|
53
|
-
RequestPayment: () => RequestPayment,
|
54
|
-
RequestPaymentAllInput: () => RequestPaymentAllInput,
|
55
|
-
RequestPaymentDynamic: () => RequestPaymentDynamic,
|
56
|
-
RequestPaymentonClick: () => RequestPaymentonClick,
|
57
|
-
RqstPaymntInputField: () => RqstPaymntInputField,
|
58
|
-
TockenizPay: () => TockenizPay
|
59
|
-
});
|
60
|
-
module.exports = __toCommonJS(app_exports);
|
61
20
|
|
62
21
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
63
|
-
|
64
|
-
|
22
|
+
import React4, { useState, useEffect } from "react";
|
23
|
+
import axios from "axios";
|
65
24
|
|
66
25
|
// src/app/components/Loader/Loader.tsx
|
67
|
-
|
26
|
+
import React2 from "react";
|
68
27
|
|
69
28
|
// src/app/components/Loader/LoaderStyle.tsx
|
70
|
-
|
29
|
+
import React from "react";
|
71
30
|
var LoaderStyle = (props) => {
|
72
|
-
return /* @__PURE__ */
|
31
|
+
return /* @__PURE__ */ React.createElement("style", null, `
|
73
32
|
.loader {
|
74
33
|
position: fixed;
|
75
34
|
/* Fixed position to cover the viewport */
|
@@ -188,17 +147,17 @@ var LoaderStyle_default = LoaderStyle;
|
|
188
147
|
|
189
148
|
// src/app/components/Loader/Loader.tsx
|
190
149
|
var Loader = (props) => {
|
191
|
-
return /* @__PURE__ */
|
150
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(LoaderStyle_default, null), (props == null ? void 0 : props.loading) && /* @__PURE__ */ React2.createElement("div", { className: "loader" }, /* @__PURE__ */ React2.createElement("div", { className: "lds-ellipsis" }, /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement("div", null))));
|
192
151
|
};
|
193
152
|
var Loader_default = Loader;
|
194
153
|
|
195
154
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
196
|
-
|
155
|
+
import { Button, Form, Modal } from "react-bootstrap";
|
197
156
|
|
198
157
|
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
199
|
-
|
158
|
+
import React3 from "react";
|
200
159
|
var RequestPaymentstyles = (props) => {
|
201
|
-
return /* @__PURE__ */
|
160
|
+
return /* @__PURE__ */ React3.createElement("style", null, `
|
202
161
|
.paymentBtn {
|
203
162
|
background-color: black;
|
204
163
|
border: none;
|
@@ -1052,10 +1011,10 @@ var ErrorText = {
|
|
1052
1011
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
1053
1012
|
function RequestPayment(props) {
|
1054
1013
|
const fractalpayClientKey = props.fractalpayClientKey;
|
1055
|
-
const [show, setShow] =
|
1056
|
-
const [loading, setLoading] =
|
1057
|
-
const [errors, setErrors] =
|
1058
|
-
const [requestDetails, setRequestDetails] =
|
1014
|
+
const [show, setShow] = useState(false);
|
1015
|
+
const [loading, setLoading] = useState(false);
|
1016
|
+
const [errors, setErrors] = useState({});
|
1017
|
+
const [requestDetails, setRequestDetails] = useState({
|
1059
1018
|
email: "",
|
1060
1019
|
amount: "",
|
1061
1020
|
phone_number: "",
|
@@ -1063,7 +1022,7 @@ function RequestPayment(props) {
|
|
1063
1022
|
name: "",
|
1064
1023
|
fractalpayPublicKey: fractalpayClientKey
|
1065
1024
|
});
|
1066
|
-
const [showConfirmationModal, setShowConfirmationModal] =
|
1025
|
+
const [showConfirmationModal, setShowConfirmationModal] = useState(false);
|
1067
1026
|
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
1068
1027
|
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
1069
1028
|
const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
|
@@ -1116,7 +1075,7 @@ function RequestPayment(props) {
|
|
1116
1075
|
name: requestDetails.name,
|
1117
1076
|
email: requestDetails.email
|
1118
1077
|
};
|
1119
|
-
let response = await
|
1078
|
+
let response = await axios.post(`${baseUrl}create-widget-order`, formData);
|
1120
1079
|
if ((response == null ? void 0 : response.status) === 200) {
|
1121
1080
|
setShowConfirmationModal(true);
|
1122
1081
|
setShow(false);
|
@@ -1194,7 +1153,7 @@ function RequestPayment(props) {
|
|
1194
1153
|
setErrors(newErrors);
|
1195
1154
|
return Object.keys(newErrors).length === 0;
|
1196
1155
|
};
|
1197
|
-
|
1156
|
+
useEffect(() => {
|
1198
1157
|
if (props.amount) {
|
1199
1158
|
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), { amount: props.amount }));
|
1200
1159
|
}
|
@@ -1204,8 +1163,8 @@ function RequestPayment(props) {
|
|
1204
1163
|
e.preventDefault();
|
1205
1164
|
}
|
1206
1165
|
};
|
1207
|
-
return /* @__PURE__ */
|
1208
|
-
|
1166
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React4.createElement(Loader_default, { loading }), /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ React4.createElement(
|
1167
|
+
Modal,
|
1209
1168
|
{
|
1210
1169
|
show,
|
1211
1170
|
onHide: handleClose,
|
@@ -1213,8 +1172,8 @@ function RequestPayment(props) {
|
|
1213
1172
|
backdrop: "static",
|
1214
1173
|
keyboard: false
|
1215
1174
|
},
|
1216
|
-
/* @__PURE__ */
|
1217
|
-
/* @__PURE__ */
|
1175
|
+
/* @__PURE__ */ React4.createElement(Modal.Header, { closeButton: true }, /* @__PURE__ */ React4.createElement(Modal.Title, null, "Request Payment")),
|
1176
|
+
/* @__PURE__ */ React4.createElement(Modal.Body, { id: "Checkout" }, /* @__PURE__ */ React4.createElement(Form, null, /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "FULL NAME *"), /* @__PURE__ */ React4.createElement(
|
1218
1177
|
"input",
|
1219
1178
|
{
|
1220
1179
|
className: "form-control",
|
@@ -1223,7 +1182,7 @@ function RequestPayment(props) {
|
|
1223
1182
|
"data-token": "name",
|
1224
1183
|
onChange: handleChange
|
1225
1184
|
}
|
1226
|
-
), errors.name && /* @__PURE__ */
|
1185
|
+
), errors.name && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.name)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "requestPhoneNumber", className: "form-label" }, "Phone Number"), /* @__PURE__ */ React4.createElement(
|
1227
1186
|
"input",
|
1228
1187
|
{
|
1229
1188
|
maxLength: 10,
|
@@ -1235,7 +1194,7 @@ function RequestPayment(props) {
|
|
1235
1194
|
type: "text",
|
1236
1195
|
"data-token": "phone_number"
|
1237
1196
|
}
|
1238
|
-
), errors.phone_number && /* @__PURE__ */
|
1197
|
+
), errors.phone_number && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.phone_number)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "EMAIL"), /* @__PURE__ */ React4.createElement(
|
1239
1198
|
"input",
|
1240
1199
|
{
|
1241
1200
|
className: "form-control",
|
@@ -1244,7 +1203,7 @@ function RequestPayment(props) {
|
|
1244
1203
|
onChange: handleChange,
|
1245
1204
|
"data-token": "email"
|
1246
1205
|
}
|
1247
|
-
), errors.email && /* @__PURE__ */
|
1206
|
+
), errors.email && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.email)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "AMOUNT *"), /* @__PURE__ */ React4.createElement("div", { className: "input-group" }, /* @__PURE__ */ React4.createElement("span", { className: "input-group-text" }, "$"), /* @__PURE__ */ React4.createElement(
|
1248
1207
|
"input",
|
1249
1208
|
{
|
1250
1209
|
"data-token": "amount",
|
@@ -1260,7 +1219,7 @@ function RequestPayment(props) {
|
|
1260
1219
|
e2.preventDefault();
|
1261
1220
|
}, { passive: false })
|
1262
1221
|
}
|
1263
|
-
)), errors.amount && /* @__PURE__ */
|
1222
|
+
)), errors.amount && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.amount)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "ORDER ID"), /* @__PURE__ */ React4.createElement(
|
1264
1223
|
"input",
|
1265
1224
|
{
|
1266
1225
|
className: "form-control",
|
@@ -1269,8 +1228,8 @@ function RequestPayment(props) {
|
|
1269
1228
|
onChange: handleChange,
|
1270
1229
|
"data-token": "order_id"
|
1271
1230
|
}
|
1272
|
-
), errors.order_id && /* @__PURE__ */
|
1273
|
-
|
1231
|
+
), errors.order_id && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.order_id)), /* @__PURE__ */ React4.createElement(
|
1232
|
+
Button,
|
1274
1233
|
{
|
1275
1234
|
type: "button",
|
1276
1235
|
className: "PayButton",
|
@@ -1278,7 +1237,7 @@ function RequestPayment(props) {
|
|
1278
1237
|
disabled: loading
|
1279
1238
|
},
|
1280
1239
|
loading ? "Loading..." : "Send Request"
|
1281
|
-
)), /* @__PURE__ */
|
1240
|
+
)), /* @__PURE__ */ React4.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React4.createElement(
|
1282
1241
|
"svg",
|
1283
1242
|
{
|
1284
1243
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1286,14 +1245,14 @@ function RequestPayment(props) {
|
|
1286
1245
|
height: "20",
|
1287
1246
|
viewBox: "0 0 26 26"
|
1288
1247
|
},
|
1289
|
-
/* @__PURE__ */
|
1248
|
+
/* @__PURE__ */ React4.createElement(
|
1290
1249
|
"path",
|
1291
1250
|
{
|
1292
1251
|
fill: "currentColor",
|
1293
1252
|
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"
|
1294
1253
|
}
|
1295
1254
|
)
|
1296
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
1255
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React4.createElement(
|
1297
1256
|
"img",
|
1298
1257
|
{
|
1299
1258
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -1301,15 +1260,15 @@ function RequestPayment(props) {
|
|
1301
1260
|
className: "powered-logo"
|
1302
1261
|
}
|
1303
1262
|
)))
|
1304
|
-
), /* @__PURE__ */
|
1305
|
-
|
1263
|
+
), /* @__PURE__ */ React4.createElement(
|
1264
|
+
Modal,
|
1306
1265
|
{
|
1307
1266
|
className: "payment-suc",
|
1308
1267
|
show: showConfirmationModal,
|
1309
1268
|
onHide: handleCloseConfirmationModal
|
1310
1269
|
},
|
1311
|
-
/* @__PURE__ */
|
1312
|
-
/* @__PURE__ */
|
1270
|
+
/* @__PURE__ */ React4.createElement(Modal.Header, { closeButton: true }),
|
1271
|
+
/* @__PURE__ */ React4.createElement(Modal.Body, null, /* @__PURE__ */ React4.createElement(
|
1313
1272
|
"svg",
|
1314
1273
|
{
|
1315
1274
|
width: "60",
|
@@ -1318,7 +1277,7 @@ function RequestPayment(props) {
|
|
1318
1277
|
fill: "none",
|
1319
1278
|
xmlns: "http://www.w3.org/2000/svg"
|
1320
1279
|
},
|
1321
|
-
/* @__PURE__ */
|
1280
|
+
/* @__PURE__ */ React4.createElement(
|
1322
1281
|
"rect",
|
1323
1282
|
{
|
1324
1283
|
x: "0.5",
|
@@ -1329,14 +1288,14 @@ function RequestPayment(props) {
|
|
1329
1288
|
stroke: "#31B379"
|
1330
1289
|
}
|
1331
1290
|
),
|
1332
|
-
/* @__PURE__ */
|
1291
|
+
/* @__PURE__ */ React4.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React4.createElement(
|
1333
1292
|
"path",
|
1334
1293
|
{
|
1335
1294
|
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",
|
1336
1295
|
fill: "#31B379"
|
1337
1296
|
}
|
1338
1297
|
)),
|
1339
|
-
/* @__PURE__ */
|
1298
|
+
/* @__PURE__ */ React4.createElement("defs", null, /* @__PURE__ */ React4.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React4.createElement(
|
1340
1299
|
"rect",
|
1341
1300
|
{
|
1342
1301
|
width: "22",
|
@@ -1345,28 +1304,28 @@ function RequestPayment(props) {
|
|
1345
1304
|
transform: "translate(19.5 19.0039)"
|
1346
1305
|
}
|
1347
1306
|
)))
|
1348
|
-
), /* @__PURE__ */
|
1307
|
+
), /* @__PURE__ */ React4.createElement("h2", null, "Payment link has been ", /* @__PURE__ */ React4.createElement("br", null), " sent successfully"))
|
1349
1308
|
)));
|
1350
1309
|
}
|
1351
1310
|
|
1352
1311
|
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1312
|
+
import React5, { useState as useState2 } from "react";
|
1313
|
+
import { Modal as Modal2 } from "react-bootstrap";
|
1314
|
+
import { toast, ToastContainer } from "react-toastify";
|
1315
|
+
import "react-toastify/dist/ReactToastify.css";
|
1357
1316
|
function RequestPaymentAllInput({ fractalpayClientKey }) {
|
1358
|
-
const [isLoading, setIsLoading] = (
|
1359
|
-
const [show, setShow] = (
|
1360
|
-
const [phoneNumber, setPhoneNumber] = (
|
1361
|
-
const [amount, setAmount] = (
|
1362
|
-
const [orderId, setOrderId] = (
|
1363
|
-
const [isValidNumber, setIsValidNumber] = (
|
1364
|
-
const [isValidAmount, setIsValidAmount] = (
|
1365
|
-
const [isValidOrderId, setIsValidOrderId] = (
|
1366
|
-
const [errorMessagephone, setErrorMessagephone] = (
|
1367
|
-
const [errorMessageamount, setErrorMessageamount] = (
|
1368
|
-
const [errorMessageorderid, setErrorMessageorderid] = (
|
1369
|
-
const [submitClicked, setSubmitClicked] = (
|
1317
|
+
const [isLoading, setIsLoading] = useState2(false);
|
1318
|
+
const [show, setShow] = useState2(false);
|
1319
|
+
const [phoneNumber, setPhoneNumber] = useState2("");
|
1320
|
+
const [amount, setAmount] = useState2("");
|
1321
|
+
const [orderId, setOrderId] = useState2("");
|
1322
|
+
const [isValidNumber, setIsValidNumber] = useState2(true);
|
1323
|
+
const [isValidAmount, setIsValidAmount] = useState2(true);
|
1324
|
+
const [isValidOrderId, setIsValidOrderId] = useState2(true);
|
1325
|
+
const [errorMessagephone, setErrorMessagephone] = useState2("");
|
1326
|
+
const [errorMessageamount, setErrorMessageamount] = useState2("");
|
1327
|
+
const [errorMessageorderid, setErrorMessageorderid] = useState2("");
|
1328
|
+
const [submitClicked, setSubmitClicked] = useState2(false);
|
1370
1329
|
const handleClose = () => setShow(false);
|
1371
1330
|
const handleShow = () => setShow(true);
|
1372
1331
|
const sendRequestPayment = () => {
|
@@ -1428,7 +1387,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1428
1387
|
}).catch((error) => {
|
1429
1388
|
setIsLoading(false);
|
1430
1389
|
console.error("Error:", error);
|
1431
|
-
|
1390
|
+
toast.error(ErrorText.anerroroccured);
|
1432
1391
|
});
|
1433
1392
|
};
|
1434
1393
|
const handlePhoneNumberChange = (e) => {
|
@@ -1468,7 +1427,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1468
1427
|
setIsValidOrderId(false);
|
1469
1428
|
}
|
1470
1429
|
};
|
1471
|
-
return /* @__PURE__ */
|
1430
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React5.createElement("div", { className: " border-container" }, /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Phone Number:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
|
1472
1431
|
"input",
|
1473
1432
|
{
|
1474
1433
|
type: "text",
|
@@ -1478,7 +1437,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1478
1437
|
maxLength: 10,
|
1479
1438
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1480
1439
|
}
|
1481
|
-
), errorMessagephone && /* @__PURE__ */
|
1440
|
+
), errorMessagephone && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessagephone))), /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Amount:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
|
1482
1441
|
"input",
|
1483
1442
|
{
|
1484
1443
|
type: "text",
|
@@ -1487,7 +1446,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1487
1446
|
placeholder: "Enter amount",
|
1488
1447
|
className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
|
1489
1448
|
}
|
1490
|
-
), errorMessageamount && /* @__PURE__ */
|
1449
|
+
), errorMessageamount && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessageamount))), /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Order ID:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
|
1491
1450
|
"input",
|
1492
1451
|
{
|
1493
1452
|
type: "text",
|
@@ -1496,7 +1455,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1496
1455
|
placeholder: "Enter order ID",
|
1497
1456
|
className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
|
1498
1457
|
}
|
1499
|
-
), errorMessageorderid && /* @__PURE__ */
|
1458
|
+
), errorMessageorderid && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ React5.createElement(
|
1500
1459
|
"button",
|
1501
1460
|
{
|
1502
1461
|
onClick: sendRequestPayment,
|
@@ -1504,7 +1463,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1504
1463
|
className: "paymentBtn"
|
1505
1464
|
},
|
1506
1465
|
isLoading ? "Loading..." : "Request Payment"
|
1507
|
-
)), /* @__PURE__ */
|
1466
|
+
)), /* @__PURE__ */ React5.createElement(Modal2, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React5.createElement(Modal2.Header, { closeButton: true }), /* @__PURE__ */ React5.createElement(Modal2.Body, null, /* @__PURE__ */ React5.createElement(
|
1508
1467
|
"svg",
|
1509
1468
|
{
|
1510
1469
|
width: "60",
|
@@ -1513,7 +1472,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1513
1472
|
fill: "none",
|
1514
1473
|
xmlns: "http://www.w3.org/2000/svg"
|
1515
1474
|
},
|
1516
|
-
/* @__PURE__ */
|
1475
|
+
/* @__PURE__ */ React5.createElement(
|
1517
1476
|
"rect",
|
1518
1477
|
{
|
1519
1478
|
x: "0.5",
|
@@ -1524,14 +1483,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1524
1483
|
stroke: "#31B379"
|
1525
1484
|
}
|
1526
1485
|
),
|
1527
|
-
/* @__PURE__ */
|
1486
|
+
/* @__PURE__ */ React5.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React5.createElement(
|
1528
1487
|
"path",
|
1529
1488
|
{
|
1530
1489
|
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",
|
1531
1490
|
fill: "#31B379"
|
1532
1491
|
}
|
1533
1492
|
)),
|
1534
|
-
/* @__PURE__ */
|
1493
|
+
/* @__PURE__ */ React5.createElement("defs", null, /* @__PURE__ */ React5.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React5.createElement(
|
1535
1494
|
"rect",
|
1536
1495
|
{
|
1537
1496
|
width: "22",
|
@@ -1540,12 +1499,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1540
1499
|
transform: "translate(19.5 19.0039)"
|
1541
1500
|
}
|
1542
1501
|
)))
|
1543
|
-
), /* @__PURE__ */
|
1502
|
+
), /* @__PURE__ */ React5.createElement("h1", null, "Success!"), /* @__PURE__ */ React5.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React5.createElement(Modal2.Footer, null, /* @__PURE__ */ React5.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React5.createElement(ToastContainer, null));
|
1544
1503
|
}
|
1545
1504
|
|
1546
1505
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1547
|
-
|
1548
|
-
|
1506
|
+
import React6, { useState as useState3 } from "react";
|
1507
|
+
import { Modal as Modal3 } from "react-bootstrap";
|
1549
1508
|
|
1550
1509
|
// src/app/components/Api/createWidgetOrder.ts
|
1551
1510
|
var createWidgetOrder = (formData) => {
|
@@ -1568,8 +1527,8 @@ var createWidgetOrder = (formData) => {
|
|
1568
1527
|
|
1569
1528
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1570
1529
|
function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orderID }) {
|
1571
|
-
const [isLoading, setIsLoading] = (
|
1572
|
-
const [show, setShow] = (
|
1530
|
+
const [isLoading, setIsLoading] = useState3(false);
|
1531
|
+
const [show, setShow] = useState3(false);
|
1573
1532
|
const handleClose = () => setShow(false);
|
1574
1533
|
const handleShow = () => setShow(true);
|
1575
1534
|
const sendRequestPayment = () => {
|
@@ -1592,7 +1551,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1592
1551
|
console.error("Error:", error);
|
1593
1552
|
});
|
1594
1553
|
};
|
1595
|
-
return /* @__PURE__ */
|
1554
|
+
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
1596
1555
|
"button",
|
1597
1556
|
{
|
1598
1557
|
onClick: sendRequestPayment,
|
@@ -1600,7 +1559,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1600
1559
|
className: "paymentBtn"
|
1601
1560
|
},
|
1602
1561
|
isLoading ? "Loading..." : "Request Payment"
|
1603
|
-
), /* @__PURE__ */
|
1562
|
+
), /* @__PURE__ */ React6.createElement(Modal3, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React6.createElement(Modal3.Header, { closeButton: true }), /* @__PURE__ */ React6.createElement(Modal3.Body, null, /* @__PURE__ */ React6.createElement(
|
1604
1563
|
"svg",
|
1605
1564
|
{
|
1606
1565
|
width: "60",
|
@@ -1609,7 +1568,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1609
1568
|
fill: "none",
|
1610
1569
|
xmlns: "http://www.w3.org/2000/svg"
|
1611
1570
|
},
|
1612
|
-
/* @__PURE__ */
|
1571
|
+
/* @__PURE__ */ React6.createElement(
|
1613
1572
|
"rect",
|
1614
1573
|
{
|
1615
1574
|
x: "0.5",
|
@@ -1620,14 +1579,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1620
1579
|
stroke: "#31B379"
|
1621
1580
|
}
|
1622
1581
|
),
|
1623
|
-
/* @__PURE__ */
|
1582
|
+
/* @__PURE__ */ React6.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ React6.createElement(
|
1624
1583
|
"path",
|
1625
1584
|
{
|
1626
1585
|
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",
|
1627
1586
|
fill: "#31B379"
|
1628
1587
|
}
|
1629
1588
|
)),
|
1630
|
-
/* @__PURE__ */
|
1589
|
+
/* @__PURE__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React6.createElement(
|
1631
1590
|
"rect",
|
1632
1591
|
{
|
1633
1592
|
width: "22",
|
@@ -1636,15 +1595,15 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1636
1595
|
transform: "translate(19.5 19.0039)"
|
1637
1596
|
}
|
1638
1597
|
)))
|
1639
|
-
), /* @__PURE__ */
|
1598
|
+
), /* @__PURE__ */ React6.createElement("h1", null, "Success!"), /* @__PURE__ */ React6.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React6.createElement(Modal3.Footer, null, /* @__PURE__ */ React6.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1640
1599
|
}
|
1641
1600
|
|
1642
1601
|
// src/app/components/RequestPayment/RequestPaymentonClick.tsx
|
1643
|
-
|
1644
|
-
|
1602
|
+
import React7, { useState as useState4 } from "react";
|
1603
|
+
import { Modal as Modal4 } from "react-bootstrap";
|
1645
1604
|
function RequestPaymentonClick(props) {
|
1646
|
-
const [isLoading, setIsLoading] = (
|
1647
|
-
const [show, setShow] = (
|
1605
|
+
const [isLoading, setIsLoading] = useState4(false);
|
1606
|
+
const [show, setShow] = useState4(false);
|
1648
1607
|
const handleClose = () => setShow(false);
|
1649
1608
|
const handleShow = () => setShow(true);
|
1650
1609
|
const { fractalpayClientKey, amount, phone_number, orderID, onSuccess, onError } = props;
|
@@ -1678,7 +1637,7 @@ function RequestPaymentonClick(props) {
|
|
1678
1637
|
console.error("Error:", error);
|
1679
1638
|
});
|
1680
1639
|
};
|
1681
|
-
return /* @__PURE__ */
|
1640
|
+
return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React7.createElement(
|
1682
1641
|
"button",
|
1683
1642
|
{
|
1684
1643
|
onClick: sendRequestPayment,
|
@@ -1686,7 +1645,7 @@ function RequestPaymentonClick(props) {
|
|
1686
1645
|
className: "paymentBtn"
|
1687
1646
|
},
|
1688
1647
|
isLoading ? "Loading..." : "Request Payment"
|
1689
|
-
), /* @__PURE__ */
|
1648
|
+
), /* @__PURE__ */ React7.createElement(Modal4, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React7.createElement(Modal4.Header, { closeButton: true }), /* @__PURE__ */ React7.createElement(Modal4.Body, null, onSuccess && /* @__PURE__ */ React7.createElement(
|
1690
1649
|
"svg",
|
1691
1650
|
{
|
1692
1651
|
width: "60",
|
@@ -1695,7 +1654,7 @@ function RequestPaymentonClick(props) {
|
|
1695
1654
|
fill: "none",
|
1696
1655
|
xmlns: "http://www.w3.org/2000/svg"
|
1697
1656
|
},
|
1698
|
-
/* @__PURE__ */
|
1657
|
+
/* @__PURE__ */ React7.createElement(
|
1699
1658
|
"rect",
|
1700
1659
|
{
|
1701
1660
|
x: "0.5",
|
@@ -1706,14 +1665,14 @@ function RequestPaymentonClick(props) {
|
|
1706
1665
|
stroke: "#31B379"
|
1707
1666
|
}
|
1708
1667
|
),
|
1709
|
-
/* @__PURE__ */
|
1668
|
+
/* @__PURE__ */ React7.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React7.createElement(
|
1710
1669
|
"path",
|
1711
1670
|
{
|
1712
1671
|
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",
|
1713
1672
|
fill: "#31B379"
|
1714
1673
|
}
|
1715
1674
|
)),
|
1716
|
-
/* @__PURE__ */
|
1675
|
+
/* @__PURE__ */ React7.createElement("defs", null, /* @__PURE__ */ React7.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React7.createElement(
|
1717
1676
|
"rect",
|
1718
1677
|
{
|
1719
1678
|
width: "22",
|
@@ -1722,21 +1681,21 @@ function RequestPaymentonClick(props) {
|
|
1722
1681
|
transform: "translate(19.5 19.0039)"
|
1723
1682
|
}
|
1724
1683
|
)))
|
1725
|
-
), onSuccess ? /* @__PURE__ */
|
1684
|
+
), onSuccess ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("h1", null, "Success!"), /* @__PURE__ */ React7.createElement("h4", null, onSuccess)) : /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("h1", null, "Error!"), /* @__PURE__ */ React7.createElement("h4", null, onError))), /* @__PURE__ */ React7.createElement(Modal4.Footer, null, /* @__PURE__ */ React7.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1726
1685
|
}
|
1727
1686
|
|
1728
1687
|
// src/app/components/RequestPayment/RqstPaymntInputField.tsx
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1688
|
+
import React8, { useState as useState5 } from "react";
|
1689
|
+
import { Modal as Modal5 } from "react-bootstrap";
|
1690
|
+
import { toast as toast2, ToastContainer as ToastContainer2 } from "react-toastify";
|
1691
|
+
import "react-toastify/dist/ReactToastify.css";
|
1733
1692
|
function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
1734
|
-
const [isLoading, setIsLoading] = (
|
1735
|
-
const [show, setShow] = (
|
1736
|
-
const [phoneNumber, setPhoneNumber] = (
|
1737
|
-
const [isValidNumber, setIsValidNumber] = (
|
1738
|
-
const [errorMessage, setErrorMessage] = (
|
1739
|
-
const [submitClicked, setSubmitClicked] = (
|
1693
|
+
const [isLoading, setIsLoading] = useState5(false);
|
1694
|
+
const [show, setShow] = useState5(false);
|
1695
|
+
const [phoneNumber, setPhoneNumber] = useState5("");
|
1696
|
+
const [isValidNumber, setIsValidNumber] = useState5(true);
|
1697
|
+
const [errorMessage, setErrorMessage] = useState5("");
|
1698
|
+
const [submitClicked, setSubmitClicked] = useState5(false);
|
1740
1699
|
const handleClose = () => setShow(false);
|
1741
1700
|
const handleShow = () => setShow(true);
|
1742
1701
|
const sendRequestPayment = () => {
|
@@ -1781,7 +1740,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1781
1740
|
}).catch((error) => {
|
1782
1741
|
setIsLoading(false);
|
1783
1742
|
console.error("Error:", error);
|
1784
|
-
|
1743
|
+
toast2.error(ErrorText.anerroroccured);
|
1785
1744
|
});
|
1786
1745
|
};
|
1787
1746
|
const handlePhoneNumberChange = (e) => {
|
@@ -1799,7 +1758,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1799
1758
|
setErrorMessage(ErrorText.phonenumbervalid);
|
1800
1759
|
}
|
1801
1760
|
};
|
1802
|
-
return /* @__PURE__ */
|
1761
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement("div", { className: "payment-container" }, /* @__PURE__ */ React8.createElement("div", { className: "input-wrapper" }, /* @__PURE__ */ React8.createElement("div", { className: "input-container" }, /* @__PURE__ */ React8.createElement(
|
1803
1762
|
"input",
|
1804
1763
|
{
|
1805
1764
|
type: "text",
|
@@ -1809,7 +1768,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1809
1768
|
maxLength: 10,
|
1810
1769
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1811
1770
|
}
|
1812
|
-
), errorMessage && /* @__PURE__ */
|
1771
|
+
), errorMessage && /* @__PURE__ */ React8.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ React8.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ React8.createElement(
|
1813
1772
|
"button",
|
1814
1773
|
{
|
1815
1774
|
onClick: sendRequestPayment,
|
@@ -1817,7 +1776,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1817
1776
|
className: "paymentBtn"
|
1818
1777
|
},
|
1819
1778
|
isLoading ? "Loading..." : "Request Payment"
|
1820
|
-
))), /* @__PURE__ */
|
1779
|
+
))), /* @__PURE__ */ React8.createElement(Modal5, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React8.createElement(Modal5.Header, { closeButton: true }), /* @__PURE__ */ React8.createElement(Modal5.Body, null, /* @__PURE__ */ React8.createElement(
|
1821
1780
|
"svg",
|
1822
1781
|
{
|
1823
1782
|
width: "60",
|
@@ -1826,7 +1785,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1826
1785
|
fill: "none",
|
1827
1786
|
xmlns: "http://www.w3.org/2000/svg"
|
1828
1787
|
},
|
1829
|
-
/* @__PURE__ */
|
1788
|
+
/* @__PURE__ */ React8.createElement(
|
1830
1789
|
"rect",
|
1831
1790
|
{
|
1832
1791
|
x: "0.5",
|
@@ -1837,14 +1796,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1837
1796
|
stroke: "#31B379"
|
1838
1797
|
}
|
1839
1798
|
),
|
1840
|
-
/* @__PURE__ */
|
1799
|
+
/* @__PURE__ */ React8.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React8.createElement(
|
1841
1800
|
"path",
|
1842
1801
|
{
|
1843
1802
|
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",
|
1844
1803
|
fill: "#31B379"
|
1845
1804
|
}
|
1846
1805
|
)),
|
1847
|
-
/* @__PURE__ */
|
1806
|
+
/* @__PURE__ */ React8.createElement("defs", null, /* @__PURE__ */ React8.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React8.createElement(
|
1848
1807
|
"rect",
|
1849
1808
|
{
|
1850
1809
|
width: "22",
|
@@ -1853,20 +1812,20 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1853
1812
|
transform: "translate(19.5 19.0039)"
|
1854
1813
|
}
|
1855
1814
|
)))
|
1856
|
-
), /* @__PURE__ */
|
1815
|
+
), /* @__PURE__ */ React8.createElement("h1", null, "Success!"), /* @__PURE__ */ React8.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React8.createElement(Modal5.Footer, null, /* @__PURE__ */ React8.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React8.createElement(ToastContainer2, null));
|
1857
1816
|
}
|
1858
1817
|
|
1859
1818
|
// src/app/components/Payment/Payment.tsx
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1819
|
+
import React10, { useState as useState6 } from "react";
|
1820
|
+
import axios2 from "axios";
|
1821
|
+
import forge from "node-forge";
|
1822
|
+
import { toast as toast3 } from "react-toastify";
|
1823
|
+
import { Modal as Modal6 } from "react-bootstrap";
|
1865
1824
|
|
1866
1825
|
// src/app/components/Payment/Paymentstyles.tsx
|
1867
|
-
|
1826
|
+
import React9 from "react";
|
1868
1827
|
function Paymentstyles() {
|
1869
|
-
return /* @__PURE__ */
|
1828
|
+
return /* @__PURE__ */ React9.createElement("style", null, `
|
1870
1829
|
.paymentBtn {
|
1871
1830
|
background-color: black;
|
1872
1831
|
border: none;
|
@@ -2792,7 +2751,7 @@ input {
|
|
2792
2751
|
// src/app/components/Payment/Payment.tsx
|
2793
2752
|
function Payment() {
|
2794
2753
|
var _a;
|
2795
|
-
const [state, setState] = (
|
2754
|
+
const [state, setState] = useState6({
|
2796
2755
|
show: false,
|
2797
2756
|
publicKey: "",
|
2798
2757
|
sessionKey: "",
|
@@ -2803,12 +2762,12 @@ function Payment() {
|
|
2803
2762
|
zip: "",
|
2804
2763
|
amount: ""
|
2805
2764
|
});
|
2806
|
-
const [isValid, setIsValid] = (
|
2807
|
-
const [isValidMonth, setIsValidMonth] = (
|
2808
|
-
const [data, setData] = (
|
2765
|
+
const [isValid, setIsValid] = useState6(false);
|
2766
|
+
const [isValidMonth, setIsValidMonth] = useState6(false);
|
2767
|
+
const [data, setData] = useState6(null);
|
2809
2768
|
const handlePaymentClick = async () => {
|
2810
2769
|
try {
|
2811
|
-
const response = await
|
2770
|
+
const response = await axios2.post(`${baseUrl}generate-session`, {});
|
2812
2771
|
const data2 = response.data;
|
2813
2772
|
if (data2 && (data2 == null ? void 0 : data2.result) === true) {
|
2814
2773
|
setState((prev) => {
|
@@ -2826,12 +2785,12 @@ function Payment() {
|
|
2826
2785
|
};
|
2827
2786
|
const handleSubmitPay = async () => {
|
2828
2787
|
const track2_data = `${state.cardNumber.replace(/\s+/g, "")}=${state.year}${state.month.length > 1 ? state.month : "0" + state.month} ${state.cvv}`;
|
2829
|
-
const publicKey =
|
2788
|
+
const publicKey = forge.pki.publicKeyFromPem(state.publicKey);
|
2830
2789
|
const encrypted = publicKey.encrypt(track2_data, "RSA-OAEP", {
|
2831
|
-
md:
|
2832
|
-
mgf1: { md:
|
2790
|
+
md: forge.md.sha1.create(),
|
2791
|
+
mgf1: { md: forge.md.sha1.create() }
|
2833
2792
|
});
|
2834
|
-
const encryptedBase64 =
|
2793
|
+
const encryptedBase64 = forge.util.encode64(encrypted);
|
2835
2794
|
console.log(encryptedBase64);
|
2836
2795
|
const requestBody = {
|
2837
2796
|
enc_track2_data: encryptedBase64,
|
@@ -2840,14 +2799,14 @@ function Payment() {
|
|
2840
2799
|
};
|
2841
2800
|
const apiUrl = "https://m1ao5pku8b.execute-api.us-east-2.amazonaws.com/prod/tokenizer/tokenize";
|
2842
2801
|
try {
|
2843
|
-
const response = await
|
2802
|
+
const response = await axios2.post(apiUrl, requestBody, {
|
2844
2803
|
headers: {
|
2845
2804
|
"x-app-session-key": state == null ? void 0 : state.sessionKey,
|
2846
2805
|
"Content-Type": "application/json"
|
2847
2806
|
}
|
2848
2807
|
});
|
2849
2808
|
if ((response == null ? void 0 : response.status) === 200) {
|
2850
|
-
|
2809
|
+
toast3.success("Payment Successful");
|
2851
2810
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
2852
2811
|
show: false,
|
2853
2812
|
publicKey: "",
|
@@ -2957,7 +2916,7 @@ function Payment() {
|
|
2957
2916
|
}
|
2958
2917
|
return "";
|
2959
2918
|
}
|
2960
|
-
return /* @__PURE__ */
|
2919
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Paymentstyles, null), /* @__PURE__ */ React10.createElement("div", { className: "" }, /* @__PURE__ */ React10.createElement(
|
2961
2920
|
"button",
|
2962
2921
|
{
|
2963
2922
|
className: "export-btn",
|
@@ -2965,8 +2924,8 @@ function Payment() {
|
|
2965
2924
|
onClick: () => handlePaymentClick()
|
2966
2925
|
},
|
2967
2926
|
"Payment"
|
2968
|
-
), /* @__PURE__ */
|
2969
|
-
|
2927
|
+
), /* @__PURE__ */ React10.createElement(
|
2928
|
+
Modal6,
|
2970
2929
|
{
|
2971
2930
|
show: state.show,
|
2972
2931
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -2974,8 +2933,8 @@ function Payment() {
|
|
2974
2933
|
})),
|
2975
2934
|
centered: true
|
2976
2935
|
},
|
2977
|
-
/* @__PURE__ */
|
2978
|
-
/* @__PURE__ */
|
2936
|
+
/* @__PURE__ */ React10.createElement(Modal6.Header, { closeButton: true }),
|
2937
|
+
/* @__PURE__ */ React10.createElement(Modal6.Body, null, /* @__PURE__ */ React10.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React10.createElement("div", { className: "row" }, /* @__PURE__ */ React10.createElement("div", { className: "" }, /* @__PURE__ */ React10.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React10.createElement("div", { className: "header" }, /* @__PURE__ */ React10.createElement("h1", null, "Pay")), /* @__PURE__ */ React10.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React10.createElement("div", { className: "form-group", style: { display: "none" } }, /* @__PURE__ */ React10.createElement("label", null, "Payment amount"), /* @__PURE__ */ React10.createElement("div", { className: "input-group" }, /* @__PURE__ */ React10.createElement("span", { className: "input-group-addon" }, "$"), /* @__PURE__ */ React10.createElement(
|
2979
2938
|
"input",
|
2980
2939
|
{
|
2981
2940
|
type: "text",
|
@@ -2984,13 +2943,13 @@ function Payment() {
|
|
2984
2943
|
className: "form-control",
|
2985
2944
|
id: ""
|
2986
2945
|
}
|
2987
|
-
)), /* @__PURE__ */
|
2946
|
+
)), /* @__PURE__ */ React10.createElement(
|
2988
2947
|
"span",
|
2989
2948
|
{
|
2990
2949
|
id: "amount-error",
|
2991
2950
|
style: { color: "red", display: "none" }
|
2992
2951
|
}
|
2993
|
-
)), /* @__PURE__ */
|
2952
|
+
)), /* @__PURE__ */ React10.createElement("div", { className: "form-group" }, /* @__PURE__ */ React10.createElement("label", null, "Name on card"), /* @__PURE__ */ React10.createElement(
|
2994
2953
|
"input",
|
2995
2954
|
{
|
2996
2955
|
id: "NameOnCard",
|
@@ -2999,13 +2958,13 @@ function Payment() {
|
|
2999
2958
|
maxLength: 100,
|
3000
2959
|
placeholder: "Name"
|
3001
2960
|
}
|
3002
|
-
), /* @__PURE__ */
|
2961
|
+
), /* @__PURE__ */ React10.createElement(
|
3003
2962
|
"span",
|
3004
2963
|
{
|
3005
2964
|
id: "NameOnCard-error",
|
3006
2965
|
style: { color: "red", display: "none" }
|
3007
2966
|
}
|
3008
|
-
)), /* @__PURE__ */
|
2967
|
+
)), /* @__PURE__ */ React10.createElement("div", { className: "form-group" }, /* @__PURE__ */ React10.createElement(
|
3009
2968
|
"input",
|
3010
2969
|
{
|
3011
2970
|
"data-token": "card_number",
|
@@ -3016,7 +2975,7 @@ function Payment() {
|
|
3016
2975
|
placeholder: "0000 0000 0000 0000",
|
3017
2976
|
onChange: handleCardNumberChange
|
3018
2977
|
}
|
3019
|
-
), state.error && /* @__PURE__ */
|
2978
|
+
), state.error && /* @__PURE__ */ React10.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React10.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React10.createElement(
|
3020
2979
|
"input",
|
3021
2980
|
{
|
3022
2981
|
"data-token": "exp_month",
|
@@ -3027,14 +2986,14 @@ function Payment() {
|
|
3027
2986
|
maxLength: 2,
|
3028
2987
|
onChange: (e) => handleMonthChange(e)
|
3029
2988
|
}
|
3030
|
-
), isValidMonth && /* @__PURE__ */
|
2989
|
+
), isValidMonth && /* @__PURE__ */ React10.createElement(
|
3031
2990
|
"span",
|
3032
2991
|
{
|
3033
2992
|
id: "card_number-error",
|
3034
2993
|
style: { color: "red", fontSize: "15px" }
|
3035
2994
|
},
|
3036
2995
|
(_a = ErrorText) == null ? void 0 : _a.montherror
|
3037
|
-
)), /* @__PURE__ */
|
2996
|
+
)), /* @__PURE__ */ React10.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React10.createElement(
|
3038
2997
|
"input",
|
3039
2998
|
{
|
3040
2999
|
"data-token": "exp_year",
|
@@ -3045,7 +3004,7 @@ function Payment() {
|
|
3045
3004
|
value: state.year,
|
3046
3005
|
onChange: (e) => handleYearChange(e)
|
3047
3006
|
}
|
3048
|
-
), state.yearError && /* @__PURE__ */
|
3007
|
+
), state.yearError && /* @__PURE__ */ React10.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React10.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React10.createElement("div", { className: "input-container" }, /* @__PURE__ */ React10.createElement(
|
3049
3008
|
"input",
|
3050
3009
|
{
|
3051
3010
|
"data-token": "cvv",
|
@@ -3056,7 +3015,7 @@ function Payment() {
|
|
3056
3015
|
placeholder: "CVV",
|
3057
3016
|
onChange: (e) => handleCVVChange(e)
|
3058
3017
|
}
|
3059
|
-
), /* @__PURE__ */
|
3018
|
+
), /* @__PURE__ */ React10.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React10.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React10.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React10.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React10.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React10.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React10.createElement("label", null, "Postal code"), /* @__PURE__ */ React10.createElement("div", { className: "input-container" }, /* @__PURE__ */ React10.createElement(
|
3060
3019
|
"input",
|
3061
3020
|
{
|
3062
3021
|
id: "ZIPCode",
|
@@ -3068,7 +3027,7 @@ function Payment() {
|
|
3068
3027
|
value: state.zip,
|
3069
3028
|
onChange: (e) => handleZIP(e)
|
3070
3029
|
}
|
3071
|
-
), /* @__PURE__ */
|
3030
|
+
), /* @__PURE__ */ React10.createElement(
|
3072
3031
|
"a",
|
3073
3032
|
{
|
3074
3033
|
tabIndex: 0,
|
@@ -3078,15 +3037,15 @@ function Payment() {
|
|
3078
3037
|
"data-placement": "left",
|
3079
3038
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3080
3039
|
},
|
3081
|
-
/* @__PURE__ */
|
3082
|
-
), /* @__PURE__ */
|
3040
|
+
/* @__PURE__ */ React10.createElement("i", { className: "fa fa-question-circle" })
|
3041
|
+
), /* @__PURE__ */ React10.createElement(
|
3083
3042
|
"span",
|
3084
3043
|
{
|
3085
3044
|
id: "ZIPCode-error",
|
3086
3045
|
style: { color: "red", display: "none" }
|
3087
3046
|
},
|
3088
3047
|
ErrorText.fieldrequired
|
3089
|
-
))), /* @__PURE__ */
|
3048
|
+
))), /* @__PURE__ */ React10.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React10.createElement("div", null, /* @__PURE__ */ React10.createElement("label", null, "Payment amount"), /* @__PURE__ */ React10.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React10.createElement(
|
3090
3049
|
"input",
|
3091
3050
|
{
|
3092
3051
|
id: "Amount",
|
@@ -3098,7 +3057,7 @@ function Payment() {
|
|
3098
3057
|
onChange: (e) => handleAmount(e),
|
3099
3058
|
onBlur: handleAmountBlur
|
3100
3059
|
}
|
3101
|
-
))), /* @__PURE__ */
|
3060
|
+
))), /* @__PURE__ */ React10.createElement("div", { className: "card-row" }, /* @__PURE__ */ React10.createElement("span", { className: "visa" }), /* @__PURE__ */ React10.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React10.createElement("span", { className: "amex" }), /* @__PURE__ */ React10.createElement("span", { className: "discover" }))), /* @__PURE__ */ React10.createElement(
|
3102
3061
|
"button",
|
3103
3062
|
{
|
3104
3063
|
type: "button",
|
@@ -3107,7 +3066,7 @@ function Payment() {
|
|
3107
3066
|
className: "btn btn-block btn-success submit-button"
|
3108
3067
|
},
|
3109
3068
|
"Pay"
|
3110
|
-
)), /* @__PURE__ */
|
3069
|
+
)), /* @__PURE__ */ React10.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React10.createElement(
|
3111
3070
|
"svg",
|
3112
3071
|
{
|
3113
3072
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3115,14 +3074,14 @@ function Payment() {
|
|
3115
3074
|
height: "20",
|
3116
3075
|
viewBox: "0 0 26 26"
|
3117
3076
|
},
|
3118
|
-
/* @__PURE__ */
|
3077
|
+
/* @__PURE__ */ React10.createElement(
|
3119
3078
|
"path",
|
3120
3079
|
{
|
3121
3080
|
fill: "currentColor",
|
3122
3081
|
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"
|
3123
3082
|
}
|
3124
3083
|
)
|
3125
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
3084
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React10.createElement(
|
3126
3085
|
"img",
|
3127
3086
|
{
|
3128
3087
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3134,22 +3093,28 @@ function Payment() {
|
|
3134
3093
|
}
|
3135
3094
|
|
3136
3095
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
|
3141
|
-
|
3142
|
-
|
3096
|
+
import React12, { useEffect as useEffect3, useState as useState8 } from "react";
|
3097
|
+
import { Col, Row, Table } from "react-bootstrap";
|
3098
|
+
import {
|
3099
|
+
DatatableWrapper,
|
3100
|
+
Filter,
|
3101
|
+
PaginationOptions,
|
3102
|
+
TableBody,
|
3103
|
+
TableHeader
|
3104
|
+
} from "react-bs-datatable";
|
3105
|
+
import DatePicker from "react-datepicker";
|
3106
|
+
import "react-datepicker/dist/react-datepicker.css";
|
3107
|
+
import { toast as toast4 } from "react-toastify";
|
3143
3108
|
|
3144
3109
|
// src/app/components/Pagination/Pagination.tsx
|
3145
|
-
|
3110
|
+
import React11, { useState as useState7, useEffect as useEffect2 } from "react";
|
3146
3111
|
function PaginationPg({ totalPages, onPageChange, current }) {
|
3147
|
-
const [currentPage, setCurrentPage] = (
|
3148
|
-
const [showPages, setShowPages] = (
|
3149
|
-
(
|
3112
|
+
const [currentPage, setCurrentPage] = useState7(current);
|
3113
|
+
const [showPages, setShowPages] = useState7(false);
|
3114
|
+
useEffect2(() => {
|
3150
3115
|
setCurrentPage(current);
|
3151
3116
|
}, [current]);
|
3152
|
-
(
|
3117
|
+
useEffect2(() => {
|
3153
3118
|
setTimeout(() => {
|
3154
3119
|
setShowPages(true);
|
3155
3120
|
}, 1e3);
|
@@ -3185,7 +3150,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3185
3150
|
if (currentPage > 3) {
|
3186
3151
|
pageNumbers.push(renderPageNumber(1));
|
3187
3152
|
if (currentPage > 4) {
|
3188
|
-
pageNumbers.push(/* @__PURE__ */
|
3153
|
+
pageNumbers.push(/* @__PURE__ */ React11.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ React11.createElement("span", { className: "page-link" }, "...")));
|
3189
3154
|
}
|
3190
3155
|
}
|
3191
3156
|
const startPage = Math.max(currentPage - 1, 1);
|
@@ -3195,15 +3160,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3195
3160
|
}
|
3196
3161
|
if (currentPage < totalPages - 2) {
|
3197
3162
|
if (currentPage < totalPages - 3) {
|
3198
|
-
pageNumbers.push(/* @__PURE__ */
|
3163
|
+
pageNumbers.push(/* @__PURE__ */ React11.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ React11.createElement("span", { className: "page-link" }, "...")));
|
3199
3164
|
}
|
3200
3165
|
pageNumbers.push(renderPageNumber(totalPages));
|
3201
3166
|
}
|
3202
3167
|
}
|
3203
3168
|
return pageNumbers;
|
3204
3169
|
};
|
3205
|
-
const renderPageNumber = (pageNumber) => /* @__PURE__ */
|
3206
|
-
return /* @__PURE__ */
|
3170
|
+
const renderPageNumber = (pageNumber) => /* @__PURE__ */ React11.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
3171
|
+
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ React11.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9E"))))));
|
3207
3172
|
}
|
3208
3173
|
|
3209
3174
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
@@ -3241,10 +3206,10 @@ var STORY_HEADERS = [
|
|
3241
3206
|
}
|
3242
3207
|
];
|
3243
3208
|
function CompletedTransactions(props) {
|
3244
|
-
const [dataList, setDataList] = (
|
3245
|
-
const [startDate, setStartDate] = (
|
3246
|
-
const [endDate, setEndDate] = (
|
3247
|
-
const [state, setState] = (
|
3209
|
+
const [dataList, setDataList] = useState8([]);
|
3210
|
+
const [startDate, setStartDate] = useState8(null);
|
3211
|
+
const [endDate, setEndDate] = useState8(null);
|
3212
|
+
const [state, setState] = useState8({
|
3248
3213
|
page: 1,
|
3249
3214
|
totalPage: 0,
|
3250
3215
|
data: [],
|
@@ -3332,9 +3297,9 @@ function CompletedTransactions(props) {
|
|
3332
3297
|
};
|
3333
3298
|
const handleExport = async () => {
|
3334
3299
|
if (!startDate) {
|
3335
|
-
|
3300
|
+
toast4.error("Start date required");
|
3336
3301
|
} else if (!endDate) {
|
3337
|
-
|
3302
|
+
toast4.error("End date required");
|
3338
3303
|
} else {
|
3339
3304
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { csvData: true }));
|
3340
3305
|
try {
|
@@ -3367,19 +3332,19 @@ function CompletedTransactions(props) {
|
|
3367
3332
|
}
|
3368
3333
|
}
|
3369
3334
|
};
|
3370
|
-
(
|
3335
|
+
useEffect3(() => {
|
3371
3336
|
fetchData(state.page, startDate, endDate);
|
3372
3337
|
}, [state.page]);
|
3373
3338
|
const handlePageChange = (pageNumber) => {
|
3374
3339
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
|
3375
3340
|
fetchData(pageNumber, startDate, endDate);
|
3376
3341
|
};
|
3377
|
-
return /* @__PURE__ */
|
3342
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("style", null, `
|
3378
3343
|
.react-datepicker-wrapper:first-child {
|
3379
3344
|
margin-right: 10px;
|
3380
3345
|
}
|
3381
|
-
`), /* @__PURE__ */
|
3382
|
-
|
3346
|
+
`), /* @__PURE__ */ React12.createElement("div", { className: "mb-5" }, /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React12.createElement("div", { style: { display: "flex", marginRight: "10px", marginTop: "25px" } }, /* @__PURE__ */ React12.createElement(
|
3347
|
+
DatePicker,
|
3383
3348
|
{
|
3384
3349
|
selected: startDate,
|
3385
3350
|
onChange: handleStartDateChange,
|
@@ -3389,8 +3354,8 @@ function CompletedTransactions(props) {
|
|
3389
3354
|
placeholderText: "Start Date",
|
3390
3355
|
required: true
|
3391
3356
|
}
|
3392
|
-
), /* @__PURE__ */
|
3393
|
-
|
3357
|
+
), /* @__PURE__ */ React12.createElement(
|
3358
|
+
DatePicker,
|
3394
3359
|
{
|
3395
3360
|
selected: endDate,
|
3396
3361
|
onChange: handleEndDateChange,
|
@@ -3400,8 +3365,8 @@ function CompletedTransactions(props) {
|
|
3400
3365
|
minDate: startDate,
|
3401
3366
|
placeholderText: "End Date"
|
3402
3367
|
}
|
3403
|
-
)), /* @__PURE__ */
|
3404
|
-
|
3368
|
+
)), /* @__PURE__ */ React12.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ React12.createElement(
|
3369
|
+
DatatableWrapper,
|
3405
3370
|
{
|
3406
3371
|
body: dataList,
|
3407
3372
|
headers: STORY_HEADERS,
|
@@ -3412,21 +3377,21 @@ function CompletedTransactions(props) {
|
|
3412
3377
|
}
|
3413
3378
|
}
|
3414
3379
|
},
|
3415
|
-
/* @__PURE__ */
|
3416
|
-
/* @__PURE__ */
|
3417
|
-
/* @__PURE__ */
|
3380
|
+
/* @__PURE__ */ React12.createElement(Row, { className: "mb-4 p-2" }, /* @__PURE__ */ React12.createElement(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__ */ React12.createElement(PaginationOptions, null)), /* @__PURE__ */ React12.createElement(Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ React12.createElement(Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ React12.createElement(Filter, null))),
|
3381
|
+
/* @__PURE__ */ React12.createElement(Row, null, /* @__PURE__ */ React12.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ React12.createElement(Table, null, /* @__PURE__ */ React12.createElement(TableHeader, null), /* @__PURE__ */ React12.createElement(TableBody, null)))),
|
3382
|
+
/* @__PURE__ */ React12.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
3418
3383
|
))));
|
3419
3384
|
}
|
3420
3385
|
|
3421
3386
|
// src/app/components/Payment/TockenizPay.tsx
|
3422
|
-
|
3423
|
-
|
3424
|
-
|
3425
|
-
|
3426
|
-
|
3427
|
-
|
3387
|
+
import React13, { useState as useState9 } from "react";
|
3388
|
+
import { Modal as Modal7 } from "react-bootstrap";
|
3389
|
+
import { toast as toast5, ToastContainer as ToastContainer3 } from "react-toastify";
|
3390
|
+
import axios3 from "axios";
|
3391
|
+
import forge2 from "node-forge";
|
3392
|
+
import creditCardType from "credit-card-type";
|
3428
3393
|
function TockenizPay() {
|
3429
|
-
const [state, setState] = (
|
3394
|
+
const [state, setState] = useState9({
|
3430
3395
|
show: false,
|
3431
3396
|
publicKey: "",
|
3432
3397
|
sessionKey: "",
|
@@ -3437,13 +3402,13 @@ function TockenizPay() {
|
|
3437
3402
|
zip: "",
|
3438
3403
|
amount: ""
|
3439
3404
|
});
|
3440
|
-
const [cardTypeDetail, setCardTypeDetail] = (
|
3441
|
-
const [isValid, setIsValid] = (
|
3442
|
-
const [isValidMonth, setIsValidMonth] = (
|
3443
|
-
const [data, setData] = (
|
3405
|
+
const [cardTypeDetail, setCardTypeDetail] = useState9(null);
|
3406
|
+
const [isValid, setIsValid] = useState9(false);
|
3407
|
+
const [isValidMonth, setIsValidMonth] = useState9(false);
|
3408
|
+
const [data, setData] = useState9(null);
|
3444
3409
|
const handlePaymentClick = async () => {
|
3445
3410
|
try {
|
3446
|
-
const response = await
|
3411
|
+
const response = await axios3.post(`${baseUrl}/generate-session`, {});
|
3447
3412
|
const data2 = response.data;
|
3448
3413
|
if (data2 && (data2 == null ? void 0 : data2.result) === true) {
|
3449
3414
|
setState((prev) => {
|
@@ -3462,14 +3427,14 @@ function TockenizPay() {
|
|
3462
3427
|
const handleSubmitPay = async () => {
|
3463
3428
|
var _a, _b, _c, _d, _e;
|
3464
3429
|
let track2_data = `${(_a = state == null ? void 0 : state.cardNumber) == null ? void 0 : _a.replaceAll(" ", "")}=${state.year}${((_b = state == null ? void 0 : state.month) == null ? void 0 : _b.length) > 1 ? state == null ? void 0 : state.month : "0" + (state == null ? void 0 : state.month)} ${state.cvv}`;
|
3465
|
-
const publicKey =
|
3430
|
+
const publicKey = forge2.pki.publicKeyFromPem(state.publicKey);
|
3466
3431
|
const encrypted = publicKey.encrypt(track2_data, "RSA-OAEP", {
|
3467
|
-
md:
|
3432
|
+
md: forge2.md.sha1.create(),
|
3468
3433
|
mgf1: {
|
3469
|
-
md:
|
3434
|
+
md: forge2.md.sha1.create()
|
3470
3435
|
}
|
3471
3436
|
});
|
3472
|
-
const encryptedBase64 =
|
3437
|
+
const encryptedBase64 = forge2.util.encode64(encrypted);
|
3473
3438
|
console.log(encryptedBase64);
|
3474
3439
|
const requestBody = {
|
3475
3440
|
enc_track2_data: encryptedBase64,
|
@@ -3477,7 +3442,7 @@ function TockenizPay() {
|
|
3477
3442
|
algorithm: "RSAES_OAEP_SHA_1"
|
3478
3443
|
};
|
3479
3444
|
try {
|
3480
|
-
const response = await
|
3445
|
+
const response = await axios3.post(
|
3481
3446
|
"https://m1ao5pku8b.execute-api.us-east-2.amazonaws.com/prod/tokenizer/tokenize",
|
3482
3447
|
requestBody,
|
3483
3448
|
{
|
@@ -3488,7 +3453,7 @@ function TockenizPay() {
|
|
3488
3453
|
}
|
3489
3454
|
);
|
3490
3455
|
if ((response == null ? void 0 : response.status) === 200) {
|
3491
|
-
|
3456
|
+
toast5.success("Payment Successful");
|
3492
3457
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
3493
3458
|
show: false,
|
3494
3459
|
publicKey: "",
|
@@ -3503,7 +3468,7 @@ function TockenizPay() {
|
|
3503
3468
|
}
|
3504
3469
|
console.log("response", response);
|
3505
3470
|
} catch (error) {
|
3506
|
-
|
3471
|
+
toast5.error((_e = (_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.data) == null ? void 0 : _e.message);
|
3507
3472
|
console.error("Error:", error);
|
3508
3473
|
}
|
3509
3474
|
};
|
@@ -3535,9 +3500,9 @@ function TockenizPay() {
|
|
3535
3500
|
e.preventDefault();
|
3536
3501
|
e.stopPropagation();
|
3537
3502
|
const { value } = e.target;
|
3538
|
-
let cardtyp = (
|
3503
|
+
let cardtyp = creditCardType(value)[0];
|
3539
3504
|
const formattedValue = formatCreditCardNumber(value, cardtyp == null ? void 0 : cardtyp.type);
|
3540
|
-
setCardTypeDetail((
|
3505
|
+
setCardTypeDetail(creditCardType(value)[0]);
|
3541
3506
|
console.log(formattedValue);
|
3542
3507
|
if (value.match(/[a-zA-Z]/)) {
|
3543
3508
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3639,7 +3604,7 @@ function TockenizPay() {
|
|
3639
3604
|
}
|
3640
3605
|
return "";
|
3641
3606
|
}
|
3642
|
-
return /* @__PURE__ */
|
3607
|
+
return /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement(ToastContainer3, null), /* @__PURE__ */ React13.createElement(
|
3643
3608
|
"button",
|
3644
3609
|
{
|
3645
3610
|
className: "export-btn mt-4",
|
@@ -3647,8 +3612,8 @@ function TockenizPay() {
|
|
3647
3612
|
onClick: () => handlePaymentClick()
|
3648
3613
|
},
|
3649
3614
|
"TokenizePay"
|
3650
|
-
), /* @__PURE__ */
|
3651
|
-
|
3615
|
+
), /* @__PURE__ */ React13.createElement(
|
3616
|
+
Modal7,
|
3652
3617
|
{
|
3653
3618
|
show: state.show,
|
3654
3619
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3656,8 +3621,8 @@ function TockenizPay() {
|
|
3656
3621
|
})),
|
3657
3622
|
centered: true
|
3658
3623
|
},
|
3659
|
-
/* @__PURE__ */
|
3660
|
-
/* @__PURE__ */
|
3624
|
+
/* @__PURE__ */ React13.createElement(Modal7.Header, { closeButton: true }),
|
3625
|
+
/* @__PURE__ */ React13.createElement(Modal7.Body, null, /* @__PURE__ */ React13.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React13.createElement("div", { className: "row" }, /* @__PURE__ */ React13.createElement("div", { className: "" }, /* @__PURE__ */ React13.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React13.createElement("div", { className: "header" }, /* @__PURE__ */ React13.createElement("h1", null, "Pay")), /* @__PURE__ */ React13.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React13.createElement("div", { className: "form-group" }, /* @__PURE__ */ React13.createElement("label", null, "Name on card"), /* @__PURE__ */ React13.createElement(
|
3661
3626
|
"input",
|
3662
3627
|
{
|
3663
3628
|
id: "NameOnCard",
|
@@ -3666,13 +3631,13 @@ function TockenizPay() {
|
|
3666
3631
|
maxLength: 100,
|
3667
3632
|
placeholder: "Name"
|
3668
3633
|
}
|
3669
|
-
), /* @__PURE__ */
|
3634
|
+
), /* @__PURE__ */ React13.createElement(
|
3670
3635
|
"span",
|
3671
3636
|
{
|
3672
3637
|
id: "NameOnCard-error",
|
3673
3638
|
style: { color: "red", display: "none" }
|
3674
3639
|
}
|
3675
|
-
)), /* @__PURE__ */
|
3640
|
+
)), /* @__PURE__ */ React13.createElement("div", { className: "form-group" }, /* @__PURE__ */ React13.createElement(
|
3676
3641
|
"input",
|
3677
3642
|
{
|
3678
3643
|
"data-token": "card_number",
|
@@ -3683,7 +3648,7 @@ function TockenizPay() {
|
|
3683
3648
|
placeholder: "0000 0000 0000 0000",
|
3684
3649
|
onChange: handleCardNumberChange
|
3685
3650
|
}
|
3686
|
-
), state.error && /* @__PURE__ */
|
3651
|
+
), state.error && /* @__PURE__ */ React13.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React13.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React13.createElement(
|
3687
3652
|
"input",
|
3688
3653
|
{
|
3689
3654
|
"data-token": "exp_month",
|
@@ -3694,14 +3659,14 @@ function TockenizPay() {
|
|
3694
3659
|
maxLength: 2,
|
3695
3660
|
onChange: (e) => handleMonthChange(e)
|
3696
3661
|
}
|
3697
|
-
), isValidMonth && /* @__PURE__ */
|
3662
|
+
), isValidMonth && /* @__PURE__ */ React13.createElement(
|
3698
3663
|
"span",
|
3699
3664
|
{
|
3700
3665
|
id: "card_number-error",
|
3701
3666
|
style: { color: "red", fontSize: "15px" }
|
3702
3667
|
},
|
3703
3668
|
"Please write month only 1 to 12"
|
3704
|
-
)), /* @__PURE__ */
|
3669
|
+
)), /* @__PURE__ */ React13.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React13.createElement(
|
3705
3670
|
"input",
|
3706
3671
|
{
|
3707
3672
|
"data-token": "exp_year",
|
@@ -3712,7 +3677,7 @@ function TockenizPay() {
|
|
3712
3677
|
value: state.year,
|
3713
3678
|
onChange: (e) => handleYearChange(e)
|
3714
3679
|
}
|
3715
|
-
), state.yearError && /* @__PURE__ */
|
3680
|
+
), state.yearError && /* @__PURE__ */ React13.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React13.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React13.createElement("div", { className: "input-container" }, /* @__PURE__ */ React13.createElement(
|
3716
3681
|
"input",
|
3717
3682
|
{
|
3718
3683
|
"data-token": "cvv",
|
@@ -3723,7 +3688,7 @@ function TockenizPay() {
|
|
3723
3688
|
placeholder: "CVV",
|
3724
3689
|
onChange: (e) => handleCVVChange(e)
|
3725
3690
|
}
|
3726
|
-
), /* @__PURE__ */
|
3691
|
+
), /* @__PURE__ */ React13.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React13.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React13.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React13.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React13.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React13.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React13.createElement("label", null, "Postal code"), /* @__PURE__ */ React13.createElement("div", { className: "input-container" }, /* @__PURE__ */ React13.createElement(
|
3727
3692
|
"input",
|
3728
3693
|
{
|
3729
3694
|
id: "ZIPCode",
|
@@ -3735,7 +3700,7 @@ function TockenizPay() {
|
|
3735
3700
|
value: state.zip,
|
3736
3701
|
onChange: (e) => handleZIP(e)
|
3737
3702
|
}
|
3738
|
-
), /* @__PURE__ */
|
3703
|
+
), /* @__PURE__ */ React13.createElement(
|
3739
3704
|
"a",
|
3740
3705
|
{
|
3741
3706
|
tabIndex: 0,
|
@@ -3745,15 +3710,15 @@ function TockenizPay() {
|
|
3745
3710
|
"data-placement": "left",
|
3746
3711
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3747
3712
|
},
|
3748
|
-
/* @__PURE__ */
|
3749
|
-
), /* @__PURE__ */
|
3713
|
+
/* @__PURE__ */ React13.createElement("i", { className: "fa fa-question-circle" })
|
3714
|
+
), /* @__PURE__ */ React13.createElement(
|
3750
3715
|
"span",
|
3751
3716
|
{
|
3752
3717
|
id: "ZIPCode-error",
|
3753
3718
|
style: { color: "red", display: "none" }
|
3754
3719
|
},
|
3755
3720
|
"This field is required"
|
3756
|
-
))), /* @__PURE__ */
|
3721
|
+
))), /* @__PURE__ */ React13.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("label", null, "Payment amount"), /* @__PURE__ */ React13.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React13.createElement(
|
3757
3722
|
"input",
|
3758
3723
|
{
|
3759
3724
|
id: "Amount",
|
@@ -3765,7 +3730,7 @@ function TockenizPay() {
|
|
3765
3730
|
onChange: (e) => handleAmount(e),
|
3766
3731
|
onBlur: handleAmountBlur
|
3767
3732
|
}
|
3768
|
-
))), /* @__PURE__ */
|
3733
|
+
))), /* @__PURE__ */ React13.createElement("div", { className: "card-row" }, /* @__PURE__ */ React13.createElement("span", { className: "visa" }), /* @__PURE__ */ React13.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React13.createElement("span", { className: "amex" }), /* @__PURE__ */ React13.createElement("span", { className: "discover" }))), /* @__PURE__ */ React13.createElement(
|
3769
3734
|
"button",
|
3770
3735
|
{
|
3771
3736
|
type: "button",
|
@@ -3774,7 +3739,7 @@ function TockenizPay() {
|
|
3774
3739
|
className: "btn btn-block btn-success submit-button"
|
3775
3740
|
},
|
3776
3741
|
"Submit"
|
3777
|
-
)), /* @__PURE__ */
|
3742
|
+
)), /* @__PURE__ */ React13.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React13.createElement(
|
3778
3743
|
"svg",
|
3779
3744
|
{
|
3780
3745
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3782,14 +3747,14 @@ function TockenizPay() {
|
|
3782
3747
|
height: "20",
|
3783
3748
|
viewBox: "0 0 26 26"
|
3784
3749
|
},
|
3785
|
-
/* @__PURE__ */
|
3750
|
+
/* @__PURE__ */ React13.createElement(
|
3786
3751
|
"path",
|
3787
3752
|
{
|
3788
3753
|
fill: "currentColor",
|
3789
3754
|
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"
|
3790
3755
|
}
|
3791
3756
|
)
|
3792
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
3757
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React13.createElement(
|
3793
3758
|
"img",
|
3794
3759
|
{
|
3795
3760
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3801,25 +3766,25 @@ function TockenizPay() {
|
|
3801
3766
|
}
|
3802
3767
|
|
3803
3768
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3804
|
-
|
3805
|
-
|
3769
|
+
import React15, { useEffect as useEffect4, useState as useState10 } from "react";
|
3770
|
+
import { Modal as Modal8 } from "react-bootstrap";
|
3806
3771
|
|
3807
3772
|
// src/app/components/Loader/MyLoadingAnimation.tsx
|
3808
|
-
|
3773
|
+
import React14 from "react";
|
3809
3774
|
function MyLoadingAnimation() {
|
3810
|
-
return /* @__PURE__ */
|
3775
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(LoaderStyle_default, null), /* @__PURE__ */ React14.createElement("div", { className: "loading-animation" }, /* @__PURE__ */ React14.createElement("div", { className: "spinner" })));
|
3811
3776
|
}
|
3812
3777
|
|
3813
3778
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3814
3779
|
function GetPaymentDynamic(props) {
|
3815
3780
|
const { amount, fractalpayClientKey, orderID } = props;
|
3816
|
-
const [loading, setLoading] = (
|
3817
|
-
const [show, setShow] = (
|
3818
|
-
const [iframeLoaded, setIframeLoaded] = (
|
3819
|
-
const [phoneNumber, setPhoneNumber] = (
|
3820
|
-
const [errorMessage, setErrorMessage] = (
|
3821
|
-
const [submitClicked, setSubmitClicked] = (
|
3822
|
-
const [isValidNumber, setIsValidNumber] = (
|
3781
|
+
const [loading, setLoading] = useState10(false);
|
3782
|
+
const [show, setShow] = useState10(false);
|
3783
|
+
const [iframeLoaded, setIframeLoaded] = useState10(false);
|
3784
|
+
const [phoneNumber, setPhoneNumber] = useState10("");
|
3785
|
+
const [errorMessage, setErrorMessage] = useState10("");
|
3786
|
+
const [submitClicked, setSubmitClicked] = useState10(false);
|
3787
|
+
const [isValidNumber, setIsValidNumber] = useState10(true);
|
3823
3788
|
const handleClose = () => {
|
3824
3789
|
setIframeLoaded(false);
|
3825
3790
|
setTimeout(() => {
|
@@ -3834,7 +3799,7 @@ function GetPaymentDynamic(props) {
|
|
3834
3799
|
console.error("Fractalpay client key is missing or empty.");
|
3835
3800
|
}
|
3836
3801
|
};
|
3837
|
-
(
|
3802
|
+
useEffect4(() => {
|
3838
3803
|
if (!fractalpayClientKey) {
|
3839
3804
|
console.error("Fractalpay client key is missing or empty.");
|
3840
3805
|
}
|
@@ -3857,7 +3822,7 @@ function GetPaymentDynamic(props) {
|
|
3857
3822
|
const handleLoad = () => {
|
3858
3823
|
setLoading(false);
|
3859
3824
|
};
|
3860
|
-
(
|
3825
|
+
useEffect4(() => {
|
3861
3826
|
const messageListener = (event) => {
|
3862
3827
|
var _a, _b;
|
3863
3828
|
const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
|
@@ -3872,7 +3837,7 @@ function GetPaymentDynamic(props) {
|
|
3872
3837
|
window.removeEventListener("message", messageListener);
|
3873
3838
|
};
|
3874
3839
|
}, []);
|
3875
|
-
return /* @__PURE__ */
|
3840
|
+
return /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Pay"), /* @__PURE__ */ React15.createElement(Modal8, { show: show && iframeLoaded, id: "modal-pay", className: "modal-lg", onHide: handleClose }, /* @__PURE__ */ React15.createElement(Modal8.Header, { closeButton: true }), /* @__PURE__ */ React15.createElement(Modal8.Body, null, loading && /* @__PURE__ */ React15.createElement(MyLoadingAnimation, null), /* @__PURE__ */ React15.createElement(
|
3876
3841
|
"iframe",
|
3877
3842
|
{
|
3878
3843
|
src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,
|
@@ -3883,8 +3848,7 @@ function GetPaymentDynamic(props) {
|
|
3883
3848
|
}
|
3884
3849
|
))));
|
3885
3850
|
}
|
3886
|
-
|
3887
|
-
0 && (module.exports = {
|
3851
|
+
export {
|
3888
3852
|
CompletedTransactions,
|
3889
3853
|
GetPaymentDynamic,
|
3890
3854
|
Payment,
|
@@ -3894,4 +3858,4 @@ function GetPaymentDynamic(props) {
|
|
3894
3858
|
RequestPaymentonClick,
|
3895
3859
|
RqstPaymntInputField,
|
3896
3860
|
TockenizPay
|
3897
|
-
}
|
3861
|
+
};
|