File tree 3 files changed +36
-6
lines changed 3 files changed +36
-6
lines changed Original file line number Diff line number Diff line change 49
49
"@babel/preset-react" : " 7.18.6" ,
50
50
"@rollup/plugin-json" : " ^6.0.0" ,
51
51
"@rollup/plugin-replace" : " ^2.3.1" ,
52
- "@stripe/connect-js" : " 3.3.29 -preview-1" ,
52
+ "@stripe/connect-js" : " 3.3.30 -preview-1" ,
53
53
"@types/jest" : " ^24.0.25" ,
54
54
"@types/react" : " ^16.8.0" ,
55
55
"@types/react-dom" : " ^16.8.0" ,
85
85
"zx" : " ^4.2.0"
86
86
},
87
87
"peerDependencies" : {
88
- "@stripe/connect-js" : " >=3.3.29 -preview-1" ,
88
+ "@stripe/connect-js" : " >=3.3.30 -preview-1" ,
89
89
"react" : " >=16.8.0" ,
90
90
"react-dom" : " >=16.8.0"
91
91
}
Original file line number Diff line number Diff line change @@ -174,6 +174,36 @@ export const ConnectPaymentDetails = ({
174
174
return wrapper ;
175
175
} ;
176
176
177
+ export const ConnectPaymentDisputes = ( {
178
+ payment,
179
+ onDisputesLoaded,
180
+ onLoadError,
181
+ onLoaderStart,
182
+ } : {
183
+ /**
184
+ * @param payment the ID of `payment`, `charge`, or `paymentIntent` to be displayed.
185
+ */
186
+ payment : string ;
187
+ onDisputesLoaded ?: ( { total} : { total : number } ) => void ;
188
+ } & CommonComponentProps ) : JSX . Element | null => {
189
+ const { wrapper, component} =
190
+ useCreateComponent ( 'payment-disputes' ) ;
191
+
192
+ useUpdateWithSetter ( component , payment , ( comp , val ) =>
193
+ comp . setPayment ( val )
194
+ ) ;
195
+ useUpdateWithSetter ( component , onDisputesLoaded , ( comp , val ) =>
196
+ comp . setOnDisputesLoaded ( val )
197
+ ) ;
198
+ useUpdateWithSetter ( component , onLoaderStart , ( comp , val ) => {
199
+ comp . setOnLoaderStart ( val ) ;
200
+ } ) ;
201
+ useUpdateWithSetter ( component , onLoadError , ( comp , val ) => {
202
+ comp . setOnLoadError ( val ) ;
203
+ } ) ;
204
+ return wrapper ;
205
+ } ;
206
+
177
207
export const ConnectAccountOnboarding = ( {
178
208
onExit,
179
209
recipientTermsOfServiceUrl,
Original file line number Diff line number Diff line change 1454
1454
dependencies :
1455
1455
" @sinonjs/commons" " ^3.0.0"
1456
1456
1457
- " @stripe/connect-js@3.3.29 -preview-1 " :
1458
- version "3.3.29 -preview-1"
1459
- resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.29 -preview-1.tgz#32c5065f18a5fd075d012a99ed3644e7a150ee4f "
1460
- integrity sha512-B3O8bVOiiGaxsRhkHL38SNX1uWs+U8XGnW652li5/FdEL94qp41tUiUsjB8z2NyccSGNDufhlnbQYdy5+h2GRg ==
1457
+ " @stripe/connect-js@3.3.30 -preview-1 " :
1458
+ version "3.3.30 -preview-1"
1459
+ resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.30 -preview-1.tgz#8fd6fae9f3e1ae96d1f980b0f2f02373736f5763 "
1460
+ integrity sha512-mRKv6tzGf5A/3l4E7WxEZWEpJNbpAGAmVUzO2Ku1dqYBD/5cSYt5Zibh3XP1MYVm5J2AR8uy86fRmbzrVSeqNA ==
1461
1461
1462
1462
" @tootallnate/once@2 " :
1463
1463
version "2.0.0"
You can’t perform that action at this time.
0 commit comments