#david2_test-clocks-invoice-advance
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1319069178665369690
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- david2_api, 5 days ago, 12 messages
Hi ๐
I'm taking a look at the objects you provided IDs for.
Can you tell me what the current frozen time is for this billing clock?
NVM I found it
Billing clocks can sometimes be finicky, specifically when it comes to ivnoices transitioning from draft to open status.
As I'm sure you've noticed, the 1 hour period between when an Invoice is created (as part of a subscription cycle) and when it finalizes doesn't respect the Test Clock.
So you either need to wait the full hour in real time or call /finalize which is what you did. Because of this quirk, you will need to advance the billing clock again after the call finalize for it to trigger the automatic payment.
I just simulated this in my own test scripts and confirmed this behavior.
advance it after /finalize, by an hour? checkin' it out...
I advanced my clock by another 31 days but I don't think the increment matters. I think it's that the clock advancing re-triggers those automated actions like automatic payment
that did it! awesome, thanks
Great ๐ Happy to help ๐