#aham1141_api

1 messages ยท Page 1 of 1 (latest)

wet cedarBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

keen skiff
#

I suppose one thing to head-check up front: I have been doing this without a customer simply because no customer really exists for the connected account I create. Is that the issue here? Am I required to create a Customer in order to use Financial Connections? Can I just create an arbitrary customer and work with that?

midnight sageBOT
delicate owl
#

Hi ๐Ÿ‘‹ I don't think a Customer is needed here. Offhand I'm thinking this guide may be wrong. Right now the Payment Method is being created on the Platform account, and then can't be used by requests made by your Connected Account, I'm pretty sure.

If you drop the stripeAccount header from the request to create the Token and External Account, do you stop seeing errors?
The steps starting here:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&lang=node&shell=true&api=true#create-an-external-payouts-account

keen skiff
#

Hmmm one sec

#

I don't think that's right. Once the FinancialConnections UI is run and completes I DO end up with a FinancialConnections account ("fca_xxxxxx") and a FinancialAccount ("fa_xxxxx") both of which can be accessed via the API for that connected account.

#

The SetupIntent I create is created on behalf of the connected account which I believe should result in the PaymentMethod being setup on the connected account right?

#

Lemme experiment with removing those headers tho

#

Request: req_DuLfCbIClKTNAh for reference

delicate owl
#

The SetupIntent I create is created on behalf of the connected account
Can you elaborate on this? I didn't see the use of either on_behalf_of or the stripeAccount header in the guide for creating the Setup Intent.

keen skiff
#

I am creating the SetupIntent as :

params := &stripe.SetupIntentParams{
        AttachToSelf: stripe.Bool(false),
        FlowDirections: []*string{
          stripe.String(string(stripe.SetupIntentFlowDirectionOutbound)),
          stripe.String(string(stripe.SetupIntentFlowDirectionInbound)),
        },
        PaymentMethodTypes: []*string{stripe.String("us_bank_account")},
    };

    params.SetStripeAccount(acct.ID)

This is in Go. params.SetStripeAccount() sets the account header to the connected account. Which seems to work since the FinancialAccount is created in the connected account after the Financial Connections UI runs.

delicate owl
#

Oh, hm, that's not what I'm seeing in the guide. Is that what you've been doing the entire time, or did you change that after we started chatting?

keen skiff
#

It's been that way from the start

#

I suppose I could try taking the connected account out of the flow entirely and try setting something up against the root account. Gimme a second

delicate owl
#

Yeah, I'd start by trying to follow the guide verbatim, and then make adjustments only if that doesn't work.

keen skiff
#

So that does work. If I create the SetupIntent without the connected account involved I can tokenize the resulting payment method. Lemme see if I can actually attach that to a connected account tho.

#

Oh great!!!

#

That totally worked

#

Thank you so much

delicate owl
#

Woohoo! Glad to hear you were able to get that sorted out