#Nick-subscriptions and test_clocks

1 messages ยท Page 1 of 1 (latest)

half reef
#

๐Ÿ‘‹ happy to help

#

the trick is to use the current frozen time of your test clock

#

you're using Stripe CLI right?

steady forge
#

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)

half reef
#

let me take a look at the subscription

steady forge
#

I've forwarded the clock at this point so it may be a bit borked

half reef
#

on it ๐Ÿ™‚ no worries I got the id from your first message

steady forge
#

FWIW, no rush on a solution or anything here, just wanted to point out the behaviour in case there was a bug

half reef
#

no worries, I'll see what's happening and would try to unblock you there

#

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

steady forge
#

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)

#

I'd start a new test for you to show you but I'm in the middle of something rn

half reef
#

sorry for the delay