Skip to content

Commit

Permalink
Define introduce principal entity
Browse files Browse the repository at this point in the history
define which entity must be use as principal with no fee and everything else (cf stripe API)
  • Loading branch information
ptibogxiv committed Aug 12, 2018
1 parent dd9751c commit 4d34725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/stripe/class/stripe.class.php
Expand Up @@ -440,7 +440,7 @@ public function createPaymentStripe($amount, $currency, $origin, $item, $source,
"source" => "$source",
"customer" => "$customer"
);
if ($conf->entity>1 && $fee>0)
if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $fee>0)
{
$paymentarray["application_fee"] = $fee;
}
Expand Down

0 comments on commit 4d34725

Please sign in to comment.