Fix for supporting multiple payment gateways

This commit is contained in:
Hillel Coren 2017-03-23 19:45:45 +02:00
parent c9aea283b8
commit 462d6e95d5

View File

@ -91,7 +91,7 @@ class AccountGatewayController extends BaseController
$accountGatewaysIds = $account->gatewayIds(); $accountGatewaysIds = $account->gatewayIds();
$otherProviders = Input::get('other_providers'); $otherProviders = Input::get('other_providers');
if (! Utils::isNinja() || ! env('WEPAY_CLIENT_ID') || Gateway::hasStandardGateway($accountGatewaysIds)) { if (! Utils::isNinja() || ! env('WEPAY_CLIENT_ID') || in_array(GATEWAY_WEPAY, $accountGatewaysIds)) {
$otherProviders = true; $otherProviders = true;
} }