mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 03:14:36 -04:00
Minor fixes for gateways
This commit is contained in:
parent
d0423f80ec
commit
3171f7b74a
@ -553,9 +553,17 @@ class BaseDriver extends AbstractPaymentDriver
|
|||||||
{
|
{
|
||||||
$types = [];
|
$types = [];
|
||||||
|
|
||||||
if ($this->company_gateway->fees_and_limits->{$type}->is_enabled) {
|
// if($type == GatewayType::BANK_TRANSFER && $this->company_gateway->fees_and_limits->{GatewayType::BANK_TRANSFER}->is_enabled)
|
||||||
$types[] = $type;
|
// {
|
||||||
}
|
// $types[] = $type;
|
||||||
|
// }
|
||||||
|
// elseif($type == GatewayType::CREDIT_CARD && $this->company_gateway->fees_and_limits->{GatewayType::CREDIT_CARD}->is_enabled)
|
||||||
|
// {
|
||||||
|
// $types[] = $type;
|
||||||
|
// }
|
||||||
|
|
||||||
|
$types[] = GatewayType::CREDIT_CARD;
|
||||||
|
$types[] = GatewayType::BANK_TRANSFER;
|
||||||
|
|
||||||
return $types;
|
return $types;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user