/// <summary> /// Initializes a new instance of the <see cref="PaychoiceService" /> class. /// </summary> /// <param name="clientId">The client id.</param> /// <param name="log">The log.</param> public OAuth2Service(string clientId, bool useSandbox, ILog log) { this.clientId = clientId; var config = new OAuth2GetTokenConfiguration() { UseSandbox = useSandbox }; client = new PaychoiceHttpClient(config, log); }
/// <summary> /// Initializes a new instance of the <see cref="PaychoiceService" /> class. /// </summary> /// <param name="config">The configuration.</param> /// <param name="log">The log.</param> public PaychoiceService(IConfiguration config, ILog log) { client = new PaychoiceHttpClient(config, log); }