#a1-connect-email
1 messages · Page 1 of 1 (latest)
is this the correct format to ask for the email capabilities?
a1-connect-email
Hey @orchid panther I don't think we surface this in the API today. You can try and retrieve the Account once it's connected using https://stripe.com/docs/api/accounts/retrieve and see what is in the email property to confirm
well I do retrieve it afterwards, however the email is not included in it.
is there a specific reason for that?
I am missing the "business_profile" and the "email" keys
any idea?
It depends on the Account type, if you use Standard accounts you don't have access to this
I don't understand what you're asking
This setting lets you connect Express or Standard accounts
and you seem to use one of those
do you mean that the account I am connecting FROM needs NOT to be a STANDARD account?
not really
You are a platform, you seem to use OAuth with Standard accounts. That's a crucial/foundational decision you make early on when building your platform.
In that flow you can not access the email or business profile. This is not visible to you. You'd collect this information yourself separately as part of your app
under which condition can I see the business information like email and name of the owner?
If you use Custom accounts. But then it's a completely different integration path and you're already collecting all of this yourself
you must have chosen Standard for a reason
I don't know what standard is and I also do not know if or where I have chosen it
the only reason I want to have the user connect using oAuth is to:
- create a webhook in the name of the user
- get the email of the user to send correspondence to
I am confused at this point
I can see you're confused, but it's hard to help with no info. Like who wrote your integration? Which doc did you follow? Whywould you create a webhook for a user? That doesn't make sense for Connect at all either
I have written a stripe app that plans to do all this. But with the current "test" versions of the API, I can't get the permissions to run, they require a live stripe app.
to workaround this, I thought maybe connecting the user with oAuth and getting the access token would allow creating a webhook and doing the work this way.
Gotcha. Then no this is impossible. A Stripe App can not create a webhook endpoint on a connected account, and neither can a Connect platform
are you sure?
I think I've read about the permissions that let you exactly do that
let me ask a colleague to be sure. But ultimately it's impossible with Connect so the path you're using won't work
OK, let me stop going down that path.
can you check the bottom of the table here:
https://stripe.com/docs/stripe-apps/reference/permissions?locale=en-GB#object
the only permission is webhook_read so you can't create one, it'll never work
let's take a step back (or 10). What are you really trying to do
I want to know,
- when a payment of a customer of that account has failed
- when a subscription has been deleted
- the email address of the MAIN ACCOUNT HOLDER
all through stripe apps.
For #1 and #2 you create a webhook endpoint on your own platform account. Read https://stripe.com/docs/connect/webhooks carefully and that will explain it.
For #3: it is impossible
are you sure about point 3?
I have installed a random application from the apps store and got a email notification to my inbox.
How did that happen?
I don't understand what you mean again. What does "I got a email notification to my inbox" mean?
I installed a app from the apps to the right side of the screen, into my stripe account.
I confirmed the applications permissions window.
I did nothing else.
I received an email FROM the application that I just installed, to the REGISTERED EMAIL ADDRESS of MY STRIPE ACCOUNT.
I want to replicate that
Sorry, I don't have an answer for this. You will have to work with our support team to discuss this directly: https://support.stripe.com/contact
No worries, I will get in touch with them.
Sounds good, sorry I couldn't help more