File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
firestore-stripe-payments/functions/src Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -338,13 +338,7 @@ export const createPortalLink = functions.https.onCall(
338
338
) ;
339
339
}
340
340
try {
341
- const {
342
- returnUrl : return_url ,
343
- locale = 'auto' ,
344
- configuration,
345
- flow_data,
346
- } = data ;
347
-
341
+ const { returnUrl : return_url , locale = 'auto' , configuration } = data ;
348
342
// Get stripe customer id
349
343
const customer = (
350
344
await admin
@@ -361,12 +355,6 @@ export const createPortalLink = functions.https.onCall(
361
355
if ( configuration ) {
362
356
params . configuration = configuration ;
363
357
}
364
- if ( flow_data ) {
365
- // Ignore type-checking because `flow_data` was added to
366
- // `Stripe.BillingPortal.SessionCreateParams` in
367
- // [email protected] (API version 2022-12-06)
368
- ( params as any ) . flow_data = flow_data ;
369
- }
370
358
const session = await stripe . billingPortal . sessions . create ( params ) ;
371
359
logs . createdBillingPortalLink ( uid ) ;
372
360
return session ;
You can’t perform that action at this time.
0 commit comments