diff --git a/app/Http/Controllers/AccountGatewayController.php b/app/Http/Controllers/AccountGatewayController.php index 8bfe22a83902..44bbd40006ba 100644 --- a/app/Http/Controllers/AccountGatewayController.php +++ b/app/Http/Controllers/AccountGatewayController.php @@ -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; } diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index c4619d64e02d..1765686ad043 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -59,6 +59,7 @@ class Gateway extends Eloquent GATEWAY_PAYPAL_EXPRESS, GATEWAY_BITPAY, GATEWAY_DWOLLA, + GATEWAY_CUSTOM, ]; /**