Fix application_fee name stripe.class.php

stripe changes name without change API :/

application_fee_amount for amount application_fee for %
This commit is contained in:
ptibogxiv 2019-07-26 14:16:28 +02:00 committed by GitHub
parent a46bfc7a29
commit e464e2e1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,7 +404,7 @@ class Stripe extends CommonObject
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)
{
@ -731,7 +731,7 @@ class Stripe extends CommonObject
);
if ($conf->entity!=$conf->global->STRIPECONNECT_PRINCIPAL && $stripefee > 0)
{
$paymentarray["application_fee"] = $stripefee;
$paymentarray["application_fee_amount"] = $stripefee;
}
if ($societe->email && $usethirdpartyemailforreceiptemail)
{