Fix for setting up multiple gateways

This commit is contained in:
Hillel Coren 2017-03-24 15:07:57 +03:00
parent b86d0a7c43
commit 91563b6346
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -59,6 +59,7 @@ class Gateway extends Eloquent
GATEWAY_PAYPAL_EXPRESS,
GATEWAY_BITPAY,
GATEWAY_DWOLLA,
GATEWAY_CUSTOM,
];
/**