-1

I would like to create a report in my admin dashboard which give me all expired subscriptions list.

StephenKing
  • 36,187
  • 11
  • 83
  • 112
Yogesh
  • 33
  • 4

1 Answers1

0

Please Try

$subscriptions = Recurly_SubscriptionList::getActive();
foreach ($subscriptions as $subscription) {
  print "Subscription: $subscription\n";
}

The state of subscriptions to return: "active", "canceled", "expired", "future", "in_trial", "live", or "past_due". A subscription may belong to more than one state.

you can filter as per your requirement.

Source

Ashish Chaturvedi
  • 1,352
  • 3
  • 13
  • 37