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