@fractalpay/fractalpay-next-test 0.0.21 → 0.0.23

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.mts CHANGED
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import React from 'react';
3
2
 
4
- interface Props$6 {
3
+ interface Props$7 {
5
4
  merchantPublicKey: string;
6
5
  customerId?: string;
7
6
  orderID?: string;
@@ -16,10 +15,12 @@ interface Props$6 {
16
15
  surcharge?: string;
17
16
  require_3ds?: boolean;
18
17
  pass_fee?: boolean;
18
+ sessionToken?: string;
19
+ showSurcharge?: number;
19
20
  }
20
- declare function RequestPayment(props: Props$6): React__default.JSX.Element;
21
+ declare function RequestPayment(props: Props$7): React.JSX.Element;
21
22
 
22
- interface Props$5 {
23
+ interface Props$6 {
23
24
  merchantPublicKey: string;
24
25
  customerId?: string;
25
26
  orderID?: string;
@@ -33,10 +34,11 @@ interface Props$5 {
33
34
  tax?: string;
34
35
  surcharge?: string;
35
36
  require_3ds?: boolean;
37
+ sessionToken?: string;
36
38
  }
37
- declare function RequestPreAuthPayment(props: Props$5): React__default.JSX.Element;
39
+ declare function RequestPreAuthPayment(props: Props$6): React.JSX.Element;
38
40
 
39
- type Props$4 = {
41
+ type Props$5 = {
40
42
  merchantPublicKey: string;
41
43
  customerId?: string;
42
44
  orderID?: string;
@@ -47,10 +49,11 @@ type Props$4 = {
47
49
  surcharge?: string;
48
50
  pass_fee?: boolean;
49
51
  isReader?: boolean;
52
+ sessionToken?: string;
50
53
  };
51
- declare function GetPaymentPage(props: Props$4): React__default.JSX.Element;
54
+ declare function GetPaymentPage(props: Props$5): React.JSX.Element;
52
55
 
53
- type Props$3 = {
56
+ type Props$4 = {
54
57
  merchantPublicKey: string;
55
58
  customerId?: string;
56
59
  orderID?: string;
@@ -61,16 +64,20 @@ type Props$3 = {
61
64
  surcharge?: string;
62
65
  pass_fee?: boolean;
63
66
  isReader?: boolean;
67
+ onTriggerPay?: (fn: () => void) => void;
68
+ preauthId?: string;
69
+ showButton?: boolean;
70
+ sessionToken?: string;
64
71
  };
65
- declare function PreAuthPayment(props: Props$3): React__default.JSX.Element;
72
+ declare function PreAuthPayment({ showButton, ...props }: Props$4): React.JSX.Element;
66
73
 
67
- type Props$2 = {
74
+ type Props$3 = {
68
75
  merchantPublicKey: string;
69
76
  customerId?: string;
70
77
  };
71
- declare function AddCardEasyPay(props: Props$2): React__default.JSX.Element;
78
+ declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
72
79
 
73
- type Props$1 = {
80
+ type Props$2 = {
74
81
  session_token: string;
75
82
  callback: (resp: any) => void;
76
83
  isloading: boolean;
@@ -85,9 +92,9 @@ type Props$1 = {
85
92
  inputClass: string;
86
93
  isDual?: boolean;
87
94
  };
88
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$1): React__default.JSX.Element;
95
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$2): React.JSX.Element;
89
96
 
90
- type Props = {
97
+ type Props$1 = {
91
98
  merchantPublicKey: string;
92
99
  customerId?: string;
93
100
  orderID?: string;
@@ -102,8 +109,29 @@ type Props = {
102
109
  allowPartial: boolean;
103
110
  cashDiscount?: string;
104
111
  };
105
- declare function PartialPayment(props: Props): React__default.JSX.Element;
112
+ declare function PartialPayment(props: Props$1): React.JSX.Element;
106
113
 
107
- declare const PaymentWidget: React.ComponentType<any>;
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
+ };
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;
108
136
 
109
137
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
1
+ import React from 'react';
3
2
 
4
- interface Props$6 {
3
+ interface Props$7 {
5
4
  merchantPublicKey: string;
6
5
  customerId?: string;
7
6
  orderID?: string;
@@ -16,10 +15,12 @@ interface Props$6 {
16
15
  surcharge?: string;
17
16
  require_3ds?: boolean;
18
17
  pass_fee?: boolean;
18
+ sessionToken?: string;
19
+ showSurcharge?: number;
19
20
  }
20
- declare function RequestPayment(props: Props$6): React__default.JSX.Element;
21
+ declare function RequestPayment(props: Props$7): React.JSX.Element;
21
22
 
22
- interface Props$5 {
23
+ interface Props$6 {
23
24
  merchantPublicKey: string;
24
25
  customerId?: string;
25
26
  orderID?: string;
@@ -33,10 +34,11 @@ interface Props$5 {
33
34
  tax?: string;
34
35
  surcharge?: string;
35
36
  require_3ds?: boolean;
37
+ sessionToken?: string;
36
38
  }
37
- declare function RequestPreAuthPayment(props: Props$5): React__default.JSX.Element;
39
+ declare function RequestPreAuthPayment(props: Props$6): React.JSX.Element;
38
40
 
39
- type Props$4 = {
41
+ type Props$5 = {
40
42
  merchantPublicKey: string;
41
43
  customerId?: string;
42
44
  orderID?: string;
@@ -47,10 +49,11 @@ type Props$4 = {
47
49
  surcharge?: string;
48
50
  pass_fee?: boolean;
49
51
  isReader?: boolean;
52
+ sessionToken?: string;
50
53
  };
51
- declare function GetPaymentPage(props: Props$4): React__default.JSX.Element;
54
+ declare function GetPaymentPage(props: Props$5): React.JSX.Element;
52
55
 
53
- type Props$3 = {
56
+ type Props$4 = {
54
57
  merchantPublicKey: string;
55
58
  customerId?: string;
56
59
  orderID?: string;
@@ -61,16 +64,20 @@ type Props$3 = {
61
64
  surcharge?: string;
62
65
  pass_fee?: boolean;
63
66
  isReader?: boolean;
67
+ onTriggerPay?: (fn: () => void) => void;
68
+ preauthId?: string;
69
+ showButton?: boolean;
70
+ sessionToken?: string;
64
71
  };
65
- declare function PreAuthPayment(props: Props$3): React__default.JSX.Element;
72
+ declare function PreAuthPayment({ showButton, ...props }: Props$4): React.JSX.Element;
66
73
 
67
- type Props$2 = {
74
+ type Props$3 = {
68
75
  merchantPublicKey: string;
69
76
  customerId?: string;
70
77
  };
71
- declare function AddCardEasyPay(props: Props$2): React__default.JSX.Element;
78
+ declare function AddCardEasyPay(props: Props$3): React.JSX.Element;
72
79
 
73
- type Props$1 = {
80
+ type Props$2 = {
74
81
  session_token: string;
75
82
  callback: (resp: any) => void;
76
83
  isloading: boolean;
@@ -85,9 +92,9 @@ type Props$1 = {
85
92
  inputClass: string;
86
93
  isDual?: boolean;
87
94
  };
88
- declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$1): React__default.JSX.Element;
95
+ declare function CardOnFile({ session_token, callback, isloading, onCancel, showChecks, merchantName, signCheckbox, checkedSignCheckbox, onCheckSign, cancelbtnClass, savebtnClass, inputClass, isDual }: Props$2): React.JSX.Element;
89
96
 
90
- type Props = {
97
+ type Props$1 = {
91
98
  merchantPublicKey: string;
92
99
  customerId?: string;
93
100
  orderID?: string;
@@ -102,8 +109,29 @@ type Props = {
102
109
  allowPartial: boolean;
103
110
  cashDiscount?: string;
104
111
  };
105
- declare function PartialPayment(props: Props): React__default.JSX.Element;
112
+ declare function PartialPayment(props: Props$1): React.JSX.Element;
106
113
 
107
- declare const PaymentWidget: React.ComponentType<any>;
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
+ };
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;
108
136
 
109
137
  export { AddCardEasyPay as AddCard, CardOnFile, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };