#vmehtawhq_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1278218510568263802
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, could you elaborate a bit more. How exactly are you using prefetch?
I want to get and check the balance of an ACH account and so, I am passing prefetch parameter in the payment intent object
params := &stripe.PaymentIntentParams{
//..... rest all params FinancialConnections: &stripe.PaymentIntentPaymentMethodOptionsUSBankAccountFinancialConnectionsParams{
Prefetch: []*string{
stripe.String(string(stripe.PaymentIntentPaymentMethodOptionsUSBankAccountFinancialConnectionsPrefetchBalances)),
},
Permissions: []*string{
stripe.String(string(stripe.PaymentIntentPaymentMethodOptionsUSBankAccountFinancialConnectionsPermissionPaymentMethod)),
stripe.String(string(stripe.PaymentIntentPaymentMethodOptionsUSBankAccountFinancialConnectionsPermissionBalances)),
},
},
},
},
PaymentMethod: stripe.String("pm_xxx"),
}
paymentintent.New(params)
What happens after I use prefetch parameter here?
How will I get the balance?
Will this allow me to not use refresh api?
@empty jewel ?
Yes looking. Do you follow any Doc URL?
https://docs.stripe.com/financial-connections/balances?lang=go#initiate-balance-refresh
but this doesn't specify if I will get a webhook when using prefetch or will I have to use refresh api when using prefetch.
I see. This should trigger a refresh process under the hood as soon as creating the connection (it replaces the first Refresh call). Then you can listen to the webhook event https://docs.stripe.com/api/events/types#event_types-financial_connections.account.refreshed_balance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I just created this intent: pi_3PseKsHFzwE4pTge19akCfjW but I didn't get any webhook.
How long does this takes?
I have used payment method pm_1PjFKxHFzwE4pTgeDZJljr2y which has FC
Configured webhook: we_1Pg3fhHFzwE4pTgeQ7z7ZfCP
Sorry gimme a few mins
Hmm but did you finish the authentication flow to create a Finanacial Connection Account?
Oh sorry yes you are right
Ah I see, you are passing an old PM on creating a PaymentIntent
The prefetch only works for newly created PM after creating PaymentIntent
I guess you still need to manually call Refresh for this fca
What do you mean by old PM, like how old is old and why is this the case? This have FCA, so why not balance refresh works here
Newly created PMs will get old too right
Old means the PM was created back from Aug 2, but you are creating a PI today
The prefetch parameter works for:
Specify whether you want to prefetch account balances before account collection. This initiates the refresh process as soon as your user connects their account in the authentication flow.