mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-30 23:20:34 -04:00
Add invoice numbers
This commit is contained in:
parent
01e586a898
commit
f59b31ab70
@ -237,7 +237,8 @@ class CreditCard
|
|||||||
{
|
{
|
||||||
$amount = array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total;
|
$amount = array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total;
|
||||||
|
|
||||||
|
$invoice_numbers = '';
|
||||||
|
|
||||||
if($this->eway_driver->payment_hash->data)
|
if($this->eway_driver->payment_hash->data)
|
||||||
$invoice_numbers = collect($this->eway_driver->payment_hash->data->invoices)->pluck('invoice_number')->implode(',');
|
$invoice_numbers = collect($this->eway_driver->payment_hash->data->invoices)->pluck('invoice_number')->implode(',');
|
||||||
|
|
||||||
@ -251,7 +252,6 @@ class CreditCard
|
|||||||
'TotalAmount' => $this->convertAmountForEway($amount),
|
'TotalAmount' => $this->convertAmountForEway($amount),
|
||||||
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
||||||
'InvoiceNumber' => $invoice_numbers,
|
'InvoiceNumber' => $invoice_numbers,
|
||||||
'InvoiceDescription' => $description,
|
|
||||||
'InvoiceReference' => $description,
|
'InvoiceReference' => $description,
|
||||||
],
|
],
|
||||||
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user