mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
Add customer statement descriptors for Stripe
This commit is contained in:
parent
b71e3a19af
commit
9634c4442f
@ -728,7 +728,7 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
App::setLocale($this->client->company->locale());
|
||||
|
||||
if (! $this->payment_hash || !$this->client)
|
||||
return ' ';
|
||||
return 'x';
|
||||
|
||||
$invoices_string = \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray()) ?: null;
|
||||
|
||||
@ -736,7 +736,7 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
|
||||
$invoices_string = substr($invoices_string,0,22);
|
||||
|
||||
$invoices_string = str_pad($invoices_string, 5, "_");
|
||||
$invoices_string = str_pad($invoices_string, 5, ctrans('texts.invoice'), STR_PAD_LEFT);
|
||||
|
||||
return $invoices_string;
|
||||
|
||||
|
@ -276,6 +276,7 @@ class ACH
|
||||
'payment_hash' => $this->stripe->payment_hash->hash,
|
||||
'gateway_type_id' => $cgt->gateway_type_id,
|
||||
],
|
||||
'statement_descriptor' => $this->stripe->getStatementDescriptor(),
|
||||
];
|
||||
|
||||
if ($cgt->gateway_type_id == GatewayType::BANK_TRANSFER) {
|
||||
|
Loading…
Reference in New Issue
Block a user