@fractalpay/fractalpay-next-dev 0.0.205 → 0.0.207

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.
@@ -0,0 +1,138 @@
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: () => 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 };
package/dist/index.d.ts CHANGED
@@ -131,7 +131,8 @@ type Props = {
131
131
  autoTrigger: boolean;
132
132
  isPartial?: boolean;
133
133
  partialRef?: string;
134
+ onTriggerPay?: (fn: () => void) => void;
134
135
  };
135
- 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 }: Props) => React.JSX.Element;
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;
136
137
 
137
138
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };