File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
firestore-stripe-payments/functions/src Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ export default {
22
22
stripeConfigCollectionPath : process . env . STRIPE_CONFIG_COLLECTION ,
23
23
syncUsersOnCreate : process . env . SYNC_USERS_ON_CREATE === 'Sync' ,
24
24
autoDeleteUsers : process . env . DELETE_STRIPE_CUSTOMERS === 'Auto delete' ,
25
- minCheckoutInstances : process . env . CREATE_CHECKOUT_MIN_INSTANCES ?? 0 ,
25
+ minCheckoutInstances : Number ( process . env . CREATE_CHECKOUT_MIN_INSTANCES ) ?? 0 ,
26
26
} ;
Original file line number Diff line number Diff line change @@ -106,10 +106,13 @@ exports.createCustomer = functions.auth
106
106
/**
107
107
* Create a CheckoutSession or PaymentIntent based on which client is being used.
108
108
*/
109
- exports . createCheckoutSession = functions . runWith ( {
110
- minInstances : config . minCheckoutInstances ,
111
- } ) . firestore
112
- . document ( `/${ config . customersCollectionPath } /{uid}/checkout_sessions/{id}` )
109
+ exports . createCheckoutSession = functions
110
+ . runWith ( {
111
+ minInstances : config . minCheckoutInstances ,
112
+ } )
113
+ . firestore . document (
114
+ `/${ config . customersCollectionPath } /{uid}/checkout_sessions/{id}`
115
+ )
113
116
. onCreate ( async ( snap , context ) => {
114
117
const {
115
118
client = 'web' ,
You can’t perform that action at this time.
0 commit comments