#laurag7440
1 messages · Page 1 of 1 (latest)
hello! if you want to start a subscription in the future, you can look into subscription schedules : https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#start-subscription-future
When trying to create a subscription schedule, I am encountering the following error: TypeError: Cannot read properties of undefined (reading 'create'). However, I do not have any issues using stripe.subscriptions.create to create regular subscriptions.
stripe.subscriptionSchedule.create({
customer,
start_date: startDate,
end_behavior: "release",
phases: [
{
items: [{ price, quantity: 1 }],
iterations: 1,
},
],
});