#vmehtawhq_api

1 messages ¡ Page 1 of 1 (latest)

smoky mulchBOT
#

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

empty jewel
#

Hi, could you elaborate a bit more. How exactly are you using prefetch?

spice totem
#

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 ?

empty jewel
#

Yes looking. Do you follow any Doc URL?

spice totem
empty jewel
spice totem
#

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

empty jewel
#

Sorry gimme a few mins

#

Hmm but did you finish the authentication flow to create a Finanacial Connection Account?

spice totem
#

It's already there in payment method, won't that work?

#

fca_1PjFFMHFzwE4pTgeoNqTvskm

empty jewel
#

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

spice totem
#

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

empty jewel
#

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.

spice totem
#

Firstly: 1. Does this mean prefetch will work only once when creating a PM?
2. Or does this mean while creating a PM we have to specify prefetch?
Secondly, how can I access balance with every new intent created?

#

@empty jewel

empty jewel
#

I think 1. and 2. is the same. Prefetch only work on creating new PM

#

When you create an Intent with an existing PM, you would want to manually call the Refresh API