Merge pull request #11621 from ptibogxiv/patch-205

Fix application_fee_amount
This commit is contained in:
Laurent Destailleur 2019-08-10 01:38:30 +02:00 committed by GitHub
commit 5dc2fd8ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,7 +403,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)
{ {
@ -729,7 +729,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)
{ {