I'm using the Stripe Connect API with Managed Accounts to distribute payments to service providers on my app.
Our app would like to take 20% of each charge, and then distribute the rest to the service provider.
I know I can take the full amount of a charge and send it to a managed account, like so:
\Stripe\Stripe::setApiKey('sk_live_xxxxxx');
$charge = \Stripe\Charge::create(array(
"amount" => (int) $payment,
"currency" => "usd",
"customer" => $customerID,
"destination" => $providerID
));
But is there a way to only send 80% (or any partial amount) of a payment to the destination account, keeping the rest in our umbrella account? I really don't want to have to charge a customer's card twice just to facilitate this model.