#agustinm
1 messages · Page 1 of 1 (latest)
It takes a minute to advance a test clock, so you would need wait for it to finish.
There's a useful explanation of this here: https://stripe.com/docs/billing/testing/test-clocks#monitor-changes
You would want to use webhoooks in a production environment to know when the clock has advanced
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.