Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete the Logs on Stripe in a test environment

I am using Stripe to carry out some test transactions on supposed customers from a CodeIgniter application. For some reason, to re-create a Stripe > Plan with the same old id and name online or to re-enter the Stripe customer into the Stripe > Customers through the API I have to clear the test data. When I clear the test data it clears the test data except the Logs.

Now what happens when I re-create a Stripe > Plan, it automatically gets the deleted customer from the Logs. As I don't need the old customer in the plan as I might have changed its credentials.

So how to delete/clear the Logs on Stripe in a test environment?

like image 462
hilbiazhar Avatar asked Feb 21 '16 21:02

hilbiazhar


People also ask

How do I delete test data from Stripe?

Deleting the stripe testing data First, login to the Stripe dashboard and click the Developer link at the bottom. Then, click the link to delete your test data.

What is Stripe test data?

Stripe has a test mode that allows you to use regulatory test credit card numbers to process transactions up to but not including the point the bank is actually charged.

How do I change my Stripe from test mode to live mode?

Go to Portal Settings > Payment Settings. Scroll down to Stripe Modes and ensure that the settings are set to live by clicking on the Live Mode button.


3 Answers

This is an older question, but a Google search brought me here, requiring an answer after my own trial and error (correct solution may have changed over time).

  1. Login to the Stripe dashboard
  2. Choose "Business Settings" on the bottom-left of the page.
  3. Choose "Data" on the left menu.
  4. Select the gray "Delete all test data..." button.
  5. Select the red "Delete Now" button on the confirmation modal.
  6. It may ask to confirm your password before proceeding.
like image 162
Christopher Stevens Avatar answered Oct 21 '22 22:10

Christopher Stevens


As of Nov 21, 2019, the process is similar to Christopher Stevens answer, however things have moved around a little.

  1. Login to the Stripe Dashboard
  2. Click Settings in bottom left corner
  3. Scroll to the Compliance and reporting section (at bottom of page)
  4. Click the Data link
  5. At bottom of page you should see after "Test data:" a button that says "Delete all test data..."

Stripe changes the UI often enough, that this answer will likely require ongoing maintenance.

like image 13
David Avatar answered Oct 21 '22 22:10

David


As of May 2, 2020, this has moved again.

  1. Log into the Stripe Dashboard
  2. Go to the Developers tab in the left sidebar
  3. Scroll to the bottom
  4. Click "Delete all test data..."
like image 13
Hank Brekke Avatar answered Oct 21 '22 22:10

Hank Brekke