#hugues9308

1 messages · Page 1 of 1 (latest)

celest fjordBOT
#

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.

tawdry carbon
#

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?

blazing mural
#

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 ...

tawdry carbon
#

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

blazing mural
#

Sure but as soon as a payment is collected? I doubt that the API would let me cleanup this. Is there something for this?

tawdry carbon
#

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