Code Monkey home page Code Monkey logo

stripe-bulk-delete's Introduction

Bulk Stripe subscriptions manager

Need to do lots of things in Stripe, like canceling all subscriptions programmatically, and don't want to click each one in the dashboard? This is for you! This simple project makes it easy to bulk-cancel subscriptions and perform other mass actions that aren't possible with the Stripe API today.

Warning: Do not use this on a live server! It's intended to be used locally to make your life easier. This app requires no authentication and that would be a very bad thing. ¯\(ツ)

What it does

  1. Bulk Stripe cancellations (with optional proration)
  2. Overview of all Stripe subscribers status
  3. Select which subscriptions you want to cancel (coming soon)

How to use

  1. Clone the Git repo
  2. Spin up a PHP server, run composer install
  3. Copy .env.example to .env and add your Stripe key to STRIPE_SECRET. Warning: Test the app using your test mode API key first!
  4. Hit the URL of your server and browse to /customers
  5. Click delete (or don't) at your own risk

Useful bits

This current version causes Stripe to insta-cancel and pro-rate refunds for subscriptions. Change the following line in Controller.php if you don't want this:

$subscriptionObject->delete(['invoice_now' => false, 'prorate' => false]);

Q&A

  • Why did you use PHP for this? I don't know! It was just what made sense to me.

  • Omg you made me delete all my subscriptions! Sorry. You should have tested this first.

stripe-bulk-delete's People

Contributors

ow avatar yuriy636 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.