#agustinm

1 messages · Page 1 of 1 (latest)

remote furnaceBOT
gaunt moth
#

It takes a minute to advance a test clock, so you would need wait for it to finish.

#

You would want to use webhoooks in a production environment to know when the clock has advanced

forest shale
#

Yeah, i'm using webhooks now too. Because i use it to send a event and make and subscription update

#

But sometimes i have that error

#

The error is when i update the subscripion using line_items and i try to delete the old item

gaunt moth
#

You should only make those updates to the subscriptions from the webhook handler then, since this error only happens before the test_helpers.test_clock.ready event happens. Otherwise, you can get the status of the clock by making a retrieve call to test clock API: https://stripe.com/docs/api/test_clocks/retrieve