From d216f82538874554bf30555c6e2be072f8240cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 11 Oct 2021 15:49:13 +0200 Subject: [PATCH] Update description for Mollie methods --- app/PaymentDrivers/Mollie/Bancontact.php | 2 +- app/PaymentDrivers/Mollie/BankTransfer.php | 2 +- app/PaymentDrivers/Mollie/IDEAL.php | 2 +- app/PaymentDrivers/Mollie/KBC.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/PaymentDrivers/Mollie/Bancontact.php b/app/PaymentDrivers/Mollie/Bancontact.php index 53199e8eee..7831ce3558 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('Invoices: %s', \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 bf8595e090..c11bbbecfc 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('Invoices: %s', \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 f496db5b6f..fdd617091d 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('Invoices: %s', \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 1e90725b6c..2244c78c24 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('Invoices: %s', \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,