We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0da14b commit e2b030dCopy full SHA for e2b030d
firestore-stripe-payments/functions/src/index.ts
@@ -128,6 +128,7 @@ exports.createCheckoutSession = functions
128
metadata = {},
129
automatic_payment_methods = { enabled: true },
130
automatic_tax = false,
131
+ invoice_creation = false,
132
tax_rates = [],
133
tax_id_collection = false,
134
allow_promotion_codes = false,
@@ -215,6 +216,11 @@ exports.createCheckoutSession = functions
215
216
metadata,
217
...(setup_future_usage && { setup_future_usage }),
218
};
219
+ if (invoice_creation) {
220
+ sessionCreateParams.invoice_creation = {
221
+ enabled: true,
222
+ };
223
224
}
225
if (automatic_tax) {
226
sessionCreateParams.automatic_tax = {
0 commit comments