c# - Stripe.net How to link customers to managed accounts? -


i working on platform have multiple managed accounts. accounts have customers created under them. can create either of them using stripe.net, i'm not sure how link them (or done behind scenes?)

i realize manually execute charges , add charge.destination field stripechargecreateoptions, have manually schedule charges instead of using plan.

i'm wondering how can check account balances of managed accounts. api:

"retrieves current account balance, based on authentication used make request."

var balanceservice = new stripebalanceservice(); stripebalance response = balanceservice.get(); 

i'm not sure how set use managed accounts authentication.

in other words want have customers charged based on plan , have added managed account's balance created under. have balance transfer bank account on schedule (which see configurable on managed account object).

any appreciated.

to answer own question simple need add:

striperequestoptions account = new striperequestoptions(); account.stripeconnectaccountid = accountid; 

and pass customer create function. can pass balance service account balance.


Comments