title: Stripe Connect PHP - Split Payments?
body: <p>I'm using the Stripe Connect API with Managed Accounts to distribute payments to service providers on my app.</p>
  
  <p>Our app would like to take 20% of each charge, and then distribute the rest to the service provider.</p>
  
  <p>I know I can take the full amount of a charge and send it to a managed account, like so:</p>
  
  <pre><code>\Stripe\Stripe::setApiKey('sk_live_xxxxxx');
  
  $charge = \Stripe\Charge::create(array(
       "amount" =&gt; (int) $payment,
       "currency" =&gt; "usd",
       "customer" =&gt; $customerID,
       "destination" =&gt; $providerID
  ));
  </code></pre>
  
  <p>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.</p>