public EzScanCheckScannerService(ICheckScannerDao checkScannerDao, IDonorService donorService, IPaymentProcessorService paymentService, MPServices.IDonorRepository mpDonorService) { _checkScannerDao = checkScannerDao; _donorService = donorService; _paymentService = paymentService; _mpDonorService = mpDonorService; }
public DonationController(MPInterfaces.IDonorRepository mpDonorService, IPaymentProcessorService stripeService, IAuthenticationRepository authenticationService, MPInterfaces.IContactRepository contactRepository, IDonorService gatewayDonorService, IDonationService gatewayDonationService, MPInterfaces.IDonationRepository mpDonationService, MPInterfaces.IPledgeRepository mpPledgeService, IUserImpersonationService impersonationService, IPaymentService paymentService, MPInterfaces.IInvoiceRepository invoiceRepository, IAnalyticsService analyticsService) : base(impersonationService, authenticationService) { _mpDonorService = mpDonorService; _stripeService = stripeService; _authenticationService = authenticationService; _contactRepository = contactRepository; _gatewayDonorService = gatewayDonorService; _gatewayDonationService = gatewayDonationService; _impersonationService = impersonationService; _invoiceRepository = invoiceRepository; _mpDonationService = mpDonationService; _mpPledgeService = mpPledgeService; _paymentService = paymentService; _analyticsService = analyticsService; }
public PaymentService(IInvoiceRepository invoiceRepository, IPaymentRepository paymentRepository, IConfigurationWrapper configurationWrapper, IContactRepository contactRepository, IPaymentTypeRepository paymentTypeRepository, IEventRepository eventRepository, ICommunicationRepository communicationRepository, IApiUserRepository apiUserRepository, IProductRepository productRepository, IPaymentProcessorService paymentProcessorService) { _invoiceRepository = invoiceRepository; _paymentRepository = paymentRepository; _contactRepository = contactRepository; _paymentTypeRepository = paymentTypeRepository; _communicationRepository = communicationRepository; _configWrapper = configurationWrapper; _eventPRepository = eventRepository; _apiUserRepository = apiUserRepository; _productRepository = productRepository; _paymentProcessorService = paymentProcessorService; _paidinfullStatus = configurationWrapper.GetConfigIntValue("PaidInFull"); _somepaidStatus = configurationWrapper.GetConfigIntValue("SomePaid"); _nonePaidStatus = configurationWrapper.GetConfigIntValue("NonePaid"); _defaultPaymentStatus = configurationWrapper.GetConfigIntValue("DonationStatusPending"); _declinedPaymentStatus = configurationWrapper.GetConfigIntValue("DonationStatusDeclined"); _bankErrorRefundContactId = configurationWrapper.GetConfigIntValue("ContactIdForBankErrorRefund"); }
public DonationService(MPServices.IDonationRepository mpDonationRepository, MPServices.IDonorRepository mpDonorRepository, IPaymentProcessorService paymentService, MPServices.IContactRepository contactRepository, IConfigurationWrapper config) { _mpDonationRepository = mpDonationRepository; _mpDonorRepository = mpDonorRepository; _paymentService = paymentService; _contactRepository = contactRepository; _statementTypeFamily = config.GetConfigIntValue("DonorStatementTypeFamily"); _bankErrorRefundDonorId = config.GetConfigIntValue("DonorIdForBankErrorRefund"); }
public StripeEventService(IPaymentProcessorService paymentProcessorService, IDonationService donationService, IPaymentService paymentService, MinistryPlatform.Translation.Repositories.Interfaces.IDonorRepository mpDonorRepository, IConfigurationWrapper configuration) { _paymentProcessorService = paymentProcessorService; _donationService = donationService; _mpDonorRepository = mpDonorRepository; _paymentService = paymentService; _donationStatusDeclined = configuration.GetConfigIntValue("DonationStatusDeclined"); _donationStatusDeposited = configuration.GetConfigIntValue("DonationStatusDeposited"); _donationStatusSucceeded = configuration.GetConfigIntValue("DonationStatusSucceeded"); _batchEntryTypePaymentProcessor = configuration.GetConfigIntValue("BatchEntryTypePaymentProcessor"); }
public DonorController(IDonorService donorService, IPaymentProcessorService stripePaymentService, IDonationService donationService, MPInterfaces.IDonorRepository mpDonorService, MPInterfaces.IAuthenticationRepository authenticationService, IUserImpersonationService impersonationService) : base(impersonationService) { _donorService = donorService; _stripePaymentService = stripePaymentService; _donationService = donationService; _authenticationService = authenticationService; _mpDonorService = mpDonorService; _impersonationService = impersonationService; }
/// <summary> /// This method is called whenever an actor is activated. /// An actor is activated the first time any of its methods are invoked. /// </summary> protected override async Task OnActivateAsync() { this.ActorLocationService = ServiceFactory.GetInstance().GetActorLocationService(); this.SettingService = ServiceFactory.GetInstance().GetSettingService(); this.LoggerService = ServiceFactory.GetInstance().GetLoggerService(); this.DataStoreService = ServiceFactory.GetInstance().GetDataStoreService(this.SettingService, this.LoggerService); this.HealthReporterService = ServiceFactory.GetInstance().GetHealtheReporterService(this.SettingService, this.LoggerService, ActorService.Context.PartitionId, ActorService.Context.ReplicaId, ActorService.Context.NodeContext.NodeName, ActorService.Context.ServiceName.ToString()); this.ExternalizationService = ServiceFactory.GetInstance().GetExternalizationService(this.SettingService, this.LoggerService); this.NotificationService = ServiceFactory.GetInstance().GetNotificationService(this.SettingService, this.LoggerService, this.DataStoreService); this.PaymentProcessorService = ServiceFactory.GetInstance().GetPaymentProcessorService(this.SettingService, this.LoggerService); var error = ""; var message = ""; var handler = HandlersFactory.GetProfilerHandler(SettingService, LoggerService); handler.Start(LOG_TAG, "OnActivateAsync", GetActorProperties()); try { TicketOrder state = await GetEntityStateAsync(); if (state == null) { // Make sure the state is saved await SetEntityStateAsync(state); } state = await this.StateManager.GetStateAsync <TicketOrder>(ActorStatePropertyName); message = string.Format("Ticket Order Actor {0} activated", this.Id.GetStringId()); handler.Info(message); } catch (Exception ex) { error = ex.Message; } finally { handler.Stop(error); if (!string.IsNullOrEmpty(error)) { this.HealthReporterService.SendReportForService(HealthState.Error, GetHealthErrorMessage("OnActivateAsync", error)); } } }
public StripePlansAndSubscriptions(IPaymentProcessorService paymentService) { _paymentService = paymentService; _additionalTrialPeriod = Int32.Parse(ConfigurationManager.AppSettings.Get("additonalTrialPeriodMonths")); }
public ListStripeSubscriptions(IPaymentProcessorService paymentService) { _paymentService = paymentService; }
public FixSubscriptionCycle(MinistryPlatformContext mpContext, IPaymentProcessorService paymentService) { _mpContext = mpContext; _paymentService = paymentService; }
public VerifyStripeSubscriptions(MinistryPlatformContext mpContext, IPaymentProcessorService paymentService) { _mpContext = mpContext; _paymentService = paymentService; }
public DataService(IPaymentRepository repository, IPaymentProcessorService service) { _repository = repository; _service = service; }