@fractalpay/fractalpay-next 0.0.232 → 0.1.0
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 +58 -16
- package/dist/index.js +4251 -2903
- package/dist/index.js.map +1 -1
- package/global.d.ts +1 -0
- package/next.config.ts +1 -0
- package/package.json +8 -3
- package/types/apple-pay.d.ts +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
interface Props$
|
|
3
|
+
interface Props$8 {
|
|
4
4
|
merchantPublicKey: string;
|
|
5
5
|
customerId?: string;
|
|
6
6
|
orderID?: string;
|
|
@@ -18,9 +18,9 @@ interface Props$7 {
|
|
|
18
18
|
sessionToken?: string;
|
|
19
19
|
showSurcharge?: number;
|
|
20
20
|
}
|
|
21
|
-
declare function RequestPayment(props: Props$
|
|
21
|
+
declare function RequestPayment(props: Props$8): React.JSX.Element;
|
|
22
22
|
|
|
23
|
-
interface Props$
|
|
23
|
+
interface Props$7 {
|
|
24
24
|
merchantPublicKey: string;
|
|
25
25
|
customerId?: string;
|
|
26
26
|
orderID?: string;
|
|
@@ -36,9 +36,9 @@ interface Props$6 {
|
|
|
36
36
|
require_3ds?: boolean;
|
|
37
37
|
sessionToken?: string;
|
|
38
38
|
}
|
|
39
|
-
declare function RequestPreAuthPayment(props: Props$
|
|
39
|
+
declare function RequestPreAuthPayment(props: Props$7): React.JSX.Element;
|
|
40
40
|
|
|
41
|
-
type Props$
|
|
41
|
+
type Props$6 = {
|
|
42
42
|
merchantPublicKey: string;
|
|
43
43
|
customerId?: string;
|
|
44
44
|
orderID?: string;
|
|
@@ -50,10 +50,15 @@ type Props$5 = {
|
|
|
50
50
|
pass_fee?: boolean;
|
|
51
51
|
isReader?: boolean;
|
|
52
52
|
sessionToken?: string;
|
|
53
|
+
bankFeeAmount?: string;
|
|
54
|
+
isPreAuth?: boolean;
|
|
55
|
+
preauthId?: string;
|
|
56
|
+
onTriggerPay?: (fn: () => void) => void;
|
|
57
|
+
showButton?: boolean;
|
|
53
58
|
};
|
|
54
|
-
declare function GetPaymentPage(props: Props$
|
|
59
|
+
declare function GetPaymentPage(props: Props$6): React.JSX.Element;
|
|
55
60
|
|
|
56
|
-
type Props$
|
|
61
|
+
type Props$5 = {
|
|
57
62
|
merchantPublicKey: string;
|
|
58
63
|
customerId?: string;
|
|
59
64
|
orderID?: string;
|
|
@@ -69,15 +74,22 @@ type Props$4 = {
|
|
|
69
74
|
showButton?: boolean;
|
|
70
75
|
sessionToken?: string;
|
|
71
76
|
};
|
|
72
|
-
|
|
77
|
+
/**
|
|
78
|
+
* PreAuthPayment is now a thin alias over the unified GetPaymentPage widget:
|
|
79
|
+
* passing `isPreAuth` runs the authorize/hold flow (authorize-by-card /
|
|
80
|
+
* fractal-charge-preauth / charge-preauth) instead of a charge, hides the bank
|
|
81
|
+
* tab, and switches the copy to "Authorize". Kept as a separate export so existing
|
|
82
|
+
* host integrations that import PreAuthPayment keep working unchanged.
|
|
83
|
+
*/
|
|
84
|
+
declare function PreAuthPayment(props: Props$5): React.JSX.Element;
|
|
73
85
|
|
|
74
|
-
type Props$
|
|
86
|
+
type Props$4 = {
|
|
75
87
|
merchantPublicKey: string;
|
|
76
88
|
customerId?: string;
|
|
77
89
|
};
|
|
78
|
-
declare function AddCardEasyPay(props: Props$
|
|
90
|
+
declare function AddCardEasyPay(props: Props$4): React.JSX.Element;
|
|
79
91
|
|
|
80
|
-
type Props$
|
|
92
|
+
type Props$3 = {
|
|
81
93
|
session_token: string;
|
|
82
94
|
callback: (resp: any) => void;
|
|
83
95
|
isloading: boolean;
|
|
@@ -91,10 +103,12 @@ type Props$2 = {
|
|
|
91
103
|
savebtnClass: string;
|
|
92
104
|
inputClass: string;
|
|
93
105
|
isDual?: boolean;
|
|
106
|
+
customCSS?: string;
|
|
107
|
+
height?: string;
|
|
94
108
|
};
|
|
95
|
-
declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$
|
|
109
|
+
declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual, customCSS, height }: Props$3): React.JSX.Element;
|
|
96
110
|
|
|
97
|
-
type Props$
|
|
111
|
+
type Props$2 = {
|
|
98
112
|
merchantPublicKey: string;
|
|
99
113
|
customerId?: string;
|
|
100
114
|
orderID?: string;
|
|
@@ -109,7 +123,32 @@ type Props$1 = {
|
|
|
109
123
|
allowPartial: boolean;
|
|
110
124
|
cashDiscount?: string;
|
|
111
125
|
};
|
|
112
|
-
declare function PartialPayment(props: Props$
|
|
126
|
+
declare function PartialPayment(props: Props$2): React.JSX.Element;
|
|
127
|
+
|
|
128
|
+
type Props$1 = {
|
|
129
|
+
session_token: string;
|
|
130
|
+
surcharge: string;
|
|
131
|
+
amount: string;
|
|
132
|
+
submitBtnText?: string;
|
|
133
|
+
submitBtnClass?: string;
|
|
134
|
+
customerId?: string;
|
|
135
|
+
callback: (resp: any) => void;
|
|
136
|
+
merchantName: string;
|
|
137
|
+
isPreAuth: boolean;
|
|
138
|
+
submitBtnIcon?: any;
|
|
139
|
+
isRequest?: boolean;
|
|
140
|
+
pass_fee?: boolean;
|
|
141
|
+
pass_fee_amount?: number | string;
|
|
142
|
+
bankAmount: string;
|
|
143
|
+
bankSurcharge?: string;
|
|
144
|
+
require3ds: boolean;
|
|
145
|
+
autoTrigger: boolean;
|
|
146
|
+
isPartial?: boolean;
|
|
147
|
+
partialRef?: string;
|
|
148
|
+
customCSS?: string;
|
|
149
|
+
disableSubmitBtn?: boolean;
|
|
150
|
+
};
|
|
151
|
+
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, customCSS, disableSubmitBtn }: Props$1) => React.JSX.Element;
|
|
113
152
|
|
|
114
153
|
type Props = {
|
|
115
154
|
session_token: string;
|
|
@@ -131,7 +170,10 @@ type Props = {
|
|
|
131
170
|
autoTrigger: boolean;
|
|
132
171
|
isPartial?: boolean;
|
|
133
172
|
partialRef?: string;
|
|
173
|
+
onSubmit?: (submitFn: () => void) => void;
|
|
174
|
+
onLoad: boolean;
|
|
175
|
+
customCSS?: string;
|
|
134
176
|
};
|
|
135
|
-
declare const
|
|
177
|
+
declare const EmbeddedCheckout: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds, autoTrigger, isPartial, bankSurcharge, partialRef, onSubmit, onLoad, customCSS }: Props) => React.JSX.Element;
|
|
136
178
|
|
|
137
|
-
export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
|
|
179
|
+
export { AddCardEasyPay as AddCard, CardOnFile, EmbeddedCheckout, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
|