#Tom Catchesides

1 messages · Page 1 of 1 (latest)

ancient nymphBOT
royal gyro
forest harbor
#

Thanks @royal gyro ! Is it possible to do this without using Connect?

royal gyro
#

You can use this API to retrieve your own account object, if that's what you ask.

forest harbor
#

Thanks, @royal gyro . Using the Stripe PHP library, I've just tried calling $stripe->accounts->all(); for an account I'm using to test my work and the result doesn't seem to contain any accounts:

object(Stripe\Collection)#637 (4) { ["object"]=> string(4) "list" ["data"]=> array(0) { } ["has_more"]=> bool(false) ["url"]=> string(12) "/v1/accounts" }

royal gyro
forest harbor
#

Thanks, @royal gyro . Apologies if I'm asking something very basic, but as a platform we've been able to do everything we need by using a user's secret and public API keys. If all we have is those keys, which API call do we use to fetch the account's ID? (that's what I was trying to do with $stripe->accounts->all(); )

royal gyro
#

Just to be clear, do you intent to retrieve your own account, or a list of your connected account?

forest harbor
#

As a platform, I would like to use a user's API key to retrieve their account ID.

royal gyro
#

If the user's API key means the connected account's API key, you shouldn't do that.

forest harbor
#

OK, thanks Jack: we're not using Connect, so I think that means that we can't do this.