@fractalpay/fractalpay-next-dev 0.0.234 → 0.0.236

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;
@@ -51,9 +51,9 @@ type Props$5 = {
51
51
  isReader?: boolean;
52
52
  sessionToken?: string;
53
53
  };
54
- declare function GetPaymentPage(props: Props$5): React.JSX.Element;
54
+ declare function GetPaymentPage(props: Props$6): React.JSX.Element;
55
55
 
56
- type Props$4 = {
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$4): React.JSX.Element;
72
+ declare function PreAuthPayment({ showButton, ...props }: Props$5): React.JSX.Element;
73
73
 
74
- type Props$3 = {
74
+ type Props$4 = {
75
75
  merchantPublicKey: string;
76
76
  customerId?: string;
77
77
  };
78
- declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
78
+ declare function AddCardEasyPay(props: Props$4): React.JSX.Element;
79
79
 
80
- type Props$2 = {
80
+ type Props$3 = {
81
81
  session_token: string;
82
82
  callback: (resp: any) => void;
83
83
  isloading: boolean;
@@ -92,9 +92,9 @@ type Props$2 = {
92
92
  inputClass: string;
93
93
  isDual?: boolean;
94
94
  };
95
- 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;
96
96
 
97
- type Props$1 = {
97
+ type Props$2 = {
98
98
  merchantPublicKey: string;
99
99
  customerId?: string;
100
100
  orderID?: string;
@@ -109,7 +109,30 @@ type Props$1 = {
109
109
  allowPartial: boolean;
110
110
  cashDiscount?: string;
111
111
  };
112
- 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;
113
136
 
114
137
  type Props = {
115
138
  session_token: string;
@@ -131,7 +154,10 @@ type Props = {
131
154
  autoTrigger: boolean;
132
155
  isPartial?: boolean;
133
156
  partialRef?: string;
157
+ onSubmit?: (submitFn: () => void) => void;
158
+ onLoad: boolean;
159
+ customeCSS?: string;
134
160
  };
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;
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, customeCSS }: Props) => React.JSX.Element;
136
162
 
137
- export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
163
+ export { AddCardEasyPay as AddCard, CardOnFile, EmbeddedCheckout, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };