Update stripe.class.php
This commit is contained in:
parent
fed598236c
commit
27a0c046df
@ -392,14 +392,14 @@ class Stripe extends CommonObject
|
|||||||
"payment_method_types" => array("card"),
|
"payment_method_types" => array("card"),
|
||||||
"description" => $description,
|
"description" => $description,
|
||||||
"statement_descriptor" => dol_trunc($tag, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
|
"statement_descriptor" => dol_trunc($tag, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
|
||||||
//"save_payment_method" => true,
|
"setup_future_usage" => "off_session",
|
||||||
"metadata" => $metadata
|
"metadata" => $metadata
|
||||||
);
|
);
|
||||||
if (! is_null($customer)) $dataforintent["customer"]=$customer;
|
if (! is_null($customer)) $dataforintent["customer"]=$customer;
|
||||||
// payment_method =
|
// payment_method =
|
||||||
// payment_method_types = array('card')
|
// payment_method_types = array('card')
|
||||||
//var_dump($dataforintent);
|
//var_dump($dataforintent);
|
||||||
|
|
||||||
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"] = $stripefee;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user