@pinerohit11/testwidget 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.next/app-build-manifest.json +15 -0
- package/.next/build-manifest.json +20 -0
- package/.next/cache/.rscinfo +1 -0
- package/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/.next/cache/webpack/client-development/10.pack.gz +0 -0
- package/.next/cache/webpack/client-development/11.pack.gz +0 -0
- package/.next/cache/webpack/client-development/2.pack.gz +0 -0
- package/.next/cache/webpack/client-development/3.pack.gz +0 -0
- package/.next/cache/webpack/client-development/4.pack.gz +0 -0
- package/.next/cache/webpack/client-development/5.pack.gz +0 -0
- package/.next/cache/webpack/client-development/6.pack.gz +0 -0
- package/.next/cache/webpack/client-development/7.pack.gz +0 -0
- package/.next/cache/webpack/client-development/8.pack.gz +0 -0
- package/.next/cache/webpack/client-development/9.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
- package/.next/cache/webpack/server-development/0.pack.gz +0 -0
- package/.next/cache/webpack/server-development/1.pack.gz +0 -0
- package/.next/cache/webpack/server-development/10.pack.gz +0 -0
- package/.next/cache/webpack/server-development/11.pack.gz +0 -0
- package/.next/cache/webpack/server-development/12.pack.gz +0 -0
- package/.next/cache/webpack/server-development/13.pack.gz +0 -0
- package/.next/cache/webpack/server-development/14.pack.gz +0 -0
- package/.next/cache/webpack/server-development/2.pack.gz +0 -0
- package/.next/cache/webpack/server-development/3.pack.gz +0 -0
- package/.next/cache/webpack/server-development/4.pack.gz +0 -0
- package/.next/cache/webpack/server-development/5.pack.gz +0 -0
- package/.next/cache/webpack/server-development/6.pack.gz +0 -0
- package/.next/cache/webpack/server-development/7.pack.gz +0 -0
- package/.next/cache/webpack/server-development/8.pack.gz +0 -0
- package/.next/cache/webpack/server-development/9.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
- package/.next/package.json +1 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/server/app/favicon.ico/route.js +86 -0
- package/.next/server/app/page.js +383 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +4 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +22 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/server/vendor-chunks/@swc.js +55 -0
- package/.next/server/vendor-chunks/asynckit.js +114 -0
- package/.next/server/vendor-chunks/axios.js +555 -0
- package/.next/server/vendor-chunks/combined-stream.js +24 -0
- package/.next/server/vendor-chunks/debug.js +54 -0
- package/.next/server/vendor-chunks/delayed-stream.js +24 -0
- package/.next/server/vendor-chunks/follow-redirects.js +34 -0
- package/.next/server/vendor-chunks/form-data.js +34 -0
- package/.next/server/vendor-chunks/has-flag.js +25 -0
- package/.next/server/vendor-chunks/mime-db.js +35 -0
- package/.next/server/vendor-chunks/mime-types.js +25 -0
- package/.next/server/vendor-chunks/ms.js +24 -0
- package/.next/server/vendor-chunks/next.js +3185 -0
- package/.next/server/vendor-chunks/proxy-from-env.js +25 -0
- package/.next/server/vendor-chunks/supports-color.js +25 -0
- package/.next/server/webpack-runtime.js +220 -0
- package/.next/static/chunks/app/layout.js +146 -0
- package/.next/static/chunks/app/page.js +610 -0
- package/.next/static/chunks/app-pages-internals.js +193 -0
- package/.next/static/chunks/main-app.js +2398 -0
- package/.next/static/chunks/polyfills.js +1 -0
- package/.next/static/chunks/webpack.js +1411 -0
- package/.next/static/css/app/layout.css +713 -0
- package/.next/static/development/_buildManifest.js +1 -0
- package/.next/static/development/_ssgManifest.js +1 -0
- package/.next/static/media/4473ecc91f70f139-s.p.woff +0 -0
- package/.next/static/media/463dafcda517f24f-s.p.woff +0 -0
- package/.next/static/webpack/0463e0d10a76f0e1.webpack.hot-update.json +1 -0
- package/.next/static/webpack/14eb1ee43b84ca5f.webpack.hot-update.json +1 -0
- package/.next/static/webpack/1f1fe21203e4c68b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/213fdb98a15e3455.webpack.hot-update.json +1 -0
- package/.next/static/webpack/228b69a2a9a20202.webpack.hot-update.json +1 -0
- package/.next/static/webpack/255aea9c6475b746.webpack.hot-update.json +1 -0
- package/.next/static/webpack/2d35c83f0037d0e3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/309e2d9634152b60.webpack.hot-update.json +1 -0
- package/.next/static/webpack/329e12e211658503.webpack.hot-update.json +1 -0
- package/.next/static/webpack/456a8cdc4e32bb1b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/4a9375b8e793c38e.webpack.hot-update.json +1 -0
- package/.next/static/webpack/500c5340fb4c6cd5.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5031cfaa2d3d892d.webpack.hot-update.json +1 -0
- package/.next/static/webpack/51f0e2a03e8d18a6.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5ad56258b0e90bef.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5c7e83ae2adb882e.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5c8dada5acec56f7.webpack.hot-update.json +1 -0
- package/.next/static/webpack/5e709b5694e5ad26.webpack.hot-update.json +1 -0
- package/.next/static/webpack/6246449706d4b449.webpack.hot-update.json +1 -0
- package/.next/static/webpack/633457081244afec._.hot-update.json +1 -0
- package/.next/static/webpack/6498563004a57942.webpack.hot-update.json +1 -0
- package/.next/static/webpack/65c43818d6f690fe.webpack.hot-update.json +1 -0
- package/.next/static/webpack/681ce36f0645d689.webpack.hot-update.json +1 -0
- package/.next/static/webpack/6f00711e3d258954.webpack.hot-update.json +1 -0
- package/.next/static/webpack/81f6646c28a82804.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8522f92ca02de0c8.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8894e91a6b3fd5cb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/893ddc36c19de1ea.webpack.hot-update.json +1 -0
- package/.next/static/webpack/896c5501cdf537b3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8cc442b31ec27e60.webpack.hot-update.json +1 -0
- package/.next/static/webpack/8ed684f639abe58b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/97615cc2d368fba4.webpack.hot-update.json +1 -0
- package/.next/static/webpack/9775f51aeb80d3b2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/9bbf208246a2eebb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/a74f1afad4b7a8a2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/aed2ae614f6605ed.webpack.hot-update.json +1 -0
- package/.next/static/webpack/app/layout.228b69a2a9a20202.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.2d35c83f0037d0e3.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.456a8cdc4e32bb1b.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.8894e91a6b3fd5cb.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.a74f1afad4b7a8a2.hot-update.js +98 -0
- package/.next/static/webpack/app/layout.bb4485d5c54b0ed1.hot-update.js +22 -0
- package/.next/static/webpack/app/layout.e5533e94660e066c.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.eabe83a6bd680d72.hot-update.js +31 -0
- package/.next/static/webpack/app/layout.f3f79b681eb03ce7.hot-update.js +22 -0
- package/.next/static/webpack/app/page.0463e0d10a76f0e1.hot-update.js +22 -0
- package/.next/static/webpack/app/page.14eb1ee43b84ca5f.hot-update.js +22 -0
- package/.next/static/webpack/app/page.1f1fe21203e4c68b.hot-update.js +21 -0
- package/.next/static/webpack/app/page.213fdb98a15e3455.hot-update.js +22 -0
- package/.next/static/webpack/app/page.255aea9c6475b746.hot-update.js +22 -0
- package/.next/static/webpack/app/page.309e2d9634152b60.hot-update.js +22 -0
- package/.next/static/webpack/app/page.329e12e211658503.hot-update.js +22 -0
- package/.next/static/webpack/app/page.4a9375b8e793c38e.hot-update.js +22 -0
- package/.next/static/webpack/app/page.500c5340fb4c6cd5.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5031cfaa2d3d892d.hot-update.js +22 -0
- package/.next/static/webpack/app/page.51f0e2a03e8d18a6.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5ad56258b0e90bef.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5c7e83ae2adb882e.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5c8dada5acec56f7.hot-update.js +22 -0
- package/.next/static/webpack/app/page.5e709b5694e5ad26.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6246449706d4b449.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6498563004a57942.hot-update.js +22 -0
- package/.next/static/webpack/app/page.65c43818d6f690fe.hot-update.js +22 -0
- package/.next/static/webpack/app/page.681ce36f0645d689.hot-update.js +22 -0
- package/.next/static/webpack/app/page.6f00711e3d258954.hot-update.js +22 -0
- package/.next/static/webpack/app/page.81f6646c28a82804.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8522f92ca02de0c8.hot-update.js +54 -0
- package/.next/static/webpack/app/page.893ddc36c19de1ea.hot-update.js +22 -0
- package/.next/static/webpack/app/page.896c5501cdf537b3.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8cc442b31ec27e60.hot-update.js +22 -0
- package/.next/static/webpack/app/page.8ed684f639abe58b.hot-update.js +603 -0
- package/.next/static/webpack/app/page.97615cc2d368fba4.hot-update.js +22 -0
- package/.next/static/webpack/app/page.9775f51aeb80d3b2.hot-update.js +22 -0
- package/.next/static/webpack/app/page.9bbf208246a2eebb.hot-update.js +22 -0
- package/.next/static/webpack/app/page.aed2ae614f6605ed.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b4b25d4db23dbc5a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b728482f9b82d921.hot-update.js +571 -0
- package/.next/static/webpack/app/page.b7a42026022db1f3.hot-update.js +22 -0
- package/.next/static/webpack/app/page.b90118a4d57e76ad.hot-update.js +54 -0
- package/.next/static/webpack/app/page.c0a3bb4128bc91cb.hot-update.js +22 -0
- package/.next/static/webpack/app/page.c5880161e6d8c38b.hot-update.js +22 -0
- package/.next/static/webpack/app/page.c91faac87e6e5e7d.hot-update.js +21 -0
- package/.next/static/webpack/app/page.cb281b61855d3afc.hot-update.js +22 -0
- package/.next/static/webpack/app/page.cc723ec7106788b2.hot-update.js +22 -0
- package/.next/static/webpack/app/page.d00ead7a6d6dd27a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.d5492b6ce3aff19a.hot-update.js +22 -0
- package/.next/static/webpack/app/page.e1a0b7850e69b555.hot-update.js +22 -0
- package/.next/static/webpack/app/page.e6094793daace46f.hot-update.js +22 -0
- package/.next/static/webpack/app/page.ef9190246958611b.hot-update.js +22 -0
- package/.next/static/webpack/b4b25d4db23dbc5a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b728482f9b82d921.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b7a42026022db1f3.webpack.hot-update.json +1 -0
- package/.next/static/webpack/b90118a4d57e76ad.webpack.hot-update.json +1 -0
- package/.next/static/webpack/bb4485d5c54b0ed1.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c0a3bb4128bc91cb.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c5880161e6d8c38b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/c91faac87e6e5e7d.webpack.hot-update.json +1 -0
- package/.next/static/webpack/cb281b61855d3afc.webpack.hot-update.json +1 -0
- package/.next/static/webpack/cc723ec7106788b2.webpack.hot-update.json +1 -0
- package/.next/static/webpack/d00ead7a6d6dd27a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/d5492b6ce3aff19a.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e1a0b7850e69b555.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e5533e94660e066c.webpack.hot-update.json +1 -0
- package/.next/static/webpack/e6094793daace46f.webpack.hot-update.json +1 -0
- package/.next/static/webpack/eabe83a6bd680d72.webpack.hot-update.json +1 -0
- package/.next/static/webpack/ef9190246958611b.webpack.hot-update.json +1 -0
- package/.next/static/webpack/f3f79b681eb03ce7.webpack.hot-update.json +1 -0
- package/.next/static/webpack/webpack.0463e0d10a76f0e1.hot-update.js +18 -0
- package/.next/static/webpack/webpack.14eb1ee43b84ca5f.hot-update.js +18 -0
- package/.next/static/webpack/webpack.1f1fe21203e4c68b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.213fdb98a15e3455.hot-update.js +18 -0
- package/.next/static/webpack/webpack.228b69a2a9a20202.hot-update.js +18 -0
- package/.next/static/webpack/webpack.255aea9c6475b746.hot-update.js +18 -0
- package/.next/static/webpack/webpack.2d35c83f0037d0e3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.309e2d9634152b60.hot-update.js +18 -0
- package/.next/static/webpack/webpack.329e12e211658503.hot-update.js +18 -0
- package/.next/static/webpack/webpack.456a8cdc4e32bb1b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.4a9375b8e793c38e.hot-update.js +18 -0
- package/.next/static/webpack/webpack.500c5340fb4c6cd5.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5031cfaa2d3d892d.hot-update.js +18 -0
- package/.next/static/webpack/webpack.51f0e2a03e8d18a6.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5ad56258b0e90bef.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5c7e83ae2adb882e.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5c8dada5acec56f7.hot-update.js +18 -0
- package/.next/static/webpack/webpack.5e709b5694e5ad26.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6246449706d4b449.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6498563004a57942.hot-update.js +18 -0
- package/.next/static/webpack/webpack.65c43818d6f690fe.hot-update.js +18 -0
- package/.next/static/webpack/webpack.681ce36f0645d689.hot-update.js +18 -0
- package/.next/static/webpack/webpack.6f00711e3d258954.hot-update.js +18 -0
- package/.next/static/webpack/webpack.81f6646c28a82804.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8522f92ca02de0c8.hot-update.js +30 -0
- package/.next/static/webpack/webpack.8894e91a6b3fd5cb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.893ddc36c19de1ea.hot-update.js +18 -0
- package/.next/static/webpack/webpack.896c5501cdf537b3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8cc442b31ec27e60.hot-update.js +18 -0
- package/.next/static/webpack/webpack.8ed684f639abe58b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.97615cc2d368fba4.hot-update.js +18 -0
- package/.next/static/webpack/webpack.9775f51aeb80d3b2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.9bbf208246a2eebb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.a74f1afad4b7a8a2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.aed2ae614f6605ed.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b4b25d4db23dbc5a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b728482f9b82d921.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b7a42026022db1f3.hot-update.js +18 -0
- package/.next/static/webpack/webpack.b90118a4d57e76ad.hot-update.js +30 -0
- package/.next/static/webpack/webpack.bb4485d5c54b0ed1.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c0a3bb4128bc91cb.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c5880161e6d8c38b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.c91faac87e6e5e7d.hot-update.js +18 -0
- package/.next/static/webpack/webpack.cb281b61855d3afc.hot-update.js +18 -0
- package/.next/static/webpack/webpack.cc723ec7106788b2.hot-update.js +18 -0
- package/.next/static/webpack/webpack.d00ead7a6d6dd27a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.d5492b6ce3aff19a.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e1a0b7850e69b555.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e5533e94660e066c.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e6094793daace46f.hot-update.js +18 -0
- package/.next/static/webpack/webpack.eabe83a6bd680d72.hot-update.js +18 -0
- package/.next/static/webpack/webpack.ef9190246958611b.hot-update.js +18 -0
- package/.next/static/webpack/webpack.f3f79b681eb03ce7.hot-update.js +18 -0
- package/.next/trace +116 -0
- package/.next/types/app/layout.ts +84 -0
- package/.next/types/app/page.ts +84 -0
- package/.next/types/cache-life.d.ts +139 -0
- package/.next/types/package.json +1 -0
- package/.vscode/settings.json +22 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +415 -4
- package/dist/index.mjs +418 -4
- package/global.d.ts +3 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
@@ -1,10 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __create = Object.create;
|
3
3
|
var __defProp = Object.defineProperty;
|
4
|
+
var __defProps = Object.defineProperties;
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
13
|
+
var __spreadValues = (a, b) => {
|
14
|
+
for (var prop in b || (b = {}))
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
17
|
+
if (__getOwnPropSymbols)
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
19
|
+
if (__propIsEnum.call(b, prop))
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
21
|
+
}
|
22
|
+
return a;
|
23
|
+
};
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
8
25
|
var __export = (target, all) => {
|
9
26
|
for (var name in all)
|
10
27
|
__defProp(target, name, { get: all[name], enumerable: true });
|
@@ -30,16 +47,410 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
30
47
|
// src/app/index.ts
|
31
48
|
var app_exports = {};
|
32
49
|
__export(app_exports, {
|
33
|
-
|
50
|
+
PaywithFractal: () => PaywithFractal
|
34
51
|
});
|
35
52
|
module.exports = __toCommonJS(app_exports);
|
36
53
|
|
37
54
|
// src/app/components/Greet.tsx
|
55
|
+
var import_axios = __toESM(require("axios"));
|
38
56
|
var import_react = __toESM(require("react"));
|
39
|
-
function
|
40
|
-
|
57
|
+
function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
58
|
+
const baseUrl = "http://192.168.1.52:8082/";
|
59
|
+
const masterBaseUrl = "http://192.168.1.52:8081/";
|
60
|
+
console.log(name, "name");
|
61
|
+
const [dcToken, setDcToken] = (0, import_react.useState)("");
|
62
|
+
const [error, setError] = (0, import_react.useState)({});
|
63
|
+
const [toggleQr, setToggleQr] = (0, import_react.useState)(false);
|
64
|
+
const [formData, setFormData] = (0, import_react.useState)({
|
65
|
+
name: "John Doe",
|
66
|
+
card_number: "4761 7310 0000 0043",
|
67
|
+
exp_month: "12",
|
68
|
+
exp_year: "2024",
|
69
|
+
cvv: "201",
|
70
|
+
zip: ""
|
71
|
+
});
|
72
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
73
|
+
const handleSubmit = async (e) => {
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
75
|
+
e.preventDefault();
|
76
|
+
const data = {
|
77
|
+
description: "widget payment",
|
78
|
+
amount: amount || "1.00",
|
79
|
+
phone_number: "1234567908",
|
80
|
+
zip: formData.zip,
|
81
|
+
orderId: orderId || "",
|
82
|
+
fractalpayPublicKey: fractalPayClientKey
|
83
|
+
};
|
84
|
+
if (Object.keys(error).length < 1) {
|
85
|
+
try {
|
86
|
+
setLoading(true);
|
87
|
+
const res = await import_axios.default.post(`${baseUrl}create-widget-order`, data, {
|
88
|
+
headers: {
|
89
|
+
"Content-Type": "application/json"
|
90
|
+
}
|
91
|
+
});
|
92
|
+
if (res.data && ((_a = res.data) == null ? void 0 : _a.result)) {
|
93
|
+
console.log("token", (_b = res.data) == null ? void 0 : _b.data);
|
94
|
+
setDcToken((_d = (_c = res.data) == null ? void 0 : _c.data) == null ? void 0 : _d.dctoken);
|
95
|
+
const tokenCallback = async (response) => {
|
96
|
+
var _a2, _b2, _c2;
|
97
|
+
console.log("response for token call back", response);
|
98
|
+
if (response.Error) {
|
99
|
+
alert("if");
|
100
|
+
console.log("Error: ", response);
|
101
|
+
setLoading(false);
|
102
|
+
} else {
|
103
|
+
const headers = {
|
104
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
105
|
+
};
|
106
|
+
const quickData = __spreadValues({
|
107
|
+
name: formData.name,
|
108
|
+
postal_code: formData.zip
|
109
|
+
}, response);
|
110
|
+
try {
|
111
|
+
const resp = await import_axios.default.post(`${masterBaseUrl}quick-pay/${(_b2 = (_a2 = res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.posSalesIdEncode}`, quickData, {
|
112
|
+
headers
|
113
|
+
});
|
114
|
+
setLoading(false);
|
115
|
+
console.log("quick response", resp);
|
116
|
+
if (((_c2 = resp == null ? void 0 : resp.data) == null ? void 0 : _c2.result) && (resp == null ? void 0 : resp.status) === 200) {
|
117
|
+
console.log("Payment success!", resp == null ? void 0 : resp.data);
|
118
|
+
setFormData({
|
119
|
+
name: "John Doe",
|
120
|
+
card_number: "4761 7310 0000 0043",
|
121
|
+
exp_month: "12",
|
122
|
+
exp_year: "2024",
|
123
|
+
cvv: "201",
|
124
|
+
zip: ""
|
125
|
+
});
|
126
|
+
} else {
|
127
|
+
console.log("Payment failed!", resp == null ? void 0 : resp.data);
|
128
|
+
}
|
129
|
+
} catch (error2) {
|
130
|
+
console.log("Error: ", error2);
|
131
|
+
setLoading(false);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
};
|
135
|
+
window == null ? void 0 : window.DatacapWebToken.requestToken((_f = (_e = res.data) == null ? void 0 : _e.data) == null ? void 0 : _f.dctoken, "PaymentForm", tokenCallback);
|
136
|
+
} else {
|
137
|
+
setLoading(false);
|
138
|
+
console.log("res", (_g = res.data) == null ? void 0 : _g.data);
|
139
|
+
}
|
140
|
+
} catch (error2) {
|
141
|
+
setLoading(false);
|
142
|
+
console.log(error2);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
};
|
146
|
+
const handleCardFormat = (numericValue) => {
|
147
|
+
const cleaned = ("" + numericValue).replace(/\D/g, "");
|
148
|
+
const match = cleaned.match(/^(\d{4})(\d{4})(\d{4})(\d{4})$/);
|
149
|
+
if (match) {
|
150
|
+
return `${match[1]} ${match[2]} ${match[3]} ${match[4]}`;
|
151
|
+
}
|
152
|
+
return numericValue;
|
153
|
+
};
|
154
|
+
const handleCardNumberChange = (value) => {
|
155
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), { card_number: "" }));
|
156
|
+
if (value && value.match(/[a-zA-Z]/)) {
|
157
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
158
|
+
card_number: "Invalid input. Please enter only numbers."
|
159
|
+
}));
|
160
|
+
} else if (value.length > 12 && !(window == null ? void 0 : window.DatacapWebToken.validateCardNumber(value == null ? void 0 : value.replaceAll(" ", "")))) {
|
161
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
162
|
+
card_number: "Invalid Card Number"
|
163
|
+
}));
|
164
|
+
} else if (!value.length) {
|
165
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
166
|
+
card_number: "Card Number required"
|
167
|
+
}));
|
168
|
+
} else {
|
169
|
+
setError({});
|
170
|
+
}
|
171
|
+
};
|
172
|
+
const handleMonthChange = (value) => {
|
173
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), { exp_month: "" }));
|
174
|
+
if (/^\d{0,2}$/.test(value) && (value === "" || parseInt(value, 10) >= 1 && parseInt(value, 10) <= 12)) {
|
175
|
+
setError({});
|
176
|
+
} else if (!value.length) {
|
177
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
178
|
+
exp_month: "Month is required"
|
179
|
+
}));
|
180
|
+
} else {
|
181
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
182
|
+
exp_month: "Value should be between 1 and 12"
|
183
|
+
}));
|
184
|
+
}
|
185
|
+
};
|
186
|
+
const handleYearChange = (value) => {
|
187
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), { exp_year: "" }));
|
188
|
+
if (window == null ? void 0 : window.DatacapWebToken.validateExpirationDate(formData.exp_month, value)) {
|
189
|
+
setError({});
|
190
|
+
} else if (!value.length) {
|
191
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
192
|
+
exp_year: "Year is required"
|
193
|
+
}));
|
194
|
+
} else {
|
195
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
196
|
+
exp_year: "Invalid Expiration Date."
|
197
|
+
}));
|
198
|
+
}
|
199
|
+
};
|
200
|
+
const handleCVVChange = (value) => {
|
201
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), { cvv: "" }));
|
202
|
+
if (window == null ? void 0 : window.DatacapWebToken.validateCVV(value)) {
|
203
|
+
setError({});
|
204
|
+
} else if (!value.length) {
|
205
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
206
|
+
cvv: "CVV is required"
|
207
|
+
}));
|
208
|
+
} else {
|
209
|
+
setError((prev) => __spreadProps(__spreadValues({}, prev), {
|
210
|
+
cvv: "Invalid CVV."
|
211
|
+
}));
|
212
|
+
}
|
213
|
+
};
|
214
|
+
const handleChange = (e) => {
|
215
|
+
const token = e.target.getAttribute("data-token") || "";
|
216
|
+
const value = e.target.value;
|
217
|
+
setFormData((prev) => __spreadProps(__spreadValues({}, prev), { [token]: value }));
|
218
|
+
if (token === "card_number") {
|
219
|
+
handleCardNumberChange(value);
|
220
|
+
}
|
221
|
+
if (token === "exp_month") {
|
222
|
+
handleMonthChange(value);
|
223
|
+
}
|
224
|
+
if (token === "exp_year") {
|
225
|
+
handleYearChange(value);
|
226
|
+
}
|
227
|
+
if (token === "cvv") {
|
228
|
+
handleCVVChange(value);
|
229
|
+
}
|
230
|
+
};
|
231
|
+
const handlePay = () => {
|
232
|
+
console.log("pay", name, baseUrl, masterBaseUrl);
|
233
|
+
};
|
234
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "bg-black" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "container bg-black" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "row bg-light no-gutters" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "col-sm-12" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "bd-example bd-example-tabs right-tabs mttabs m-3 " }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "close-pop", style: { display: "none" } }, /* @__PURE__ */ import_react.default.createElement(
|
235
|
+
"svg",
|
236
|
+
{
|
237
|
+
xmlns: "http://www.w3.org/2000/svg",
|
238
|
+
width: 37,
|
239
|
+
height: 37,
|
240
|
+
viewBox: "0 0 21 21"
|
241
|
+
},
|
242
|
+
/* @__PURE__ */ import_react.default.createElement(
|
243
|
+
"path",
|
244
|
+
{
|
245
|
+
fill: "none",
|
246
|
+
stroke: "currentColor",
|
247
|
+
strokeLinecap: "round",
|
248
|
+
strokeLinejoin: "round",
|
249
|
+
d: "m7.5 7.5l6 6m0-6l-6 6"
|
250
|
+
}
|
251
|
+
)
|
252
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "comp-name" }, /* @__PURE__ */ import_react.default.createElement(
|
253
|
+
"img",
|
254
|
+
{
|
255
|
+
src: "https://invoicestaging.skysystemz.com/assets/products/65c49a2740ff1.png",
|
256
|
+
alt: "",
|
257
|
+
className: "client-logo"
|
258
|
+
}
|
259
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react.default.createElement("h1", null, "Pay"), /* @__PURE__ */ import_react.default.createElement(
|
260
|
+
"i",
|
261
|
+
{
|
262
|
+
className: "fa fa-qrcode fa-2x",
|
263
|
+
id: "qrIcon",
|
264
|
+
title: "Show QR Code",
|
265
|
+
onClick: () => setToggleQr(!toggleQr)
|
266
|
+
}
|
267
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { id: "qrCode", style: {
|
268
|
+
display: toggleQr ? "block" : "none"
|
269
|
+
} }, /* @__PURE__ */ import_react.default.createElement(
|
270
|
+
"img",
|
271
|
+
{
|
272
|
+
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABJaSURBVO3BQY7gRhLAQFLo/3+ZO8c8FSCoemwvMsL+YK21LnhYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65IePVP6miknlpGJSualiUjmpOFGZKk5UpopJ5YuKE5WpYlI5qZhU3qiYVKaKSeWkYlI5qXhD5aRiUvmbKr54WGutSx7WWuuSh7XWuuSHyypuUvlNFW+oTCpTxRsqU8UXKlPFicqJylRxonJScVLxhspU8UbFGxX/pIqbVG56WGutSx7WWuuSh7XWuuSHX6byRsVNKlPFpPJGx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pnFRMKlPFpDJVfFExqZxUnKi8oXJSMalMFVPFFyonFVPFpDJVnKhMFVPFpPJFxW96WGutSx7WWuuSh7XWuuSHX1bxmyomlaliUnmj4qRiUpkqJpWTipOKSWWqOFF5Q+WkYqqYVKaKSeVE5QuVqWJSmSreUJkqJpWTikllqpgq/s0e1lrrkoe11rrkYa21LvnhMpV/UsWkMlVMKicqJxVTxRcqU8VJxRsVJypTxRsqX1S8oTJVnKhMFZPKScVUMalMFScqU8WkclIxqfyTHtZa65KHtda65GGttS6xP1hrrQse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21Lvkf/C+HzIiJCzEAAAAASUVORK5CYII=",
|
273
|
+
alt: "QRCode",
|
274
|
+
srcSet: ""
|
275
|
+
}
|
276
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
277
|
+
"form",
|
278
|
+
{
|
279
|
+
id: "PaymentForm",
|
280
|
+
className: "payment-form",
|
281
|
+
onSubmit: handleSubmit
|
282
|
+
},
|
283
|
+
/* @__PURE__ */ import_react.default.createElement(
|
284
|
+
"input",
|
285
|
+
{
|
286
|
+
type: "hidden",
|
287
|
+
id: "dctoken",
|
288
|
+
defaultValue: dcToken,
|
289
|
+
name: "dctoken"
|
290
|
+
}
|
291
|
+
),
|
292
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "amtleft" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "Amount" }, "Payment amount"), /* @__PURE__ */ import_react.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react.default.createElement("span", null, "$"), /* @__PURE__ */ import_react.default.createElement("span", null, " 1.00 "))), /* @__PURE__ */ import_react.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "discover" }))),
|
293
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "NameOnCard" }, "Name on card"), /* @__PURE__ */ import_react.default.createElement(
|
294
|
+
"input",
|
295
|
+
{
|
296
|
+
"data-token": "name",
|
297
|
+
id: "NameOnCard",
|
298
|
+
className: "form-control required",
|
299
|
+
type: "text",
|
300
|
+
maxLength: 100,
|
301
|
+
placeholder: "name",
|
302
|
+
value: formData == null ? void 0 : formData.name,
|
303
|
+
onChange: handleChange
|
304
|
+
}
|
305
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
306
|
+
"span",
|
307
|
+
{
|
308
|
+
id: "NameOnCard-error",
|
309
|
+
style: { color: "red" }
|
310
|
+
}
|
311
|
+
)),
|
312
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react.default.createElement(
|
313
|
+
"input",
|
314
|
+
{
|
315
|
+
"data-token": "card_number",
|
316
|
+
className: "null card-image form-control required",
|
317
|
+
type: "text",
|
318
|
+
maxLength: 19,
|
319
|
+
placeholder: "0000 0000 0000 0000",
|
320
|
+
value: handleCardFormat(formData == null ? void 0 : formData.card_number),
|
321
|
+
onChange: handleChange
|
322
|
+
}
|
323
|
+
), error.card_number && /* @__PURE__ */ import_react.default.createElement(
|
324
|
+
"span",
|
325
|
+
{
|
326
|
+
id: "card_number-error",
|
327
|
+
style: { color: "red" }
|
328
|
+
},
|
329
|
+
error.card_number
|
330
|
+
)),
|
331
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react.default.createElement(
|
332
|
+
"input",
|
333
|
+
{
|
334
|
+
"data-token": "exp_month",
|
335
|
+
className: "form-control required",
|
336
|
+
type: "text",
|
337
|
+
placeholder: "MM",
|
338
|
+
maxLength: 2,
|
339
|
+
value: formData == null ? void 0 : formData.exp_month,
|
340
|
+
onChange: handleChange
|
341
|
+
}
|
342
|
+
), error.exp_month && /* @__PURE__ */ import_react.default.createElement(
|
343
|
+
"span",
|
344
|
+
{
|
345
|
+
id: "exp_month-error",
|
346
|
+
style: { color: "red" }
|
347
|
+
},
|
348
|
+
error.exp_month
|
349
|
+
)),
|
350
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react.default.createElement(
|
351
|
+
"input",
|
352
|
+
{
|
353
|
+
"data-token": "exp_year",
|
354
|
+
className: "form-control required",
|
355
|
+
type: "text",
|
356
|
+
placeholder: "YYYY",
|
357
|
+
maxLength: 4,
|
358
|
+
value: formData == null ? void 0 : formData.exp_year,
|
359
|
+
onChange: handleChange
|
360
|
+
}
|
361
|
+
), error.exp_year && /* @__PURE__ */ import_react.default.createElement(
|
362
|
+
"span",
|
363
|
+
{
|
364
|
+
id: "exp_year-error",
|
365
|
+
style: { color: "red" }
|
366
|
+
},
|
367
|
+
error.exp_year
|
368
|
+
)),
|
369
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react.default.createElement(
|
370
|
+
"input",
|
371
|
+
{
|
372
|
+
"data-token": "cvv",
|
373
|
+
className: "form-control required",
|
374
|
+
type: "text",
|
375
|
+
maxLength: 4,
|
376
|
+
placeholder: "CVC",
|
377
|
+
value: formData == null ? void 0 : formData.cvv,
|
378
|
+
onChange: handleChange
|
379
|
+
}
|
380
|
+
), /* @__PURE__ */ import_react.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" })), error.cvv && /* @__PURE__ */ import_react.default.createElement(
|
381
|
+
"span",
|
382
|
+
{
|
383
|
+
id: "cvv-error",
|
384
|
+
style: { color: "red" }
|
385
|
+
},
|
386
|
+
error.cvv
|
387
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))),
|
388
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "ZIPCode" }, "Postal code"), /* @__PURE__ */ import_react.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react.default.createElement(
|
389
|
+
"input",
|
390
|
+
{
|
391
|
+
id: "ZIPCode",
|
392
|
+
"data-token": "zip",
|
393
|
+
className: "form-control required",
|
394
|
+
type: "text",
|
395
|
+
maxLength: 7,
|
396
|
+
placeholder: "000000",
|
397
|
+
value: formData == null ? void 0 : formData.zip,
|
398
|
+
onChange: handleChange
|
399
|
+
}
|
400
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
401
|
+
"a",
|
402
|
+
{
|
403
|
+
tabIndex: 0,
|
404
|
+
role: "button",
|
405
|
+
"data-toggle": "popover",
|
406
|
+
"data-trigger": "focus",
|
407
|
+
"data-placement": "left",
|
408
|
+
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
409
|
+
},
|
410
|
+
/* @__PURE__ */ import_react.default.createElement("i", { className: "fa fa-question-circle" })
|
411
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
412
|
+
"span",
|
413
|
+
{
|
414
|
+
id: "ZIPCode-error",
|
415
|
+
style: { color: "red", display: "none" }
|
416
|
+
},
|
417
|
+
"This field is required"
|
418
|
+
))),
|
419
|
+
/* @__PURE__ */ import_react.default.createElement(
|
420
|
+
"button",
|
421
|
+
{
|
422
|
+
id: "PayButton",
|
423
|
+
className: "btn btn-block btn-success submit-button",
|
424
|
+
type: "submit"
|
425
|
+
},
|
426
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "submit-button-lock" }),
|
427
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "align-middle" }, "Pay $1.00")
|
428
|
+
)
|
429
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react.default.createElement(
|
430
|
+
"svg",
|
431
|
+
{
|
432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
433
|
+
width: 20,
|
434
|
+
height: 20,
|
435
|
+
viewBox: "0 0 26 26"
|
436
|
+
},
|
437
|
+
/* @__PURE__ */ import_react.default.createElement(
|
438
|
+
"path",
|
439
|
+
{
|
440
|
+
fill: "currentColor",
|
441
|
+
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"
|
442
|
+
}
|
443
|
+
)
|
444
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react.default.createElement(
|
445
|
+
"img",
|
446
|
+
{
|
447
|
+
src: "https://ui.fractalpay.com/favicon.ico",
|
448
|
+
alt: "Fractal logo",
|
449
|
+
className: "powered-logo"
|
450
|
+
}
|
451
|
+
)))))))))));
|
41
452
|
}
|
42
453
|
// Annotate the CommonJS export names for ESM import in node:
|
43
454
|
0 && (module.exports = {
|
44
|
-
|
455
|
+
PaywithFractal
|
45
456
|
});
|