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. ¯\(ツ)/¯
- Bulk Stripe cancellations (with optional proration)
- Overview of all Stripe subscribers status
- Select which subscriptions you want to cancel (coming soon)
- Clone the Git repo
- Spin up a PHP server, run
composer install
- Copy
.env.example
to.env
and add your Stripe key toSTRIPE_SECRET
. Warning: Test the app using your test mode API key first! - Hit the URL of your server and browse to
/customers
- Click delete (or don't) at your own risk
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]);
-
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.