#ortega_connect-link
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/1288164820419481741
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
ortega_connect-link
Hey @wary mirage ! The way the question is framed makes me think you might not really understand how Connect works overall.
Can you give a couple of sentences of context? Why are you using Connect? Is this something someone on support recommended?
No, I do not recommend support. What I am implementing is because the parent company is a corporation. One of the companies (daughter of this corporation) is a franchise, so each franchise has its location and information. I want every purchase that is made to go to the corresponding franchise.
Do I explain?
Barely ๐
Who guided you to use Connect that way? Did anyone recommend this flow to you already?
I have been reading the documentation and I understand that it is the best option for what I need.
Or do you recommend creating a Stripe account for each franchise?
Implement this because when a user signs up for the app, they do so at the same time on the main Stripe account.
Do I explain?
A customer in stripe.
To recycle the client for each payment he makes.
I'm sorry I'm really struggling to follow your train of thoughts right now ๐ฆ
Yes Stripe Connect could work. Each franchise could be a separate Stripe account connected to your platform. But I don't really understand who owns the account for each franchise, who creates them, what your goals are, etc.
No problem, give me a few minutes and I'll make a sketch to explain it.
I create them for each franchise account but I don't know how to link them to the main account.
Is there someone at Connect Stripe I can talk to?
But why are you creating them, do you own them? Sorry there are dozens of ways to integrate our products and APIs and it's quite hard with the few sentences you shared
I'm an expert on our products. There's no need to connect to someone on that team.
It is really uncommon to create all the accounts by hand yourself and connect them. It's not impossible, but it's rarely what you want and should do. So I'm still trying to figure out what you are trying to do and how you got down that path
This is what I want to implement
Okay but that doesn't tell me much honestly ๐
What is your exact flow of funds that you're aiming for?
What I want to achieve is that the order goes to the corresponding franchise, if the user wants a product from location 1 the money goes to the account of location 1. Each location will manage and pay its taxes and stripe fees independently.
But
When a user signs up for the app, the customer is simultaneously signed up for stripe. I don't want the customer to sign up for stripe on all stripe accounts.
Do I Explain?
I want a master account to register customers in Stripe, and when a customer wants to purchase, use the registered customer of the master account and divert the payment to the account of the corresponding place where the product was purchased.
Yeah I get what you want though I worry you underestimate how complex this is going to be to build
But to answer your original question, you connect the franchise using this flow: https://docs.stripe.com/connect/oauth-standard-accounts
Because you said so?
I'm not underestimating, what I want to achieve is to make the application efficient for the user and for the use of the Stripe API.
Sounds good!
That's fine
If you have to implement it, how would you do it? Do you create an account for each location and when a user registers in your application at the same time, they are registered in all accounts independently?
https://www.youtube.com/watch?v=X-VKDdk052Q I recommend watching that video that someone on my team published
Or would you create an account in Stripe where you save all the new customers and create child accounts so that when the user buys, the user recycles and the money goes to the location corresponding to the order?
But note that it's going to be really hard to build right
๐ฆ
The problem is there are many ways to build what you are after and it depends a lot on your business model, your risk appetite and your preferred integration experience. I can't make those decisions for you. Usually those are things you carefully think of upfront and once you pick the decisions that matter it tells you how to integrate.
Correct!
The example video is perfect, the first few minutes tell what I want to implement. It is cloning the customer and the payment attempt on the connected account.
correct
One question, does every account created need to be verified for testing purposes?
And othe question
Can I just use the secret key of the main account?
first question: yes, that mirrors what would happen in production
second question: yes you would only use the main account's API keys. And then you pass the connected account id for each franchise in the Stripe-Account header when relevant, see https://stripe.com/docs/connect/authentication#stripe-account-header
sure thing!