#hugues9308
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- hugues9308, 6 hours ago, 25 messages
- hugues9308, 18 hours ago, 6 messages
We have a function to clear your test data in the developer dashboard, but you can't invoke it via the API and I wouldnt recommend this anyways
Why do you want to delete the data like this?
I'm talking about Integration Tests, a task integrated in the build process of our application. As you might know , in integration tests, each test shall be runnable in isolation and, to realize this isolation, the byproduct of any test shall be cleaned up before any other test gets executed. This is why I'm asking you this: Is there a way to use the Stripe API to clean up test byproducts: invoices, users, payments, subscriptions ...
Right but that isn't really how stripe or the API works, so you might need to adjust your tests.
WIth new customers, payment methods, payments etc, there should be little to no cross-over between test runs
Sure but as soon as a payment is collected? I doubt that the API would let me cleanup this. Is there something for this?
You can periodically erase your dev account test data, but its not instantaneous:
https://dashboard.stripe.com/test/developers
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
There's a "delete all test data" button at the bottom
Only available here via the Dashboard
Again I would ask what kind of tests you're performing that would require clearing data, and suggest you skip that step