mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Allow the variable to be used with custom payment driver
This commit is contained in:
parent
73453b034a
commit
56d836e3ca
@ -17,6 +17,7 @@ use App\Models\GatewayType;
|
|||||||
use App\Models\Invoice;
|
use App\Models\Invoice;
|
||||||
use App\Models\Payment;
|
use App\Models\Payment;
|
||||||
use App\Utils\HtmlEngine;
|
use App\Utils\HtmlEngine;
|
||||||
|
use App\Utils\Number;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -66,6 +67,9 @@ class CustomPaymentDriver extends BaseDriver
|
|||||||
$variables = (new HtmlEngine($invoice->invitations->first()))->generateLabelsAndValues();
|
$variables = (new HtmlEngine($invoice->invitations->first()))->generateLabelsAndValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$variables['values']['$invoices'] = collect($this->payment_hash->invoices())->pluck('invoice_number')->implode(',');
|
||||||
|
$variables['labels']['$invoices_label'] = ctrans('texts.invoice_number_short');
|
||||||
|
|
||||||
$data['title'] = $this->company_gateway->getConfigField('name');
|
$data['title'] = $this->company_gateway->getConfigField('name');
|
||||||
$data['instructions'] = strtr($this->company_gateway->getConfigField('text'), $variables['values']);
|
$data['instructions'] = strtr($this->company_gateway->getConfigField('text'), $variables['values']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user