#rehan_connect-account-capabilities

1 messages ยท Page 1 of 1 (latest)

fossil mirageBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291060266531815435

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

sour rock
#

Hello

orchid fulcrum
#

Hi

sour rock
#

So you are using OAuth to connect already-existing accounts?

#

Or you are creating new accounts here?

orchid fulcrum
#

yes

sour rock
#

Okay and once you connect them you are saying you see on their account object that charges are disabled?

#

Like you retrieve the account and see charges_enabled: false?

orchid fulcrum
orchid fulcrum
#

you can see the screen shot

sour rock
#

Okay that is your own object that you are sharing

#

So I don't know how you are populating those values

#

But you would want to look at the requirements hash of the account object if you see charges_enabled: false to get more information on why charges wouldn't be enabled yet.

orchid fulcrum
#

but when i check the stripe dashboard i can see their charge are enabled

sour rock
#

When are you retrieving this account info?

#

Immediately upon connection?

#

What do you see if you retrieve it now?

orchid fulcrum
#

yes

sour rock
#

Does it align with the Dashboard and show charges_enabled ?

orchid fulcrum
sour rock
#

Okay and when you retrieve it immediately what do you see in the requirements hash?

orchid fulcrum
sour rock
#

That would indicate why charges are disabled at that time.

orchid fulcrum
#

is their any webhook that i can implemetnt

sour rock
#

Yes you can listen for account.updated

orchid fulcrum
#

yes i am listening this webhook but no result

#

can share the webhook code for you>

#

?

sour rock
#

No that's not necessary. Can you supply the account ID from the above screenshot in text so I can look at it?

orchid fulcrum
#

okay

#

acct_1Q5TfHRxleqtLD8D

fossil mirageBOT
sour rock
#

Okay so yeah this account was created during the OAuth process. When that happens there is async verification that takes place, like ID verification. So that is why charges were initially disabled -- it is waiting for that verification.

There will indeed be an account.updated Webhook that comes through when this happens. https://dashboard.stripe.com/test/events/evt_1Q5Tl0RxleqtLD8DTI1KKYqZ is the specific Event here where that account flipped from charges disabled --> enabled.

#

So you do need to check on your Webhook handler to make sure you are receiving that Event and ingesting the data

orchid fulcrum
#

i have add account.updated webhook in my code and in webhook event as well. then what could be reason my document is not getting updated?

haughty kernel
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague had to go.

orchid fulcrum
#

sure

haughty kernel
#

The account.updated event has not fired yet for this account. That is why you have not received it

#

If you want to test your webhook handling code to make sure you are receiving these events and properly handling them, you can use the Stripe CLI to trigger an acccount.updated event in Test mode

orchid fulcrum
haughty kernel
#

Is the account you are referencing the ID you shared earlier?

orchid fulcrum
#

yes

haughty kernel
#

I am looking at that account and all related events for it. I don't see any account.updated

orchid fulcrum
#

sorry that is connect account which is shoveller account id
do you need platfrom account id in which i an event account.updated

#

you can see the screen shot

haughty kernel
#

The screenshot does not help

#

Can you rephrase your actual question? I think we are talking past each other

orchid fulcrum
#

sure

#

i am developing shovel-house platform where houseowner post the job adn shoveller will competed that job
in order to pay the hsoveller we have setup stripe oauth connect account
during the regiestration process we ask the shovller to setup stripe connect account. that account will be used to payout to shvoller in future if he had earn any amount of monye

haughty kernel
#

Hold on, let's stop there

#
  1. Does the "shoveller" already have a Stripe account?
orchid fulcrum
#

yes i am assuming shoveller wil have already stripe account

#

which he will connect with our platform

haughty kernel
#

Okay, so then you use OAuth to create the connection with your platform.

orchid fulcrum
#

yes

haughty kernel
#

Okay so what is your question?

orchid fulcrum
#

the question is when shvoeller connect their stripe account during the onbaording process which is oauth onboardiing provieded by stripe.
when he regiestr his account i reteriveve their accountid and charges_enabled adn store these attribute in databse. The issue is when shoveller register his account i get his accountid but the charges_enabled is false. when i check the stripe dashboard for that particluar connect account i can see their charges enable

haughty kernel
#

I am reviewing all the changes to this account currently

#

Capabilities when from inactive to pending 77 minutes ago

#

Most becaue active 75 minutes ago

#

And then in another minute the last 3 became active.

#

This is an asychronous process and you should not expect immediate activation of these capabilities

orchid fulcrum
#

the problem is i have to navigate the shoveller to the next screen if he si done with setup
so what i can do in this case. i need way to ensure shoveller connect his account and he is authorized to use our platfrom and we can pay him as well.

haughty kernel
#

That may take a few minutes and you need to design your system so that it can handle that delay

orchid fulcrum
#

can you tell me the eastimate delay

haughty kernel
#

Unfortunately no, I cannot. We do not have any specific guarantees. This is why you need to listen for the account updated event.

It looks like you created this account in Test mode (using your testmode key). In that case there are events that are fired

#

But you need to make sure you are listening for Test mode events

orchid fulcrum
#

i thing there should be one webhook as well

haughty kernel
#

This event was not sent to any webhook endpoints

orchid fulcrum
#

yes i am using test account

haughty kernel
#

That means there wasn't one set up to receive it when it was generated

orchid fulcrum
#

but i have setup this event can i share you my platform accoutn id where i ahve register webhook for the updated account

#

?7

#

acct_1Pv37VRvOCLWc0jZ
this is my platform account id

#

please chekcout this one

haughty kernel
#

That is a normal webhook

#

You need to set up a webhook for Connect Events

#

The webhook you have now will only show you events that occur on your account

orchid fulcrum
#

ohh i see

haughty kernel
orchid fulcrum
#

can you please tell how can i register

#

Snufkin Thank You very much
i do not have words for you the way you helped me

#

thaks a lot

haughty kernel
#

Great! I'm happy I could be helpful ๐Ÿ™‚