#Hernando-connect-subscription
1 messages · Page 1 of 1 (latest)
nah let me see with that first
okay so look at https://dashboard.stripe.com/test/logs/req_3PwOgRzOl3T0pM
you're making the request on your own Stripe account, so really your code is not passing the stripe_account param properly
or that variable is empty
ok, let's see, according to the documentation, the way to retrieve to connected accounts data is this:
$stripeSubscriptions = $this->stripeClient->subscriptions->all(
['price' => $stripePriceId],
[],
['stripe_account' => $connectedAccountId]
);
I can confirm that the connectedAccountId variable is there, but is possible that the subscriptions->all function signature is not like that?
yeah no
$stripeSubscriptions = $this->stripeClient->subscriptions->all(
['price' => $stripePriceId],
['stripe_account' => $connectedAccountId]
);```
gotcha, it's not like that, it this:
$stripeSubscriptions = $this->stripeClient->subscriptions->all(
['price' => $stripePriceId],
['stripe_account' => $connectedAccountId]
);
thank you! sorry for this stupid question, but on the 'connected account' section of the document it says like the first one
and one last question, is possible to get the total amount of subscriptions instead of a list?
no that's not possible you have to count
though we have a Search API in beta https://stripe.com/docs/search-api
cool! I found something btw: https://stackoverflow.com/a/47549460
thank you so much for your time!