add statement descriptor as newpayment.php

This commit is contained in:
ptibogxiv 2018-08-08 10:12:25 +02:00 committed by GitHub
parent f6e5b71f21
commit 78edd035f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ class Stripe extends CommonObject
"amount" => "$stripeamount",
"currency" => "$currency",
"capture" => true,
// "statement_descriptor" => " ",
"statement_descriptor" => dol_trunc(dol_trunc(dol_string_unaccent($customer->name), 6, 'right', 'UTF-8', 1).' '.$description, 22, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt
"description" => "Stripe payment: ".$description,
"metadata" => $metadata,
"source" => "$source"
@ -409,7 +409,7 @@ class Stripe extends CommonObject
"amount" => "$stripeamount",
"currency" => "$currency",
"capture" => true,
// "statement_descriptor" => " ",
"statement_descriptor" => dol_trunc(dol_trunc(dol_string_unaccent($customer->name), 6, 'right', 'UTF-8', 1).' '.$description, 22, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt
"description" => "Stripe payment: ".$description,
"metadata" => $metadata,
"source" => "$source",
@ -434,7 +434,7 @@ class Stripe extends CommonObject
"amount" => "$stripeamount",
"currency" => "$currency",
"capture" => true,
// "statement_descriptor" => " ",
"statement_descriptor" => dol_trunc(dol_trunc(dol_string_unaccent($customer->name), 6, 'right', 'UTF-8', 1).' '.$description, 22, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt
"description" => "Stripe payment: ".$description,
"metadata" => $metadata,
"source" => "$source",