#hendie_webhooks

1 messages ยท Page 1 of 1 (latest)

finite ermineBOT
#

๐Ÿ‘‹ 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/1234901597478326313

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

quasi latch
#

Have you checked the requirements hash on that Account object to see what might be causing payouts to be disabled?

#

Err, actually, it looks like the event you posted was sent via webhook with a payload that includes "payouts_enabled": true,

desert aspen
#

hmm, we'll check again

quasi latch
#

It's likely that your webhook handler is just looking for it in the wrong place, so I'd recommend logging the full contents of the payload and manually checking to make sure your handler knows where to get it

desert aspen
#

could be, but I was pretty sure we didn't find it, lemme check again

#

your new workbench is giving me headaches, I can't seem to find that event in it

#

this is what we got:

#

we found charges_enabled, but not payouts_enabled

quasi latch
#

Ahhhhh, I think it's because your API version is ancient. Let me check the changelog real quick and see if I can confirm

#

Are you only using workbench? Or are you also able to create an API request on your own?

desert aspen
#

well, the webhook is on v 2020-08-27

#

should that not determine what content events have?

#

we got that event on a local machine using stripe cli

#

and feeding into our app (also runnig locally) which recorded what it received

#

or does the stripe cli webhook conform to our platform version unless specified?

#

ok, I see the default for stripe listen is our api version, using -l would probably solve it

quasi latch
#

Ah! Yup, beat me to it

desert aspen
#

thanks man

#

I really do need to upgrade our platform api version

quasi latch
#

It does come in handy to have access to the latest. That's for sure

finite ermineBOT
desert aspen
#

one more question related to connect: is it sufficient to look at charges_enable: true && payouts_enabled: true to determine if a connected account is fully operational?

limpid ledge
#

Hello! I'm taking over and catching up...

desert aspen
#

sure

limpid ledge
#

That's sufficient in many cases, yes, but it depends on what you mean by "fully operational".

#

If your definition of "fully operational" includes, say, the us_bank_account_ach_payments capability, then you would also want to check for that as well, as an example.

desert aspen
#

ah, gotcha, so traverse the capabilities list and check that all are active?