#andrea-skuola-subscription

1 messages · Page 1 of 1 (latest)

placid parrot
#

Hi there!

obsidian glade
#

ok, and when I do this $subscriptions = $stripe->subscriptions->all(['customer' => $userStripeId, 'status' => 'active']); can I concat more statuses?

placid parrot
#

No the list API endpoint works with only one status. But you could use the search API I mentioned earlier to search for subscription with status:"A" OR status:"B".

obsidian glade
#

ok thanks

#

i'm getting this error: Attempted to call an undefined method named "search" of class "Stripe\Service\SubscriptionService".

#

should I update Stripe library?

placid parrot
#

Most likely. You are using the dotNET library?

obsidian glade
#

i'm using PHP via composer