Update stripe.class.php

This commit is contained in:
ptibogxiv 2019-07-18 09:58:26 +02:00 committed by GitHub
parent fed598236c
commit 27a0c046df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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