#topmotive-design-2_webhooks
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/1244956124969566220
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
What is the correct way to simulate a auto-renewal payment via the test CLI?
you won't use the CLI for this. instead you'll use Test Clocks: https://stripe.com/docs/billing/testing/test-clocks
ok, I just added this to a test subscription but no event was fired
what am I missing?
I set the clock 2 minutes in advance
can you share the Subscription ID (sub_xxx)?
sub_1PL2oIGLvoRtAlfHxUfGnHYD
thanks! give me a few minutes to look into this.
you need to advance the time to June 27
that's when the new Invoice will be created
ok, but how do I trigger this now to simulate it?
trigger what? you need to advance the time on the Test Clock, either with the API or with the dashboard. all of this is explained in the link I shared earlier.
I want to trigger the auto-renewal of this subscription. I have saved everything releated to this in my DB and I want to test the renewal and update my DB.
I thought I could use the clock to trigger this event now in order to simulate it. This is why I set it 2 minutes in advance
Your Subscriptoin was created today, and will renew in one month. So you need to use Test Clocks to advance time by 30 days in order to see it renew.
that's the whole point of Test Clocks: move time forward so you can see what happens in the future, like a renewal.
Now I got it ๐
I have to set it to June 27th one minute after the expiration and then I receive the customer.subscription.updated event
Perfect! Let me know if I can help with anything else