ACH translations

This commit is contained in:
Lars Kusch 2022-11-29 09:28:37 +01:00 committed by GitHub
parent e9820ee984
commit eecc2bb8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,9 +172,9 @@ class ACH
->first(); ->first();
if ($invoice) { if ($invoice) {
$description = "Invoice {$invoice->number} for {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext', ['invoicenumber' => $invoice->number, 'amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} else { } else {
$description = "Payment with no invoice for amount {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext_without_invoice', ['amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} }
@ -210,9 +210,9 @@ class ACH
->first(); ->first();
if ($invoice) { if ($invoice) {
$description = "Invoice {$invoice->number} for {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext', ['invoicenumber' => $invoice->number, 'amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} else { } else {
$description = "Payment with no invoice for amount {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext_without_invoice', ['amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} }
if (substr($cgt->token, 0, 2) === 'pm') { if (substr($cgt->token, 0, 2) === 'pm') {
@ -454,9 +454,9 @@ class ACH
->first(); ->first();
if ($invoice) { if ($invoice) {
$description = "Invoice {$invoice->number} for {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext', ['invoicenumber' => $invoice->number, 'amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} else { } else {
$description = "Payment with no invoice for amount {$amount} for client {$this->stripe->client->present()->name()}"; $description = ctrans('text.stripe_paymenttext_without_invoice', ['amount' => $amount, 'client' => $this->stripe->client->present()->name()]);
} }
if (substr($source->token, 0, 2) === 'pm') { if (substr($source->token, 0, 2) === 'pm') {