#Nick-subscriptions and test_clocks
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
the trick is to use the current frozen time of your test clock
you're using Stripe CLI right?
I am, yeah
One other thing I've noticed is that the invoice generated for June -> Jul when I moved the timing to July 1 ended up having a bill date of August 22 (ie, the current day)
let me take a look at the subscription
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I've forwarded the clock at this point so it may be a bit borked
on it ๐ no worries I got the id from your first message
FWIW, no rush on a solution or anything here, just wanted to point out the behaviour in case there was a bug
no worries, I'll see what's happening and would try to unblock you there
looking at this https://dashboard.stripe.com/test/subscriptions/sub_1LZbkkI67GP2qpb4zgZIcj2F the current billing cycle is Aug 1 -> Sep 1
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
One other thing I've noticed is that the invoice generated for June -> Jul when I moved the timing to July 1 ended up having a bill date of August 22 (ie, the current day)
where did you see tahat exactly?
another thing to mention is that there is no payment method attached to the customer nor set on the subscription
another thing to mention is that there is no payment method attached to the customer nor set on the subscription
This is intentional, it's the only way to get an invoice in state payment failed without a credit card in test (which is a valid thing in production)
If you look at the history for this invoice: https://dashboard.stripe.com/test/events?related_object=in_1LZboqI67GP2qpb4O1AkwRGF&ending_before=evt_1LZbouI67GP2qpb4xtMUMMxp
You can see that even though the test clock was in action the timestamps seem to all be relative to August 22 - I know that's probably because of the fact I did these actions today,
Basically I created the sub with start date June 1 -> July 1, added usage, fast forwarded the time to July 1, which generated the invoice - I then enabled automatic collection, but the scheduled payment time was August 22 @ 2:50 PM, so it's like it calculated the scheduled payment time based on my time and not the test clock (I'd have expected it to be July 1 @ 2:50 PM)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I'd start a new test for you to show you but I'm in the middle of something rn
sorry for the delay