Define introduce principal entity

define which entity must be use as principal with no fee and everything else (cf stripe API)
This commit is contained in:
ptibogxiv 2018-08-12 19:42:07 +02:00 committed by GitHub
parent dd9751c9cf
commit 4d34725b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}