public BillingGateway(BillingEnvironment environment, string publicKey, string privateKey) { Configuration = new Configuration(environment, publicKey, privateKey); // Prepare Platform Configuration PlatformEnvironment platformEnvironment = null; switch (environment.EnvironmentType) { case EnvironmentType.Development: platformEnvironment = PlatformEnvironment.DEVELOPMENT; break; case EnvironmentType.QA: platformEnvironment = PlatformEnvironment.QA; break; case EnvironmentType.Production: platformEnvironment = PlatformEnvironment.PRODUCTION; break; } _platformConfiguration = new Configuration(platformEnvironment, publicKey, privateKey); }
public BillingGateway(BillingEnvironment environment, Cookie authenticationCookie) { Configuration = new Configuration(environment, authenticationCookie); // Prepare Platform Configuration PlatformEnvironment platformEnvironment = null; switch (environment.EnvironmentType) { case EnvironmentType.Development: platformEnvironment = PlatformEnvironment.DEVELOPMENT; break; case EnvironmentType.QA: platformEnvironment = PlatformEnvironment.QA; break; case EnvironmentType.Production: platformEnvironment = PlatformEnvironment.PRODUCTION; break; } _platformConfiguration = new Configuration(platformEnvironment, authenticationCookie); }