#lounis_api

1 messages ยท Page 1 of 1 (latest)

misty flaxBOT
#

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

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

subtle nymphBOT
autumn swallow
#

Hi there ๐Ÿ‘‹ did the request saying you need to use a publishable key provide an ID for that request? It should have an req_ prefix.

#

Were you using your publishable key when initializing the StripeProvider in your app?

misty flaxBOT
lime stream
#

Hey, so the full error is this:
Connect platforms based in FR must create accounts via account tokens when controller[requirement_collection]=application, which includes Custom accounts. For documentation on account tokens, see https://stripe.com/docs/connect/account-tokens.

The id is this: req_VZyn2Yk58MwT59

I was using the publishable key yes

boreal badge
#

Hello! I'm taking over and catching up...

#

I don't have much to add beyond what the error message says. Do you have a question about it? How can I help?

lime stream
#

Haha understandable,
I am using an account token that i create on the backend. It works fine in staging but in production the error says this:

      // You should only create account tokens in your client application (e.g., using Stripe.js or the Android or iOS SDKs)
      // and never from your application server.
      // Creating account tokens from your application server may cause you to fall out of compliance with certain regulations.

Sorry I forgot to include the important bit apparently

boreal badge
#

So that explains the issue. You're creating the token on your server, which you can't do. You have to create it client-side.

lime stream
#

But since I'm using React native, I wasn't able to find the documentation for that part. I know you have it on the Android or iOS SDKs but perhaps not for react native?