private function testGateway($accountGateway) { $paymentDriver = $accountGateway->paymentDriver(); $result = $paymentDriver->isValid(); if ($result !== true) { Session::flash('error', $result . ' - ' . trans('texts.gateway_config_error')); } }