Braintree.Environment.DevelopmentUrl C# (CSharp) Method

DevelopmentUrl() private static method

private static DevelopmentUrl ( ) : string
return string
        private static string DevelopmentUrl()
        {
            // Access environment variables lazily to avoid issues on servers where access to environment variables is restricted
            var host = System.Environment.GetEnvironmentVariable("GATEWAY_HOST") ?? "localhost";
            var port = System.Environment.GetEnvironmentVariable("GATEWAY_PORT") ?? "3000";

            return string.Format("http://{0}:{1}", host, port);
        }