@fractalpay/fractalpay-next-dev 0.0.251 → 0.0.253

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- interface Props$7 {
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$7): React.JSX.Element;
21
+ declare function RequestPayment(props: Props$8): React.JSX.Element;
22
22
 
23
- interface Props$6 {
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$6): React.JSX.Element;
39
+ declare function RequestPreAuthPayment(props: Props$7): React.JSX.Element;
40
40
 
41
- type Props$5 = {
41
+ type Props$6 = {
42
42
  merchantPublicKey: string;
43
43
  customerId?: string;
44
44
  orderID?: string;
@@ -50,11 +50,10 @@ type Props$5 = {
50
50
  pass_fee?: boolean;
51
51
  isReader?: boolean;
52
52
  sessionToken?: string;
53
- bankFeeAmount?: string;
54
53
  };
55
- declare function GetPaymentPage(props: Props$5): React.JSX.Element;
54
+ declare function GetPaymentPage(props: Props$6): React.JSX.Element;
56
55
 
57
- type Props$4 = {
56
+ type Props$5 = {
58
57
  merchantPublicKey: string;
59
58
  customerId?: string;
60
59
  orderID?: string;
@@ -70,15 +69,15 @@ type Props$4 = {
70
69
  showButton?: boolean;
71
70
  sessionToken?: string;
72
71
  };
73
- declare function PreAuthPayment({ showButton, ...props }: Props$4): React.JSX.Element;
72
+ declare function PreAuthPayment({ showButton, ...props }: Props$5): React.JSX.Element;
74
73
 
75
- type Props$3 = {
74
+ type Props$4 = {
76
75
  merchantPublicKey: string;
77
76
  customerId?: string;
78
77
  };
79
- declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
78
+ declare function AddCardEasyPay(props: Props$4): React.JSX.Element;
80
79
 
81
- type Props$2 = {
80
+ type Props$3 = {
82
81
  session_token: string;
83
82
  callback: (resp: any) => void;
84
83
  isloading: boolean;
@@ -93,9 +92,9 @@ type Props$2 = {
93
92
  inputClass: string;
94
93
  isDual?: boolean;
95
94
  };
96
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$2): React.JSX.Element;
95
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$3): React.JSX.Element;
97
96
 
98
- type Props$1 = {
97
+ type Props$2 = {
99
98
  merchantPublicKey: string;
100
99
  customerId?: string;
101
100
  orderID?: string;
@@ -110,7 +109,30 @@ type Props$1 = {
110
109
  allowPartial: boolean;
111
110
  cashDiscount?: string;
112
111
  };
113
- declare function PartialPayment(props: Props$1): React.JSX.Element;
112
+ declare function PartialPayment(props: Props$2): React.JSX.Element;
113
+
114
+ type Props$1 = {
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
+ };
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$1) => React.JSX.Element;
114
136
 
115
137
  type Props = {
116
138
  session_token: string;
@@ -132,7 +154,10 @@ type Props = {
132
154
  autoTrigger: boolean;
133
155
  isPartial?: boolean;
134
156
  partialRef?: string;
157
+ onSubmit?: (submitFn: () => void) => void;
158
+ onLoad: boolean;
159
+ customCSS?: string;
135
160
  };
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 }: Props) => React.JSX.Element;
161
+ 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
162
 
138
- export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
163
+ export { AddCardEasyPay as AddCard, CardOnFile, EmbeddedCheckout, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };