#heyhey-subscriptions

1 messages · Page 1 of 1 (latest)

graceful lotus
#

@fallen ether hello! what event is that exactly/what are you trying to test?

fallen ether
#

Trying to test the cycle of a subscription

#

All subscriptions is on an monthly interval

#

And i dont want to wait 1 month to see if it works haha

graceful lotus
fallen ether
#

How does these test clocks work

graceful lotus
#

not sure how I can answer that in more detail than the docs I linked do.

fallen ether
#

What does it mean to set a frozen time

graceful lotus
#

it's the base time. So normally you create a subscription and all the dates involved with it are based on today, the time you made the API request. The frozen time lets you anchor the tests to a specific time instead

fallen ether
#

I have already created customers though, how would i set it to frozen time

graceful lotus
#

it would be easiest to just do a fresh test. It's a bit of a moot point if you don't have access to that feature anyway

fallen ether
#

I have another question

#
const deleted = await stripe.subscriptions.del(
            getSub.subscriptionId
        )

Will this send customer.subscription.deleted event from webhook?

graceful lotus
#

yep, it will!