mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fixes for eWay descriptions
This commit is contained in:
parent
eec5e47302
commit
714be18351
@ -160,6 +160,7 @@ class CreditCard
|
|||||||
'TotalAmount' => $this->convertAmountForEway(),
|
'TotalAmount' => $this->convertAmountForEway(),
|
||||||
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
||||||
'InvoiceNumber' => $invoice_numbers,
|
'InvoiceNumber' => $invoice_numbers,
|
||||||
|
'InvoiceDescription' => substr($invoice_numbers, 0, 63)
|
||||||
],
|
],
|
||||||
'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
|
'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
|
||||||
'SecuredCardData' => $request->input('securefieldcode'),
|
'SecuredCardData' => $request->input('securefieldcode'),
|
||||||
@ -249,6 +250,7 @@ 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' => substr($invoice_numbers, 0, 63)
|
||||||
],
|
],
|
||||||
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
||||||
];
|
];
|
||||||
|
@ -61,8 +61,7 @@ class Token
|
|||||||
'TotalAmount' => $this->eway_driver->convertAmount($amount),
|
'TotalAmount' => $this->eway_driver->convertAmount($amount),
|
||||||
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
'CurrencyCode' => $this->eway_driver->client->currency()->code,
|
||||||
'InvoiceNumber' => $invoice_numbers,
|
'InvoiceNumber' => $invoice_numbers,
|
||||||
'InvoiceDescription' => $description,
|
'InvoiceDescription' => substr($description, 0,63),
|
||||||
'InvoiceReference' => $description,
|
|
||||||
],
|
],
|
||||||
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
'TransactionType' => \Eway\Rapid\Enum\TransactionType::RECURRING,
|
||||||
];
|
];
|
||||||
|
@ -98,7 +98,7 @@ class PaymentLibrariesSeeder extends Seeder
|
|||||||
|
|
||||||
Gateway::query()->update(['visible' => 0]);
|
Gateway::query()->update(['visible' => 0]);
|
||||||
|
|
||||||
Gateway::whereIn('id', [1,7,11,15,20,39,46,55,50,57,52,58])->update(['visible' => 1]);
|
Gateway::whereIn('id', [1,3,7,11,15,20,39,46,55,50,57,52,58])->update(['visible' => 1]);
|
||||||
|
|
||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
Gateway::whereIn('id', [20])->update(['visible' => 0]);
|
Gateway::whereIn('id', [20])->update(['visible' => 0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user