Last active
May 23, 2024 10:58
-
-
Save mclarenmervin/faff01ff8b901ae24f368e4bf124faa5 to your computer and use it in GitHub Desktop.
Get Expired Subscriptions Object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'stripe-php/init.php'; // Path to autoload.php from the Stripe SDK | |
$sec_key = 'sk_live_xxxxxxxxxxxxxxxxxxx'; | |
$limit = 999999; | |
\Stripe\Stripe::setApiKey($sec_key); | |
$stripeclient = new \Stripe\StripeClient($sec_key); | |
$cancelled_subscriptions = \Stripe\Subscription::all(['limit' => $limit, 'status' => 'incomplete_expired']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment