#Jonah
1 messages · Page 1 of 1 (latest)
Hi, can you break this down, I'm not going to be able to provide a code review here. However, I'm happy to talk this thorough instead.
I don't really want a code review. I want to figure out a way to test renewing a subscription using Stripe cli to see if my code works.
What have you tried so far?
I tried stripe trigger invoice.payment_succeeded but that just generally tests if it triggers instead of testing a specific subscription
When you say 'renew' do you mean update the subscription?
For example if someone buys my product they get immediately charged now and will also get automatically charged every month until they cancel. I want to simulate that automatic payment somehow.
I see, I would use our Test Clocks, https://stripe.com/docs/billing/testing/test-clocks to simulate the automatic payments.
the issue is that I have specific metadata thats generated when a user does it through my site.
So creating everything manually using test clocks wouldn't work
Sorry wrong thread
Yeah, you can't do this without using the Test Clocks. Scripting Test Clocks is pretty fast and you can pass the metadata there.
ok I guess I could also just create a subscription for 24 hours and check tmmrw to see if the credits updated right?