From 91126b2dad49189bf6370da23c0c7e8f4dcf5899 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Tue, 29 Nov 2022 09:15:23 +0100 Subject: [PATCH] Translate Stripe payment texts --- app/PaymentDrivers/Stripe/Charge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Stripe/Charge.php b/app/PaymentDrivers/Stripe/Charge.php index 691f6ca5bb..a9751a49ca 100644 --- a/app/PaymentDrivers/Stripe/Charge.php +++ b/app/PaymentDrivers/Stripe/Charge.php @@ -62,9 +62,9 @@ class Charge $invoice = Invoice::whereIn('id', $this->transformKeys(array_column($payment_hash->invoices(), 'invoice_id')))->withTrashed()->first(); 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 { - $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()]); } $this->stripe->init();