@fractalpay/fractalpay-next-dev 0.0.210 → 0.0.212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +8406 -38
- package/dist/index.js.map +1 -0
- package/package.json +12 -15
- package/types/fractal.d.ts +11 -0
- package/dist/index.d.mts +0 -138
- package/dist/index.mjs +0 -3013
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fractalpay/fractalpay-next-dev",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.212",
|
|
4
4
|
"private": false,
|
|
5
|
+
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"dev": "next dev -p 4001",
|
|
7
8
|
"build": "next build",
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@stripe/react-stripe-js": "^5.3.0",
|
|
14
15
|
"@stripe/stripe-js": "^8.3.0",
|
|
15
|
-
"@types/yup": "^0.29.14",
|
|
16
16
|
"axios": "^1.8.1",
|
|
17
17
|
"bootstrap": "^5.3.3",
|
|
18
18
|
"credit-card-type": "^10.0.1",
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"sweetalert2": "^11.22.0",
|
|
30
30
|
"yup": "^1.6.1"
|
|
31
31
|
},
|
|
32
|
-
"
|
|
33
|
-
"next": "15.0.5",
|
|
32
|
+
"peerDependencies": {
|
|
34
33
|
"react": ">=18.0.0 <20.0.0",
|
|
35
34
|
"react-dom": ">=18.0.0 <20.0.0"
|
|
36
35
|
},
|
|
@@ -41,27 +40,25 @@
|
|
|
41
40
|
"@types/react": "^18",
|
|
42
41
|
"@types/react-dom": "^18",
|
|
43
42
|
"autoprefixer": "^10.4.20",
|
|
44
|
-
"credit-card-type": "^10.0.1",
|
|
45
43
|
"eslint": "^8",
|
|
46
44
|
"eslint-config-next": "15.0.3",
|
|
47
45
|
"next": "^15.0.5",
|
|
48
46
|
"react": "^18.3.1",
|
|
49
|
-
"react-bs-datatable": "^3.15.0",
|
|
50
|
-
"react-datepicker": "^7.5.0",
|
|
51
47
|
"react-dom": "^18.3.1",
|
|
52
|
-
"react-toastify": "^10.0.6",
|
|
53
48
|
"tsup": "^8.4.0",
|
|
54
49
|
"typescript": "^5"
|
|
55
50
|
},
|
|
51
|
+
"main": "dist/index.js",
|
|
52
|
+
"module": "dist/index.js",
|
|
53
|
+
"types": "dist/index.d.ts",
|
|
54
|
+
"exports": {
|
|
55
|
+
".": {
|
|
56
|
+
"import": "./dist/index.js"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
56
59
|
"author": "Mukul",
|
|
57
60
|
"license": "MIT",
|
|
58
|
-
"keywords": [
|
|
59
|
-
"nextjs",
|
|
60
|
-
"next",
|
|
61
|
-
"typescript",
|
|
62
|
-
"tailwindcss"
|
|
63
|
-
],
|
|
64
|
-
"main": "dist/index.js",
|
|
61
|
+
"keywords": ["nextjs", "next", "typescript", "tailwindcss"],
|
|
65
62
|
"publishConfig": {
|
|
66
63
|
"access": "public"
|
|
67
64
|
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props$7 {
|
|
4
|
-
merchantPublicKey: string;
|
|
5
|
-
customerId?: string;
|
|
6
|
-
orderID?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
from?: string;
|
|
11
|
-
amount: string;
|
|
12
|
-
webname?: string;
|
|
13
|
-
discount?: string;
|
|
14
|
-
tax?: string;
|
|
15
|
-
surcharge?: string;
|
|
16
|
-
require_3ds?: boolean;
|
|
17
|
-
pass_fee?: boolean;
|
|
18
|
-
sessionToken?: string;
|
|
19
|
-
showSurcharge?: number;
|
|
20
|
-
}
|
|
21
|
-
declare function RequestPayment(props: Props$7): React.JSX.Element;
|
|
22
|
-
|
|
23
|
-
interface Props$6 {
|
|
24
|
-
merchantPublicKey: string;
|
|
25
|
-
customerId?: string;
|
|
26
|
-
orderID?: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
phone?: string;
|
|
30
|
-
from?: string;
|
|
31
|
-
amount: string;
|
|
32
|
-
webname?: string;
|
|
33
|
-
discount?: string;
|
|
34
|
-
tax?: string;
|
|
35
|
-
surcharge?: string;
|
|
36
|
-
require_3ds?: boolean;
|
|
37
|
-
sessionToken?: string;
|
|
38
|
-
}
|
|
39
|
-
declare function RequestPreAuthPayment(props: Props$6): React.JSX.Element;
|
|
40
|
-
|
|
41
|
-
type Props$5 = {
|
|
42
|
-
merchantPublicKey: string;
|
|
43
|
-
customerId?: string;
|
|
44
|
-
orderID?: string;
|
|
45
|
-
from?: string;
|
|
46
|
-
amount: string;
|
|
47
|
-
discount?: string;
|
|
48
|
-
tax?: string;
|
|
49
|
-
surcharge?: string;
|
|
50
|
-
pass_fee?: boolean;
|
|
51
|
-
isReader?: boolean;
|
|
52
|
-
sessionToken?: string;
|
|
53
|
-
};
|
|
54
|
-
declare function GetPaymentPage(props: Props$5): React.JSX.Element;
|
|
55
|
-
|
|
56
|
-
type Props$4 = {
|
|
57
|
-
merchantPublicKey: string;
|
|
58
|
-
customerId?: string;
|
|
59
|
-
orderID?: string;
|
|
60
|
-
from?: string;
|
|
61
|
-
amount: string;
|
|
62
|
-
discount?: string;
|
|
63
|
-
tax?: string;
|
|
64
|
-
surcharge?: string;
|
|
65
|
-
pass_fee?: boolean;
|
|
66
|
-
isReader?: boolean;
|
|
67
|
-
onTriggerPay?: (fn: () => void) => void;
|
|
68
|
-
preauthId?: string;
|
|
69
|
-
showButton?: boolean;
|
|
70
|
-
sessionToken?: string;
|
|
71
|
-
};
|
|
72
|
-
declare function PreAuthPayment({ showButton, ...props }: Props$4): React.JSX.Element;
|
|
73
|
-
|
|
74
|
-
type Props$3 = {
|
|
75
|
-
merchantPublicKey: string;
|
|
76
|
-
customerId?: string;
|
|
77
|
-
};
|
|
78
|
-
declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
|
|
79
|
-
|
|
80
|
-
type Props$2 = {
|
|
81
|
-
session_token: string;
|
|
82
|
-
callback: (resp: any) => void;
|
|
83
|
-
isloading: boolean;
|
|
84
|
-
onCancel: () => void;
|
|
85
|
-
showChecks: boolean;
|
|
86
|
-
merchantName: string;
|
|
87
|
-
signCheckbox: boolean;
|
|
88
|
-
checkedSignCheckbox: boolean;
|
|
89
|
-
onCheckSign: (val: boolean) => void;
|
|
90
|
-
cancelbtnClass: string;
|
|
91
|
-
savebtnClass: string;
|
|
92
|
-
inputClass: string;
|
|
93
|
-
isDual?: boolean;
|
|
94
|
-
};
|
|
95
|
-
declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$2): React.JSX.Element;
|
|
96
|
-
|
|
97
|
-
type Props$1 = {
|
|
98
|
-
merchantPublicKey: string;
|
|
99
|
-
customerId?: string;
|
|
100
|
-
orderID?: string;
|
|
101
|
-
from?: string;
|
|
102
|
-
amount: string;
|
|
103
|
-
discount?: string;
|
|
104
|
-
tax?: string;
|
|
105
|
-
surcharge?: string;
|
|
106
|
-
pass_fee?: boolean;
|
|
107
|
-
orderGuid: string;
|
|
108
|
-
onTriggerPay?: (fn: () => void) => void;
|
|
109
|
-
allowPartial: boolean;
|
|
110
|
-
cashDiscount?: string;
|
|
111
|
-
};
|
|
112
|
-
declare function PartialPayment(props: Props$1): React.JSX.Element;
|
|
113
|
-
|
|
114
|
-
type Props = {
|
|
115
|
-
session_token: string;
|
|
116
|
-
surcharge: string;
|
|
117
|
-
amount: string;
|
|
118
|
-
submitBtnText?: string;
|
|
119
|
-
submitBtnClass?: string;
|
|
120
|
-
customerId?: string;
|
|
121
|
-
callback: (resp: any) => void;
|
|
122
|
-
merchantName: string;
|
|
123
|
-
isPreAuth: boolean;
|
|
124
|
-
submitBtnIcon?: any;
|
|
125
|
-
isRequest?: boolean;
|
|
126
|
-
pass_fee?: boolean;
|
|
127
|
-
pass_fee_amount?: number | string;
|
|
128
|
-
bankAmount: string;
|
|
129
|
-
bankSurcharge?: string;
|
|
130
|
-
require3ds: boolean;
|
|
131
|
-
autoTrigger: boolean;
|
|
132
|
-
isPartial?: boolean;
|
|
133
|
-
partialRef?: string;
|
|
134
|
-
onTriggerPay?: (fn: (sessionToken: string) => void) => void;
|
|
135
|
-
};
|
|
136
|
-
declare const PaymentWidget: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds, autoTrigger, isPartial, bankSurcharge, partialRef, onTriggerPay }: Props) => React.JSX.Element;
|
|
137
|
-
|
|
138
|
-
export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
|