#sidi_code
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/1220465948742521004
📝 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.
- sidi_code, 13 minutes ago, 3 messages
Hey there, I explained this in the previous thread already. Did you see that response?
But I’m asking if there is any way to check that programmatically?
For example when I get the code, I need to check it’s used already or not
If it’s used I will avoid passing it to this code ```
const response = await stripe.oauth.token({
grant_type: "authorization_code",
code,
});
No there is no way to do that, aside from tracking the codes in your own system to check if you've already consumed it
The problem is that I get a different code every time
That’s the issue
And this is what I use for authentication to get the code:
https://connect.stripe.com/oauth/v2/authorize?response_type=code&client_id=${process.env.STRIPE_CLIENT_ID}&scope=read_write&state=${state}&stripe_user[email]=${session.user.email};
Hmm that doesn't sound like what I expect, this is usually the same auth code being processed twice leading to this error
Do you have a specific example account where this is happening?
I use the test mode now
I noticed this problem many times before I join this server
It’s been now 2 weeks trying to build this integration.
I'm really tired tho.
Even when the auth succeeded I get the code but I don’t see any users being registered in stripe connect
Can you share a specific account ID you're trying to connect?
Note that this can have odd behaviour if you try to load that link in the same browser there you're logged in with your paltform account
and should use another browser for a test account to be conencted, or a private browsing tab
Ah, maybe
I will try and see, can you please keep this thread opened? It’s been now 2 weeks trying to fix it
Yep, we can keep open for a bit, my colleague will be hopping on shortly and can help after you give that a try
My suggestion would be to create a separate test dashboard account to log into with a test mode account, then try connecting to your test application client id
Directly from https://stripe.com ?
Yep, that should do it. As my teammate mentioned, you should try to do this from a private browser tab, a different browser profile, or a different browser altogether
Okay, I will try, and normally I should see a connected user from dashboard when authentication succeeds unlike this?
Are you searching within your Dashboard to get to this message or just navigating to a specific page?
This is my stripe connect dashboard
Can you share the URL? I think you're clicking on the "Connect" section on the left but just want to be sure
I was thrown off by the "There aren't any results for that query" message. So yes, after the connected account connects to the platform, you should see an account listed on this page