#KarolinaRw-Connect

1 messages · Page 1 of 1 (latest)

viscid storm
#

Do you pass the customer Info when creating the checkout session?

white glen
#

I only do this with the customer:

#

var serviceCustomer = new CustomerService();
serviceCustomer.Create(customerOptions);

#

not to the session

#

var service = new SessionService();
Session session = service.Create(options, requestOptions);

#

But I cant find how to pass in the customerService to the session?

viscid storm
#

OK, here's my suggestion

#
  1. Create a new customer object (including the meta) on the connected account first
  2. When you create the Checkout Session on connected account, pass in the customer ID that you just created
white glen
#

Ok, but how do I create a customer object to the connected account? and I can not get the customer Id on the customer I just created, it seems to be null?

viscid storm
#

you call the same customer creation API with stripeAccount=connectedAccountId

white glen
#

Okay! thanks, I will try to do that.

white glen
#

Did you mean it like this? because it didnt work.. var requestOptions = new RequestOptions
{
StripeAccount = connectedAccountId
}; serviceCustomer.Create(customerOptions, requestOptions);