Skip to content

Commit ba5c6e2

Browse files
committed
fixed lint errors
1 parent 8722fbb commit ba5c6e2

File tree

1 file changed

+9
-5
lines changed
  • firestore-stripe-payments/functions/src

1 file changed

+9
-5
lines changed

firestore-stripe-payments/functions/src/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exports.createCheckoutSession = functions.firestore
106106
payment_method_types,
107107
shipping_rates = [],
108108
metadata = {},
109-
automatic_payment_methods = {enabled: true},
109+
automatic_payment_methods = { enabled: true },
110110
automatic_tax = false,
111111
tax_rates = [],
112112
tax_id_collection = false,
@@ -233,13 +233,17 @@ exports.createCheckoutSession = functions.firestore
233233
currency,
234234
customer,
235235
metadata,
236-
}
236+
};
237237
if (payment_method_types) {
238-
paymentIntentCreateParams.payment_method_types = payment_method_types;
238+
paymentIntentCreateParams.payment_method_types =
239+
payment_method_types;
239240
} else {
240-
paymentIntentCreateParams.automatic_payment_methods = automatic_payment_methods;
241+
paymentIntentCreateParams.automatic_payment_methods =
242+
automatic_payment_methods;
241243
}
242-
const paymentIntent = await stripe.paymentIntents.create(paymentIntentCreateParams);
244+
const paymentIntent = await stripe.paymentIntents.create(
245+
paymentIntentCreateParams
246+
);
243247
paymentIntentClientSecret = paymentIntent.client_secret;
244248
} else if (mode === 'setup') {
245249
const setupIntent = await stripe.setupIntents.create({

0 commit comments

Comments
 (0)