diff --git a/app/PaymentDrivers/Mollie/Bancontact.php b/app/PaymentDrivers/Mollie/Bancontact.php index 53199e8eee55..ee2b3e2bd2da 100644 --- a/app/PaymentDrivers/Mollie/Bancontact.php +++ b/app/PaymentDrivers/Mollie/Bancontact.php @@ -78,7 +78,7 @@ class Bancontact implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', collect($data['invoices'])->pluck('invoice_number')), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/BankTransfer.php b/app/PaymentDrivers/Mollie/BankTransfer.php index bf8595e090bf..1cfb0651d13f 100644 --- a/app/PaymentDrivers/Mollie/BankTransfer.php +++ b/app/PaymentDrivers/Mollie/BankTransfer.php @@ -81,7 +81,7 @@ class BankTransfer implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', collect($data['invoices'])->pluck('invoice_number')), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/IDEAL.php b/app/PaymentDrivers/Mollie/IDEAL.php index f496db5b6f20..a7c95f310211 100644 --- a/app/PaymentDrivers/Mollie/IDEAL.php +++ b/app/PaymentDrivers/Mollie/IDEAL.php @@ -78,7 +78,7 @@ class IDEAL implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', collect($data['invoices'])->pluck('invoice_number')), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash, diff --git a/app/PaymentDrivers/Mollie/KBC.php b/app/PaymentDrivers/Mollie/KBC.php index 1e90725b6c0d..bb2386c8b6e6 100644 --- a/app/PaymentDrivers/Mollie/KBC.php +++ b/app/PaymentDrivers/Mollie/KBC.php @@ -78,7 +78,7 @@ class KBC implements MethodInterface 'currency' => $this->mollie->client->currency()->code, 'value' => $this->mollie->convertToMollieAmount((float) $this->mollie->payment_hash->data->amount_with_fee), ], - 'description' => \sprintf('Invoices: %s', collect($data['invoices'])->pluck('invoice_number')), + 'description' => \sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($data['invoices'])->pluck('invoice_number')->toArray())), 'redirectUrl' => route('client.payments.response', [ 'company_gateway_id' => $this->mollie->company_gateway->id, 'payment_hash' => $this->mollie->payment_hash->hash,