public PayPalExecutedPaymentService( EasyShopContext easyShopContext, ILogger <PayPalExecutedPaymentService> logger, IRustShopService rustShopService, ISteamUserService steamUserService) { _easyShopContext = easyShopContext; _logger = logger; _rustShopService = rustShopService; _steamUserService = steamUserService; }
public PurchaseController( IRustStoreStandardProductPurchaseService rustStoreStandardProductPurchaseService, IRustPurchaseStatsServiceSql rustPurchaseStatsServiceSql, IRustShopService rustShopService, ISteamUserService steamUserService) { _rustStoreStandardProductPurchaseService = rustStoreStandardProductPurchaseService; _rustPurchaseStatsServiceSql = rustPurchaseStatsServiceSql; _rustShopService = rustShopService; _steamUserService = steamUserService; }
public RustStoreStandardProductPurchaseService( ISteamUserService steamUserService, EasyShopContext easyShopContext, IRustShopService rustShopService, UserManager <AppUser> userManager, ILogger <RustStoreStandardProductPurchaseService> logger, PayPalSettings payPalSettings, IConfiguration configuration) { _steamUserService = steamUserService; _easyShopContext = easyShopContext; _rustShopService = rustShopService; _userManager = userManager; _logger = logger; _servicePercentPerTransaction = configuration.GetValue <int>("ServicePercentPerTransaction") + payPalSettings.Fees; }
public RustStoreStorePaymentService(IHttpContextAccessor httpContextAccessor, IConfiguration configuration, ILogger <RustStoreStorePaymentService> logger, PayPalSettings payPalSettings, ISteamUserService steamUserService, EasyShopContext easyShopContext, IPayPalCreatedPaymentService payPalCreatedPaymentService, IPayPalExecutedPaymentService payPalExecutedPaymentService) { _httpContextAccessor = httpContextAccessor; _configuration = configuration; _logger = logger; _payPalSettings = payPalSettings; _steamUserService = steamUserService; _easyShopContext = easyShopContext; _payPalCreatedPaymentService = payPalCreatedPaymentService; _payPalExecutedPaymentService = payPalExecutedPaymentService; _hostString = $"{httpContextAccessor.HttpContext.Request.Scheme}://{httpContextAccessor.HttpContext.Request.Host}"; _multiTenantContext = httpContextAccessor.HttpContext.GetMultiTenantContext(); }