#Arvind hariharan

1 messages · Page 1 of 1 (latest)

toxic onyxBOT
lone lotus
#

Hi we were integrating the Stripe ACH in our framework and as recommended by Stripe we are trying to validate the Balance of the users bank account by setting the balances in the permissions attribute while creating payment intent

#

Based on this below doc-

foggy summit
#

👋 happy to help

lone lotus
#

It says we need to use the webhook in order to get the refreshed balance information and stripe emits financial_connections.account.refreshed_balance webhook.

#

And it is also mentioned that -

#

Optionally, you can request to prefetch balances, which retrieves balances on account creation. The prefetch parameter saves you from making another API call to retrieve data after account creation and reduces the latency of data retrieval.

#

So wanted to understand if we go via the prefetch route do we need to have webhook implemented to retreive the balanace details?

#

or is it something that we can get the latest balance information without getting any refreshed _balance webhook

foggy summit
#

give me a couple of minutes and will be right there with you

lone lotus
#

I mean do we need to always use webhooks or do we get the response of the refreshed balance immediately withing few seconds?

foggy summit
#

you can either do manual refresh requests, or use the webhooks to get a event notification when that happens

lone lotus
#

So its not like we need to always use webhooks right

#

if we call the stripe.financialConnections.accounts.refresh we would get the latest balance

#

my understanding is correct

#

?

foggy summit
#

once you listen to these events you will get all of the related events

#

regardless of whether you need them or not

#

it's up for your code to decide what to do with that information

lone lotus
#

Okay events means via webhook only?

foggy summit
lone lotus
#

okay fine