#el-feloe_oauth-onboarding
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/1440452020136841448
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hello, are you able to share the code you are using to connect the account ?
Hello, yes so basically in our app we check for the presence of a billing account. If no billing account exists the user is presented a view with a button that when clicked calls our api to do some validation and returns a url
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=MY_ID&scope=read_write&redirect_uri=MY_REDIRECT_URL&state=MY_STATE
We receive this url and open up a browser with this url.
Trying to test this now.
In the url I set placeholders such as MY_ID to not expose those secrets ๐
Hi there,
taking over for my colleague and catchin up. Just to clarify for my understanding. You'ver sent the oauth link to a customer to onboard another account, but in the onboarding UI they did not see the other accounts of the customer to choose from but were redirected to the Dashboard?
Hello,
when we onboard a user they do it through our app. When they login to our app the first thing we check is whether they have a billing account which includes their stripe customer id. If they do not have a billing account they are presented with a view which prompts them to click a button to connect with Stripe or change account.
When the button is clicked it makes a request to our api which does validation and returns a stripe oauth url ```https://connect.stripe.com/oauth/authorize?response_type=code&client_id=MY_ID&scope=read_write&redirect_uri=MY_REDIRECT_URL&state=MY_STATE
We grab this url and open up a Browser window. From there they complete the onboarding process.
As I mentioned to you colleague, whenever I log in to register a new test business I am prompted to select an existing account I would like to connect to or create a new account. My client logged in with the account he created the first time we onboarded him and instead of prompting him to select his existing account or create a new account, he was automatically redirected back to our app with a success code which linked his second location to the original account.
Does that make sense? Sorry for the long text
When you say we check wether they have a billing account means you check in your own database?
When you say When the button is clicked it makes a request to our api which does validation and returns a stripe oauth url does that mean you create the OAuth link through the API?
When you say My client logged in with the account he created the first time we onboarded him and instead of prompting him to select his existing account or create a new account, he was automatically redirected back to our app with a success code which linked his second location to the original account. does that mean he has multiple accounts under the same email address?
Sorry for all the questions, just want to make sure I understand what exactly is happening and if we are the right team to help you here.
Correct we check our database for the existence of billing details. These only exists after they successfully go through the Stripe Connect onboarding form.
Correct the api creates the url and returns it to the app. The app then opens a browser window with said url.
For simplicity, we wanted the clients to be able to access all their accounts under one email. They currently only have one account tied to their email.
For example, today they have pizza place #1 account under their email. Since we are onboarding their second location we wanted pizza place #2 to be under the same email to make it easier for them to not have to remember multiple emails/passwords.
So does pizza place 2 already exist as a stripe account or would they have to create that account?
Ok, and there was no button to create a new account?
I just tested this in my account and it shows me my pre-existing accounts i can connect or create a new account.
No.
I was expecting that flow as well but it didn't prompt me to select and account.