mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for setting up multiple gateways
This commit is contained in:
parent
b86d0a7c43
commit
91563b6346
@ -91,7 +91,7 @@ class AccountGatewayController extends BaseController
|
||||
$accountGatewaysIds = $account->gatewayIds();
|
||||
$otherProviders = Input::get('other_providers');
|
||||
|
||||
if (! Utils::isNinja() || ! env('WEPAY_CLIENT_ID') || in_array(GATEWAY_WEPAY, $accountGatewaysIds)) {
|
||||
if (! Utils::isNinja() || ! env('WEPAY_CLIENT_ID') || Gateway::hasStandardGateway($accountGatewaysIds)) {
|
||||
$otherProviders = true;
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,7 @@ class Gateway extends Eloquent
|
||||
GATEWAY_PAYPAL_EXPRESS,
|
||||
GATEWAY_BITPAY,
|
||||
GATEWAY_DWOLLA,
|
||||
GATEWAY_CUSTOM,
|
||||
];
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user