@fractalpay/fractalpay-next-dev 0.0.259 → 0.0.261
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 +44 -16
- package/dist/index.js +1854 -524
- package/dist/index.js.map +1 -1
- package/global.d.ts +1 -0
- package/package.json +1 -1
- 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;
|
|
@@ -51,9 +51,9 @@ type Props$5 = {
|
|
|
51
51
|
isReader?: boolean;
|
|
52
52
|
sessionToken?: string;
|
|
53
53
|
};
|
|
54
|
-
declare function GetPaymentPage(props: Props$
|
|
54
|
+
declare function GetPaymentPage(props: Props$6): React.JSX.Element;
|
|
55
55
|
|
|
56
|
-
type Props$
|
|
56
|
+
type Props$5 = {
|
|
57
57
|
merchantPublicKey: string;
|
|
58
58
|
customerId?: string;
|
|
59
59
|
orderID?: string;
|
|
@@ -69,15 +69,15 @@ type Props$4 = {
|
|
|
69
69
|
showButton?: boolean;
|
|
70
70
|
sessionToken?: string;
|
|
71
71
|
};
|
|
72
|
-
declare function PreAuthPayment({ showButton, ...props }: Props$
|
|
72
|
+
declare function PreAuthPayment({ showButton, ...props }: Props$5): React.JSX.Element;
|
|
73
73
|
|
|
74
|
-
type Props$
|
|
74
|
+
type Props$4 = {
|
|
75
75
|
merchantPublicKey: string;
|
|
76
76
|
customerId?: string;
|
|
77
77
|
};
|
|
78
|
-
declare function AddCardEasyPay(props: Props$
|
|
78
|
+
declare function AddCardEasyPay(props: Props$4): React.JSX.Element;
|
|
79
79
|
|
|
80
|
-
type Props$
|
|
80
|
+
type Props$3 = {
|
|
81
81
|
session_token: string;
|
|
82
82
|
callback: (resp: any) => void;
|
|
83
83
|
isloading: boolean;
|
|
@@ -92,10 +92,11 @@ type Props$2 = {
|
|
|
92
92
|
inputClass: string;
|
|
93
93
|
isDual?: boolean;
|
|
94
94
|
customCSS?: string;
|
|
95
|
+
height?: string;
|
|
95
96
|
};
|
|
96
|
-
declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual, customCSS }: Props$
|
|
97
|
+
declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual, customCSS, height }: Props$3): React.JSX.Element;
|
|
97
98
|
|
|
98
|
-
type Props$
|
|
99
|
+
type Props$2 = {
|
|
99
100
|
merchantPublicKey: string;
|
|
100
101
|
customerId?: string;
|
|
101
102
|
orderID?: string;
|
|
@@ -110,7 +111,31 @@ type Props$1 = {
|
|
|
110
111
|
allowPartial: boolean;
|
|
111
112
|
cashDiscount?: string;
|
|
112
113
|
};
|
|
113
|
-
declare function PartialPayment(props: Props$
|
|
114
|
+
declare function PartialPayment(props: Props$2): React.JSX.Element;
|
|
115
|
+
|
|
116
|
+
type Props$1 = {
|
|
117
|
+
session_token: string;
|
|
118
|
+
surcharge: string;
|
|
119
|
+
amount: string;
|
|
120
|
+
submitBtnText?: string;
|
|
121
|
+
submitBtnClass?: string;
|
|
122
|
+
customerId?: string;
|
|
123
|
+
callback: (resp: any) => void;
|
|
124
|
+
merchantName: string;
|
|
125
|
+
isPreAuth: boolean;
|
|
126
|
+
submitBtnIcon?: any;
|
|
127
|
+
isRequest?: boolean;
|
|
128
|
+
pass_fee?: boolean;
|
|
129
|
+
pass_fee_amount?: number | string;
|
|
130
|
+
bankAmount: string;
|
|
131
|
+
bankSurcharge?: string;
|
|
132
|
+
require3ds: boolean;
|
|
133
|
+
autoTrigger: boolean;
|
|
134
|
+
isPartial?: boolean;
|
|
135
|
+
partialRef?: string;
|
|
136
|
+
customCSS?: string;
|
|
137
|
+
};
|
|
138
|
+
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 }: Props$1) => React.JSX.Element;
|
|
114
139
|
|
|
115
140
|
type Props = {
|
|
116
141
|
session_token: string;
|
|
@@ -132,7 +157,10 @@ type Props = {
|
|
|
132
157
|
autoTrigger: boolean;
|
|
133
158
|
isPartial?: boolean;
|
|
134
159
|
partialRef?: string;
|
|
160
|
+
onSubmit?: (submitFn: () => void) => void;
|
|
161
|
+
onLoad: boolean;
|
|
162
|
+
customCSS?: string;
|
|
135
163
|
};
|
|
136
|
-
declare const
|
|
164
|
+
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;
|
|
137
165
|
|
|
138
|
-
export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
|
|
166
|
+
export { AddCardEasyPay as AddCard, CardOnFile, EmbeddedCheckout, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
|