Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why does stripe.Account.retrieve("") return an account, and what account is it?

I’m attempting to make a utility function to check if a user has submitted their onboarding details.

Ex:

@property
def is_onboarded(self):
    stripe = stripe_config()
    a = stripe.Account.retrieve(self.stripe_user_id)
    return a.details_submitted

If self.stripe_user_id is an empty string, it returns some account for an ID I can’t track down (don’t see it in the online Connect interface).

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Ex:

>>> stripe.Account.retrieve('')
<Account account id=acct_abc123abc1235N at 0x264b6b6cd00> JSON: {
  "capabilities": {
    "acss_debit_payments": "active",
    ...

My simple question is, why? And, what account is it returning?

>Solution :

It returns the platform account (ie. your account; the one you’re making the request with).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading