#KarolinaRw-Connect
1 messages · Page 1 of 1 (latest)
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?
OK, here's my suggestion
- Create a new customer object (including the meta) on the connected account first
- When you create the Checkout Session on connected account, pass in the customer ID that you just created
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?
you call the same customer creation API with stripeAccount=connectedAccountId
Okay! thanks, I will try to do that.
Did you mean it like this? because it didnt work.. var requestOptions = new RequestOptions
{
StripeAccount = connectedAccountId
}; serviceCustomer.Create(customerOptions, requestOptions);