#snovov
1 messages · Page 1 of 1 (latest)
Hello! Can you be specific - which pause function are you referring to?
sure no problem,
await stripe.subscriptions.update(
currentSubscription.id,
{
pause_collection: {
behavior: 'void',
}
}
)
Gotcha - so that's not really a "pause" function (we don't have that right now, so just want to make sure)
This won't change the status of the Subscription at all - it'll just change the status of future invoices to immediately void
I'd recommend reading https://stripe.com/docs/billing/subscriptions/pause#unable-provide-services
ok i see. and if i were to re-run this function at a later time would this start the clock again for generating invoices and payments?
const subscription = await
stripe.subscriptions.update(
'sub_GTbTiykEwMRog0',
{
pause_collection: '',
}
);
yup!