#_iapp_technologies_llp
1 messages · Page 1 of 1 (latest)
Hi
Can you share more details about your flow please ?
Hi
Yes, initially when I come to the application i get connect to stripe and then as soon as I put my registered email, I am redirected on the base of my exisiting account status to either sign up or login page.
But several times even though I had an account I was redirected to sign up page.
And more than 1 stripe IDs were appended with my stripe account email.
Hence duplicity was created and then when I logged in to see my products customers and invoices, I was shown an empty list because I was logged in to the duplicate account rather than my original one.
But several times even though I had an account I was redirected to sign up page.
Who is maintaing this ?
Are you the developper/maintainer of that flow/website
I am the developer
The user clicks on connect with stripe
Then is redirected to the enter email screen
This is stripe webview
After this even if my Account exists which I create, I am being redirected to signup flow and then am allocated a new stripe ID
Are you using the Same Email ?
Yes I am using the same mail from which I signed up.
Can you share the two accounts Id with the same email ?
Yes for sure.
acct_1OOvKW4JvOlRdotz
acct_1OOBAF4JWfRUurHs
Here you go
They were with this email: tester@studioproper.com
Hello,
Can you please provide me a solution.
thanks for sharing, checking...
Can you share the code that displays that Stripe Connect button ?
Sure.
Code snippet for Front End (Native iOS --> Swift)
Code snippet for backend (Laravel)
One last thing please, is it possible to share the resulting connect login url ?
Please can you provide me assistance
The outcome of multiple accounts with the same ID is expected. We don't de-duplicate accounts by email address. If you want to use an existing acct_xxx then you should map that against a user/email in your app
Can you please elaborate for better understanding
Can you please let me know how can we create the URL without knowing that it will be used sign up or login. In case of sign up it works correctly but in case of login it creates two users.
Whenever you create an Account and Account Link (like this), the outcome of that will be a new, unique acct_xxx ID. We don't prevent multiple accounts with a single email address
They're all just rolled up into a single Stripe login, and you can switch between them in the Dashboard
You can't, that is soemthing your application will need to implement. So in your system you'd map the acct_xxx from Stripe alongside a email/usewr in your system. If that user already has a acct_xxx then you don't create a new account for them
So how can we handle this on our end please let me know.
We are facing issues with products, customers and invoices that we create in these accounts as everytime a new account is created, products, customers and invoices are not synced with the new account.
I answered that above I think
We are saving the account id with the email of the user, but if the user logs out and then creates a new URL to login, he gets connected to the new account id and his products are in the old account id.
How can i know during the webview of stripe if the email is a new one or an existing email so as i can stop the user from being created with a new account id.
You can't unfortunately. There's no way to retrieve an acct_xxx ID by email address, other than listing them all and filtering locally
Can I delete these duplicate accounts that are being created?
If they're test accounts you should be able to yes
But if the same scenario is on live, then how do I handle this?
You cannot delete standard accounts in live mode as the platform
Okay if I take the emails initially from the user and check its existence as an account, and based on that hit the login or sign up api, it should work fine right??
Yes I'd imagine you should be handling email uniqueness in your app so that x@x.com can only ever have 1 account. And that account in your app will map to a unique acct_xxx at Stripe, and when theyre signed in prevent wny further account creation at Stripe
Okay thank you for the update. I will check this.