public ParbadVirtualGateway( IHttpContextAccessor httpContextAccessor, IOptions <ParbadVirtualGatewayOptions> options, IGatewayAccountProvider <ParbadVirtualGatewayAccount> accountProvider, IOptions <MessagesOptions> messageOptions) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _options = options; _messageOptions = messageOptions; }
public AsanPardakhtGateway( IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IGatewayAccountProvider <AsanPardakhtGatewayAccount> accountProvider, IOptions <MessagesOptions> messageOptions) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(this); _messageOptions = messageOptions; }
/// <summary> /// Initializes an instance of <see cref="SepehrGateway"/>. /// </summary> public SepehrGateway( IGatewayAccountProvider <SepehrGatewayAccount> accountProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IOptions <ParbadOptions> options) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(this); _options = options.Value; }
public ZarinPalGateway( IGatewayAccountProvider <ZarinPalGatewayAccount> accountProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IOptions <ZarinPalGatewayOptions> gatewayOptions, IOptions <MessagesOptions> messagesOptions) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(this); _gatewayOptions = gatewayOptions.Value; _messagesOptions = messagesOptions; }
public ZibalGateway( IGatewayAccountProvider <ZibalGatewayAccount> accountProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IOptions <ZibalGatewayOptions> gatewayOptions, IOptions <ParbadOptions> options) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(Name); _gatewayOptions = gatewayOptions.Value; _options = options.Value; }
public FanAvaGateway( IGatewayAccountProvider <FanAvaGatewayAccount> accountProvider, IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IOptions <FanAvaGatewayOptions> gatewayOptions, IOptions <MessagesOptions> messageOptions) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(nameof(FanAvaGateway)); _gatewayOptions = gatewayOptions.Value; _messageOptions = messageOptions.Value; }
public PasargadGateway( IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IGatewayAccountProvider <PasargadGatewayAccount> accountProvider, IPasargadCrypto crypto, IOptions <PasargadGatewayOptions> gatewayOptions, IOptions <MessagesOptions> messageOptions) : base(accountProvider) { _httpContextAccessor = httpContextAccessor; _httpClient = httpClientFactory.CreateClient(this); _crypto = crypto; _gatewayOptions = gatewayOptions.Value; _messageOptions = messageOptions; }
protected GatewayBase(IGatewayAccountProvider <TAccount> accountProvider) { AccountProvider = accountProvider; }
public PayIrGateway(IGatewayAccountProvider <PayIrGatewayAccount> accountProvider) : base(accountProvider) { }