public PaymentsController(IBookingPaymentCallbackService bookingPaymentCallbackService, IPaymentSettingsService paymentSettingsService, IAgentContextService agentContextService, ICreditCardPaymentProcessingService creditCardPaymentProcessingService, INGeniusPaymentService nGeniusPaymentService) { _bookingPaymentCallbackService = bookingPaymentCallbackService; _paymentSettingsService = paymentSettingsService; _agentContextService = agentContextService; _creditCardPaymentProcessingService = creditCardPaymentProcessingService; _nGeniusPaymentService = nGeniusPaymentService; }
public PaymentController(IWorkContextAccessor workContextAccessor, IPaymentSettingsService paymentSettingsService, IOrchardServices services) { _workContextAccessor = workContextAccessor; _paymentSettingsService = paymentSettingsService; Services = services; var culture = _workContextAccessor.GetContext().CurrentCulture.Trim(); cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); }
public PaymentsController(IAccountPaymentService accountPaymentService, IBookingPaymentService bookingPaymentService, IPaymentSettingsService paymentSettingsService, IAgentContextService agentContextService, ICreditCardPaymentProcessingService creditCardPaymentProcessingService) { _accountPaymentService = accountPaymentService; _bookingPaymentService = bookingPaymentService; _paymentSettingsService = paymentSettingsService; _agentContextService = agentContextService; _creditCardPaymentProcessingService = creditCardPaymentProcessingService; }
public PaymentController(IWorkContextAccessor workContextAccessor, IPaymentSettingsService paymentSettingsService, IOrchardServices services, IRepository <CultureRecord> cultures, IRepository <CountryRecord> countries) { _workContextAccessor = workContextAccessor; _paymentSettingsService = paymentSettingsService; Services = services; var culture = _workContextAccessor.GetContext().CurrentCulture.Trim(); _cultures = cultures; _countries = countries; //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); }
public HomeController( IOrderService orderService, ICampaignService campaignService, INotifier notifier, IPromotionService promotionService, IimageHelper imageHelper, IPaymentSettingsService paymentSettingsService, IShapeFactory shapeFactory, ITeeyootMessagingService teeyootMessagingService, IWorkContextAccessor workContextAccessor, IRepository<UserRolesPartRecord> userRolesPartRepository, IRepository<TeeyootUserPartRecord> userRepository, IPayoutService payoutService, IRepository<CommonSettingsRecord> commonSettingsRepository, IRepository<CheckoutCampaignRequest> checkoutRequestRepository, ICookieCultureService cookieCultureService, IRepository<OrderStatusRecord> orderStatusRepository, ICountryService countryService, IRepository<CountryRecord> countryRepository, IRepository<DeliverySettingRecord> deliverySettingRepository, IRepository<DeliveryInternationalSettingRecord> deliveryInternationalSettingRepository, IRepository<CurrencyExchangeRecord> currencyExchangeRepository) { _orderService = orderService; _promotionService = promotionService; _campaignService = campaignService; _imageHelper = imageHelper; _userRolesPartRepository = userRolesPartRepository; _payoutService = payoutService; _teeyootMessagingService = teeyootMessagingService; _paymentSettingsService = paymentSettingsService; _commonSettingsRepository = commonSettingsRepository; _checkoutRequestRepository = checkoutRequestRepository; _userRepository = userRepository; _orderStatusRepository = orderStatusRepository; _countryRepository = countryRepository; _deliverySettingRepository = deliverySettingRepository; _deliveryInternationalSettingRepository = deliveryInternationalSettingRepository; _currencyExchangeRepository = currencyExchangeRepository; Logger = NullLogger.Instance; _notifier = notifier; T = NullLocalizer.Instance; Shape = shapeFactory; //var culture = _workContextAccessor.GetContext().CurrentCulture.Trim(); _cultureUsed = workContextAccessor.GetContext().CurrentCulture.Trim(); //culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); _cookieCultureService = cookieCultureService; _countryService = countryService; }