#snovov

1 messages · Page 1 of 1 (latest)

last blazeBOT
knotty atlas
#

Hello! Can you be specific - which pause function are you referring to?

sturdy pewter
#

sure no problem,


  await stripe.subscriptions.update(
            currentSubscription.id,
            {
              pause_collection: {
                behavior: 'void',
              }
            }
        )
knotty atlas
#

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

sturdy pewter
#

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: '',
  }
);
knotty atlas
#

yup!