From 4d34725b233a46c3849b4afd75ef66dee976ebdc Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 12 Aug 2018 19:42:07 +0200 Subject: [PATCH] Define introduce principal entity define which entity must be use as principal with no fee and everything else (cf stripe API) --- htdocs/stripe/class/stripe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index b38f487d8ff..d6c6268dc4e 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -440,7 +440,7 @@ class Stripe extends CommonObject "source" => "$source", "customer" => "$customer" ); - if ($conf->entity>1 && $fee>0) + if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $fee>0) { $paymentarray["application_fee"] = $fee; }