#SlamDuncan

1 messages · Page 1 of 1 (latest)

mortal oysterBOT
unborn pagoda
#

Hello! What type of connected account are you using? Standard, Express, or Custom?

torn magnet
#

standard

#

It seems if I create a checkout session for the specific connect account, it can find the product, because the product is under the connect account, but then cant find the customer, because the customer is under the platform acct

unborn pagoda
#

For Standard accounts you should be creating direct charges on the connected account, which means you should create the Checkout Session on the connected account instead of your platform account using a Connect request: https://stripe.com/docs/connect/authentication

#

When you do that you can use the Products and Prices set up on the connected account, as the Checkout Session will be on the same account where those Products and Prices exist.

torn magnet
#

Right. I get that. But then how do I charge a customer in the platform account, when the customer isn't under the connect account? My app has users and hosts. The user will have a customer acct under the plaform with theri billing info. And the host will have a connect acct for collecting payments

unborn pagoda
torn magnet
#

k ill take a look

#

It seems the issue with this is that the customer in the platform account doesn't have a connect account. I'm not charging a connect account. I just want the sell to be contributed to the hosts connect acct. Imagine an airbnb user is a customer in the platform and the airbnb host has a connected account. The customer is charged, then the host is contributed the sale

unborn pagoda
#

Right, that's the correct approach for this. Your platform account creates a Checkout Session on the Standard connected account (which is owned by the person who owns the airbnb), and that Checkout Session is used to charge the Customer. Then a portion of the funds are kept by your platform as an application fee.

torn magnet
#

Ok. Since the user is a customer under platform account and then I create a connect check out session, how do I get that customers under the platform accounts payment method to charge. I want to prefill it in the checkout session. Are you thinking I can use the clone payment method to use in the connect checkout session?

unborn pagoda
#

You can clone the Payment Method to a Customer on the connected account and then create a Checkout Session for that Customer.

torn magnet
#

So essentially, the only reason I would need a platform customer account is to keep the payment method for the user, because new customer under the connect account won't have the same customer id as the customer in the platform acct?

#

Thanks for the patience

#

Or is there a way to clone the platform customer to the connect acct, so all of the platform customer's purchases are under one roof, in the platform cust acct, even of they purchase from a coneect acct

unborn pagoda
#

The common approach for things like this with Standard accounts is to have Customer object on the platform that represents the Customer, then you clone their Payment Method as needed to your Standard connected accounts to create payments there. Usually you wouldn't create a Customer on the Standard accounts, you would clone the Payment Method for each transaction.

#

That way the Customers exist only on the platform, but the transactions exist on the Standard accounts.

#

There is no way to clone the Customer. You would need to create a separate Customer on the connected accounts as a stand-in for the Customer on the platform, and they'll have different IDs.