#waseem_subscription-testclock
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1279201862830002310
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
waseem_subscription-testclock
@vital lintel yes that's expected behaviour. If you want to see the Subscriptions associated with a specific TestClock you have to pass the test_clock parameter: https://docs.stripe.com/api/subscriptions/list#list_subscriptions-test_clock
Hey Koopajah, I need to retrieve all subscriptions with status !== 'canceled', regardles whether they have a test clock or no
Is there a work-around it?
I'll tell you about the feature I'm trying to implement
no there isn't. We separate the ones with a TestClock explicitly. So what you are trying to do is impossible
I am trying to delete a coupon, but before deleting it, I want to remove it from any subscription it has been applied to. How do you think I can do that?
Let me say something first: TestClocks are only for Test mode. It will never happen in Live mode for real payments.
So it doesn't really matter that existing Subscriptions with a TestClock have that Coupon, and you can likely ignore this
Yeah, I agree with you but it has to be tested by our QA team in demo mode
sure but you can ignore the fact that you don't see those extra Subscriptions, they only exist in Test mode and it wouldn't make sense to build that feature just for that Test mode case
Thank you for your help. I appreciate it
Sure thing!