#eddy_api

1 messages · Page 1 of 1 (latest)

lone emberBOT
#

👋 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/1400652898228240474

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

indigo ocean
#

Hi there, you encountered this error because the financial connection account was created on the platform, but you pass this fca to a setupIntent creation request that was created on a connected account

limpid niche
#

Oh hello Jack thanks for the reply. I’ll come back in few hours with the code + screenshot but I have a weird error when trying to add the FC on the behalf of the connected account

indigo ocean
#

Hi @limpid niche the thread may be closed after being idle for some time. Feel free to use the button in #help to create a new thread when you are back.

limpid niche
#

Hi @indigo ocean, thanks for your help! I've implemented the change you suggested but I'm still getting an "unexpected_error" from the React Native SDK.

Here's my current implementation:

Backend - Creating FC session on connected account:
const session = await stripe.financialConnections.sessions.create(
  {
    account_holder: {
      type: "account",
      account: ctx.user.stripeAccountId
    },
    permissions: ["payment_method"],
    filters: { countries: ["US"] },
  },
  {
    stripeAccount: ctx.user.stripeAccountId // Creating ON the connected account
  }
);

Frontend - React Native:
const { session, error } = await collectFinancialConnectionsAccounts(
  clientSecret,
  {
    onEvent: (event) => {
      console.log("Event received:", event);
    },
  }
);```

The error I'm getting:
- The FC session is created successfully (I get a valid client_secret)
- When the React Native SDK tries to open the FC flow, I get:
LOG Event received: {"metadata": {"errorCode": "unexpected_error"}, "name": "error"}
- The UI shows "Failed to connect"
indigo ocean
#

Did you intialize the react native SDK with stripeAccount= connected account ID?

limpid niche
#

oh damn thank you let me check

#

How I missed it

#

might be this

#

thank you it worked!!!

lone emberBOT