#Ante75 - connect

1 messages · Page 1 of 1 (latest)

latent helm
#

Hi there!

#

However you can't specify an email address with the endpoint.

wise mauve
#

How can I get the ID to associate it with the system automatically?

latent helm
#

What do you mean?

wise mauve
#

I'll explain what I mean:

#
  1. the customer wants to activate stripe payments
  2. I send him the link for the creation of the client (standard) with his mail
  3. 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

latent helm
wise mauve
#

yes

latent helm
#

Go it. Then you should use webhook events and listen to account.updated to keep track of new accounts on your platform

wise mauve
#

I'm sorry but I don't know the webhook function. Do you have any document that can help me understand how to proceed?

latent helm
wise mauve
#

perfect thank you very much, I'm going to study !!!

#

👋

wise mauve
#

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?

zenith ginkgo
#

do you have the account ID acct_xxx of the connected account you were expecting to get an event from so I can check?

wise mauve
#

acct_1L2dGTJTv3g6fMhy

#

I also tried to create a new connected account but no event has arrived

zenith ginkgo
#

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

wise mauve
#

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

zenith ginkgo
zenith ginkgo
wise mauve
#

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...

zenith ginkgo
#

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

wise mauve
#

oook! I did not understand!, I try immediately

#

I had created this:

#

on my main account

#

it's correct ?

zenith ginkgo
#

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

wise mauve
#

ok, i got it, thanks a lot for the support

wise mauve
#

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?

shell storm
#

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

wise mauve
#

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)

shell storm
#

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

wise mauve
#

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