#Charmon
1 messages · Page 1 of 1 (latest)
hi! generally you have two endpoints, one that listens to events on your own account, and one that listens to events on all your connected accounts
https://stripe.com/docs/connect/webhooks
Ok, so no stripe connect webhooks are sent to your own endpoint?
no
there are two types of endpoint, "Account" and "Connect", so you generally create one of each
the docs above describes it pretty well I think!
Thanks, I will read that through. I will still receive "stripe connect account created" type of webhooks through my account endpoint correct?
Hi there!
I will still receive "stripe connect account created" type of webhooks
Can you clarify which event are you talking about?
I think its account.created.
For example for personal trainer marketplace, i send onboarding invite to trainer. Once he signs up, I want to respond to that event and create a user profile in my own database.
Same with, when that account creates a product, I just want to sync it with my database.
I think its account.created.
This event doesn't exist. You can see the full list of events here: https://stripe.com/docs/api/events/types
must be account.external_account.created?
No, this is related to the external_account, which is a bank account.
Can you clarify what you are trying to do?
I want to sync users in my database (users table) with stripe connected account holder, so for example:
uid: "abc123", stripe_connect_account_id: "stripeconnectuid"
And how are you creating the connected account? With this? https://stripe.com/docs/api/accounts/create
At the moment I was simply thinking of creating it from my stripe dashboard?
is that not the way to do it?
In this case you are using OAuth, that's an option. And in this case the event will be account.application.authorized
and its sent to my account endpoint?
yes
All good Thanks!