#lounis_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/1331662077307392082
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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?
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
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?
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
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.
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?