#Ante75 - connect
1 messages · Page 1 of 1 (latest)
Hi there!
You can use this to list all connected account: https://stripe.com/docs/api/accounts/list
However you can't specify an email address with the endpoint.
How can I get the ID to associate it with the system automatically?
What do you mean?
I'll explain what I mean:
- the customer wants to activate stripe payments
- I send him the link for the creation of the client (standard) with his mail
- when the account is created he must send me the ID to associate it with our systems
what I would like to do is associate the ID automatically via the email
... by customer I mean a connected account
Are you using Connect with Standard accounts to connect their account? https://stripe.com/docs/connect/standard-accounts
yes
Go it. Then you should use webhook events and listen to account.updated to keep track of new accounts on your platform
I'm sorry but I don't know the webhook function. Do you have any document that can help me understand how to proceed?
I created an endpoint on our server and activated the Webhook on our platform,
but no event arrives, do you know if there is a way to take a test?
i set it as an endpoint
http://micrologic.ns0.it:2805
if I try to call the url from the browser I get then the endpoint works, but nothing comes from stripe, am I wrong something maybe?
do you have the account ID acct_xxx of the connected account you were expecting to get an event from so I can check?
acct_1L2dGTJTv3g6fMhy
I also tried to create a new connected account but no event has arrived
you didn't add the endpoint as Connect endpoint, so it only listens for events from your own platform account, not other connected accounts
you need to tick this box at the bottom when setting it up
but my goal is to receive information on new connected accounts that are added
for a test I thought I also received the payment information
yep, you would, I don't think there would any issue there
what does that mean?
my purpose is to receive information on new connected customers who register, but to understand if my endpoint was working I thought of testing with a payment event
I try to create another connected account to check if the event arrives...
that won't change anything
it's nothing to do with the account, it's the endpoint you created was not set up to receive Connect events, as described above. That's what you have to change
oook! I did not understand!, I try immediately
I had created this:
on my main account
it's correct ?
I don't think so, since it still says "diretti" which is Direct, it should be Connect
I think it has to be a new endpoint, you can't edit the existing one to make it Connect. If you create a new endpoint, make sure to tick the checkbox i mentioned in my screenshot
ok, i got it, thanks a lot for the support
I have another problem
I got the account id created
with the ID I make the request to stripe AccountService and I get the data of the new connected account
but here I don't have an email to compare to understand who the customer is, I thought I was using the email address that is known, when I send him the creation request, how can I understand who the customer is?
can I include some data in the request "link" I create with AccountLinkService which I can then find with AccountService?
You'd create the Account Link, send it to the user for them to onboard and then subscribe to account.updated events to be notified of when they've completed that process
Those events would contain the updated account fields
yes, but how do I know who that account is? I don't understand how to associate it
I create the registration link and send it to the customer (I already include the email I know there)
You'd associate the acct_xxx ID returned with your user/session in your local database
You can't know which email address they're to use when they create a Stripe account
ooookk, I did not know that in AccountLinkCreateOptions I already get the account ID, yes I can then compare it, I try it right away thank you very much