Ejemplo n.º 1
0
 public EzScanCheckScannerService(ICheckScannerDao checkScannerDao, IDonorService donorService, IPaymentProcessorService paymentService, MPServices.IDonorRepository mpDonorService)
 {
     _checkScannerDao = checkScannerDao;
     _donorService    = donorService;
     _paymentService  = paymentService;
     _mpDonorService  = mpDonorService;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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");
        }
Ejemplo n.º 4
0
 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");
 }
Ejemplo n.º 5
0
        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");
        }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
        /// <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));
                }
            }
        }
Ejemplo n.º 8
0
 public StripePlansAndSubscriptions(IPaymentProcessorService paymentService)
 {
     _paymentService        = paymentService;
     _additionalTrialPeriod = Int32.Parse(ConfigurationManager.AppSettings.Get("additonalTrialPeriodMonths"));
 }
Ejemplo n.º 9
0
 public ListStripeSubscriptions(IPaymentProcessorService paymentService)
 {
     _paymentService = paymentService;
 }
Ejemplo n.º 10
0
 public FixSubscriptionCycle(MinistryPlatformContext mpContext, IPaymentProcessorService paymentService)
 {
     _mpContext      = mpContext;
     _paymentService = paymentService;
 }
Ejemplo n.º 11
0
 public VerifyStripeSubscriptions(MinistryPlatformContext mpContext, IPaymentProcessorService paymentService)
 {
     _mpContext      = mpContext;
     _paymentService = paymentService;
 }
Ejemplo n.º 12
0
 public DataService(IPaymentRepository repository, IPaymentProcessorService service)
 {
     _repository = repository;
     _service    = service;
 }