#oleg.moseiko
1 messages · Page 1 of 1 (latest)
Hello! We have a guide for upgrading and downgrading Subscriptions here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
Like get the current Subscriptions for a Customer? Or something else?
yes i need current subscriptions for a Customer
$query = sprintf('metadata["teamId"]:"%s" and metadata["customerId"]:"%s" and status:"active"', $TeamI, $customer->id);
$this->freeSubscription = Subscription::search(['query' => $query])->first();
You can list Subscriptions and specify the customer: https://stripe.com/docs/api/subscriptions/list