trial_period_days: 7 does not seem to be recognised in my node function. Any idea why this may be the case? Am I missing a variable? When posting to this it causes an integration error...
const subscription = await stripe.subscriptions.create({
customer: customer.id,
items: [{ price: "price_1KZ3nTGxUje7SlyIDUfIXkr3" }],
payment_settings: {
payment_method_options: {
card: {
request_three_d_secure: "any",
},
},
payment_method_types: ["card"],
save_default_payment_method: "on_subscription",
},
trial_period_days: 7,
expand: ["latest_invoice.payment_intent"],
});