#mallain23_best-practices
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/1313885555834097707
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ you can use the 4000000000000341 test card for that, it can be attached to a Customer successfully but then declines payments, letting you simulate failed recurring payments pushing the Subscription into a past_due state.
https://docs.stripe.com/testing#declined-payments
Ok thanks - but I guess you have to wait for the subscription to renew
Yup, you can use Test Clocks to do that quickly though:
https://docs.stripe.com/billing/testing/test-clocks
Yea but this are for subscriptions that are being signed up for from our dev app -- can you use test clocks via the API - i thought it was more of a dashboard feature
Yup, they can be used from the API, the page provided a link to links to this one that is focused on doing just that:
https://docs.stripe.com/billing/testing/test-clocks/api-advanced-usage?dashboard-or-api=api
ok thanks