Merge pull request #11565 from ptibogxiv/patch-199

Fix application_fee name stripe.class.php
This commit is contained in:
Laurent Destailleur 2019-07-30 21:34:19 +02:00 committed by GitHub
commit cd07596b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,7 @@ class Stripe extends CommonObject
if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $stripefee > 0) if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $stripefee > 0)
{ {
$dataforintent["application_fee"] = $stripefee; $dataforintent["application_fee_amount"] = $stripefee;
} }
if ($usethirdpartyemailforreceiptemail && is_object($object) && $object->thirdparty->email) if ($usethirdpartyemailforreceiptemail && is_object($object) && $object->thirdparty->email)
{ {
@ -732,7 +732,7 @@ class Stripe extends CommonObject
); );
if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $stripefee > 0) if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $stripefee > 0)
{ {
$paymentarray["application_fee"] = $stripefee; $paymentarray["application_fee_amount"] = $stripefee;
} }
if ($societe->email && $usethirdpartyemailforreceiptemail) if ($societe->email && $usethirdpartyemailforreceiptemail)
{ {