Language, language version, and OS: C# 7.3, .NET Core 2.1.3
Issue description
I've been using ParseEnvironment to set up the my BraintreeGateway from values in my appsettings.json file. I have noticed that I would get Exceptions when I used SANDBOX or Sandbox or anything like it. So I was just looking through the repo and found the code for the ParseEnvironment method and noticed that the switch statement is looking for all lowercase environment strings but the switch is not forcing environment.ToLowerInvariant().
Would you accept a PR from me to update that? I'm willing to make that fix.
General information
Issue description
I've been using
ParseEnvironment
to set up the myBraintreeGateway
from values in my appsettings.json file. I have noticed that I would get Exceptions when I usedSANDBOX
orSandbox
or anything like it. So I was just looking through the repo and found the code for theParseEnvironment
method and noticed that the switch statement is looking for all lowercase environment strings but the switch is not forcingenvironment.ToLowerInvariant()
.Would you accept a PR from me to update that? I'm willing to make that fix.
Thank you!