public static ParseEnvironment ( string environment ) : Environment | ||
environment | string | |
Résultat | Environment |
private Environment GetEnvironment(string credential) { var separators = new Char [] { '$' }; var environment = credential.Split(separators)[1]; return(Environment.ParseEnvironment(environment)); }
public Configuration(string environment, string merchantId, string publicKey, string privateKey) : this(Environment.ParseEnvironment(environment), merchantId, publicKey, privateKey) { }
public BraintreeGateway(string environment, string merchantId, string publicKey, string privateKey) { Configuration = new Configuration(Environment.ParseEnvironment(environment), merchantId, publicKey, privateKey); }