From f59b31ab7075a69a7c1b1569320fd69376bb17d4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Mar 2022 19:37:40 +1100 Subject: [PATCH] Add invoice numbers --- app/PaymentDrivers/Eway/CreditCard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Eway/CreditCard.php b/app/PaymentDrivers/Eway/CreditCard.php index ab85688fe5..b79c6a2afc 100644 --- a/app/PaymentDrivers/Eway/CreditCard.php +++ b/app/PaymentDrivers/Eway/CreditCard.php @@ -237,7 +237,8 @@ class CreditCard { $amount = array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total; - + $invoice_numbers = ''; + if($this->eway_driver->payment_hash->data) $invoice_numbers = collect($this->eway_driver->payment_hash->data->invoices)->pluck('invoice_number')->implode(','); @@ -251,7 +252,6 @@ class CreditCard 'TotalAmount' => $this->convertAmountForEway($amount), 'CurrencyCode' => $this->eway_driver->client->currency()->code, 'InvoiceNumber' => $invoice_numbers, - 'InvoiceDescription' => $description, 'InvoiceReference' => $description, ], 'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,