#adhi14058_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/1359133203037814794
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
I'm not really sure I understand the ask here
would you mind elaborating please?
Sure
I am working on an App similar to shopify.
We have different merchants who create an account on our app. Each merchant has to connect to stripe to enable payments. We are using the stripe page for connection. stripe redirects back to our app callback with a code which we use for getting the token.
The issue is that, sometimes we have a merchant who creates multiple accounts in our application. And he decides to link the same stripe account with those multiple accounts
Stripe only allows one account to be connected to one app. so when the user tries to connect the stripe account to another app (in my case its the same app - shopify, but different account in shopfy), the first shopoft account get a deauthroize webhook which basically revokes the token
What I would like to do is, Is there a way to know if an account is already conencted to someother shopify so that i can prevent the user from using the same stripe account to link to a new shopify account
We are using the stripe page for connection
What do you mean by this exactly?
Why do you want to connect existing Stripe accounts to your Platform?
It's recommended that you create a Stripe connected account for your users automatically yourself, and it's only connected to your Platform.
t's recommended that you create a Stripe connected account for your users automatically yourself, and it's only connected to your Platform.
This is what we are doing currently
stripeApi.oauth.authorizeUrl()
we use this method to get the link where the end user can complete the OAuth flow to authorize their account.
stripe redirects back to the callback endpoint with the code.
this we use in stripeApi.oauth.token() to get the token details.
stripeApi.oauth.authorizeUrl()
No, this connects an existing Stripe account to your Platform.
Instead you should create a new Stripe account connected to your Platform: https://docs.stripe.com/connect/standard-accounts#create-account
Ahh, Okay.
I am sorry but unfortunately, we already have 1000s of users who have already connected their existing accounts.
Is there anything we can do about it now?
Okay assuming currentlly I use existing stripe account. Is there a way to know if that account is already linked to some app
No, unfortunately there's no way to tell if an account is connected to another Platform. Generally you can be connected only to 1 Platform at a time.
I would suggest you to reconsider your approach for all new users.
So you avoid these issues in the future.
Sure. Thank you.