#bssienes
1 messages · Page 1 of 1 (latest)
You can just go straight here (https://dashboard.stripe.com/test/test-clocks) and then follow the steps (starting with step #3) https://stripe.com/docs/billing/testing/test-clocks#create-clock
how can I simulate auto deletion of a subscription in test mode? I advanced time for more than 30 days but I can still see the subscription.
are you talking about the automatic deletion of a subscription because of test mode retention?
yes
Gotcha - I don't think that's something that's controlled/can be tested with test clocks. The subscription is automatically deleted 30 "real" days after it's been cancelled
Is there a specific reason you need to test this?
I was getting this error in my app, I am trying to reproduce it
I think the subscription does not exist because it was deleted automatically after some time. I cant find an option to delete a subscription manually to re-create this issue
Do you need to re-create the issue though? This is an error you'd only ever see in test mode - if you're end goal is building a production/livemode, then this isn't a state that your subscriptions would ever get in once you make all your requests in live mode
That might be right but in my test environment, at least I would like to be able to change my customer id within my app and I wasn't able to do that because of this error so I want to add a validation.
That's fair - unfortunately that leave you a bit stuck since there's no way to force this automatic deletion to happen earlier than the 30 days.
The only thing I could think of is mocking out the response to simulate the error you'd get if the subscription was deleted
ok, thank you