mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:04:45 -04:00
Support relabeling 'Credit Card'
This commit is contained in:
parent
c5cac623a7
commit
acc6a13126
@ -224,6 +224,7 @@ class Account extends Eloquent
|
||||
|
||||
public static $customLabels = [
|
||||
'balance_due',
|
||||
'credit_card',
|
||||
'description',
|
||||
'discount',
|
||||
'due_date',
|
||||
|
@ -938,7 +938,11 @@ class BasePaymentDriver
|
||||
$label = e($this->accountGateway->getConfigField('name'));
|
||||
} else {
|
||||
$url = $this->paymentUrl($gatewayTypeAlias);
|
||||
$label = trans("texts.{$gatewayTypeAlias}");
|
||||
if ($custom = $this->account()->getLabel($gatewayTypeAlias)) {
|
||||
$label = $custom;
|
||||
} else {
|
||||
$label = trans("texts.{$gatewayTypeAlias}");
|
||||
}
|
||||
}
|
||||
|
||||
$label .= $this->invoice()->present()->gatewayFee($gatewayTypeId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user