#milashin_im-connect
1 messages · Page 1 of 1 (latest)
In the examples, only the creation of a new customer. I need one customer to be associated with several connect accaunts
@tiny quiver you don't directly, the Stripe API itself doesn't have any link between customers and connected accounts.
Just to confirm, you are doing this thing where you charge a customer and then transfer the funds from the charge to a connected account, as a form of topup/wallet, correct?
I have owner and tenant, I create in stripe connect account for owner and customer for tenant. I now need to make payment from the tenant to the owner. How do I do that?
Using the API
and the owner is an Express account?
yes
then you use a Destination Charge : https://stripe.com/docs/connect/destination-charges
it should be covered in the guide you should be using https://stripe.com/docs/connect/collect-then-transfer-guide -> https://stripe.com/docs/connect/collect-then-transfer-guide?platform=web#accept-payment
they're the same, it's just two links to the same place as far as I know
No. They have a different list customers
your second screenshot is zoomed in so I can't really tell what you're looking at
maybe it's a different account? Maybe one screenshot is livemode and the other is test mode?
cool
so you are looking at specific connected account
those are the customer objects that exist on that account.
which are entirely distinct from any customer objects you created on your platform account.
So I can't connect one renter to many owners?
you can, if you use Destination charges
since that uses a Customer object you create on your platform account. (you would never create a Customer on the connected account like you have in your screenshot there)
Ok. Thank you very much.
StripeConfiguration.ApiKey = "{{PLATFORM_SECRET_KEY}}";
var customerOptions = new CustomerCreateOptions
{
Email = "person@example.edu",
};
var requestOptions = new RequestOptions();
requestOptions.StripeAccount = "{{CONNECTED_ACCOUNT_ID}}";
var customerService = new CustomerService();
Customer customer = customerService.Create(customerOptions, requestOptions);