示例#1
0
 public PayPalExecutedPaymentService(
     EasyShopContext easyShopContext,
     ILogger <PayPalExecutedPaymentService> logger,
     IRustShopService rustShopService,
     ISteamUserService steamUserService)
 {
     _easyShopContext  = easyShopContext;
     _logger           = logger;
     _rustShopService  = rustShopService;
     _steamUserService = steamUserService;
 }
示例#2
0
 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;
 }
示例#4
0
 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();
 }