/// <summary>Initializes a new instance of the <see cref="T:Wirecard.Services.WirecardPaymentService"/> class.</summary>
        /// <param name="pathToConfigFile">The path to configuration file.</param>
        /// <param name="basePath">The base path.</param>
        public WirecardPaymentService(string pathToConfigFile, string basePath)
        {
            var config = new ConfigurationBuilder()
                         .AddJsonFile(pathToConfigFile, optional: false, reloadOnChange: true)
                         .Build();

            _wirecardConfiguration = new WirecardConfiguration();
            config.GetSection("wirecard").Bind(_wirecardConfiguration);
            _basePath = basePath;
        }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="wirecardOptions">The wirecard options.</param>
 /// <param name="httpContextAccessor">The HTTP context accessor.</param>
 public WirecardPaymentService(IOptions <WirecardConfiguration> wirecardOptions, IHttpContextAccessor httpContextAccessor)
 {
     _wirecardConfiguration = wirecardOptions.Value;
     _httpContextAccessor   = httpContextAccessor;
 }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="wirecardOptions">The wirecard options.</param>
 /// <param name="httpContextAccessor">The HTTP context accessor.</param>
 public WirecardPaymentService(IOptions <WirecardConfiguration> wirecardOptions, IHttpContextAccessor httpContextAccessor, ILogger <WirecardPaymentService> logger)
 {
     _logger = logger;
     _wirecardConfiguration = wirecardOptions.Value;
     _httpContextAccessor   = httpContextAccessor;
 }