#James Tuttle ๐Ÿ‡บ๐Ÿ‡ธ

1 messages ยท Page 1 of 1 (latest)

rustic carbonBOT
foggy warren
#

I can see some things getting added to the Stripe account and events but I am not getting the onboarding and TOS part at all....

cursive python
#

So to clarify: you are a Connect platform and your "customer" represents an entity/individual that will be paid through you?

foggy warren
#

Creating a React App so client and their customer can signup with their business info and rates.

They submit form and I have it add to the Firebase Collection for our DB.

=> NOW I need to take the createCustomerAccount that is called in cloud functions (it does and works)

NEXT need to take that link to redirect them to Strip onboarding (I know we can pass the data we collected (address...) to pre-fill Strips onboarding....

#

Yes, Connect PLatform

cursive python
#

Okay cool. Note that in our API a Customer represents the person/entity paying for something. So it's a completely different minning.
An Account is the person/entity paying out

#

So now with that out of the way: you need some place where your code is going to create an Account via https://stripe.com/docs/api/accounts/create and then for that Account you create an AccountLink https://stripe.com/docs/api/account_links/create which returns a one-time use URL that you are going to redirect your customer to.
This is a full page redirect so really you do this the same way you'd handle a full page form submission or similar.
Alternatively, your back end/code returns the URL and client-side you redirect

foggy warren
#

since using firebase cloud functions I DO NOT need to have a BE server running?

cursive python
#

I don't think so, you can run code on that right? Like your code there already can use Stripe's API?

foggy warren
#

was when using the cloud function the other day, data was getting to Strip dashboard (just missing the onboarding redirect)