App\Http\Controllers\AccountGatewayController::testGateway PHP Method

testGateway() private method

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