public CashOnDeliveryPaymentMethod(LocalizationService localizationService,
                                    IOrderGroupFactory orderGroupFactory,
                                    LanguageService languageService,
                                    IPaymentManagerFacade paymentManager)
     : base(localizationService, orderGroupFactory, languageService, paymentManager)
 {
 }
 public DefaultOmniumOrderFactory(
     IShippingCalculator shippingCalculator,
     IMarketService marketService,
     CultureResolver cultureResolver,
     ITaxUtility taxUtility,
     ReferenceConverter referenceConverter,
     IContentRepository contentRepository,
     IPaymentManagerFacade paymentManagerFacade,
     ILineItemCalculator lineItemCalculator,
     IOrderFormCalculator orderFormCalculator,
     IOrderGroupCalculator orderGroupCalculator,
     IShipmentManagerFacade shipmentManagerFacade,
     IPromotionEngine promotionEngine)
 {
     _shippingCalculator    = shippingCalculator;
     _marketService         = marketService;
     _cultureResolver       = cultureResolver;
     _taxUtility            = taxUtility;
     _referenceConverter    = referenceConverter;
     _contentRepository     = contentRepository;
     _paymentManagerFacade  = paymentManagerFacade;
     _lineItemCalculator    = lineItemCalculator;
     _orderFormCalculator   = orderFormCalculator;
     _orderGroupCalculator  = orderGroupCalculator;
     _shipmentManagerFacade = shipmentManagerFacade;
     _promotionEngine       = promotionEngine;
 }
Esempio n. 3
0
 public VippsPaymentMethod(
     LocalizationService localizationService,
     IOrderGroupFactory orderGroupFactory,
     LanguageService languageService,
     IPaymentManagerFacade paymentManager)
     : base(localizationService, orderGroupFactory, languageService, paymentManager)
 {
     _orderGroupFactory = orderGroupFactory;
 }
 protected CreditCardPaymentMethodBase(LocalizationService localizationService,
                                       IOrderGroupFactory orderGroupFactory,
                                       LanguageService languageService,
                                       IPaymentManagerFacade paymentManager)
     : base(localizationService,
            orderGroupFactory,
            languageService,
            paymentManager)
 {
     InitializeValues();
 }
 public PaymentMethodViewModelFactory(
     ICurrentMarket currentMarket,
     LanguageService languageService,
     IEnumerable <IPaymentMethod> paymentMethods,
     IPaymentManagerFacade paymentManager)
 {
     _currentMarket   = currentMarket;
     _languageService = languageService;
     _paymentMethods  = paymentMethods;
     _paymentManager  = paymentManager;
 }
Esempio n. 6
0
 public QuickSilverOrderAdapter(
     IOrderRepository orderRepository,
     IPaymentManagerFacade paymentManagerFacade,
     IMarketService marketService,
     IEnumerable <IPaymentMethod> paymentMethods)
 {
     _orderRepository      = orderRepository;
     _paymentManagerFacade = paymentManagerFacade;
     _marketService        = marketService;
     _paymentMethods       = paymentMethods;
 }
 public SwedbankPayCallbackController(
     CheckoutService checkoutService,
     IOrderGroupFactory orderGroupFactory,
     IOrderRepository orderRepository,
     IPaymentManagerFacade paymentManager,
     ISwedbankPayCheckoutService swedbankPayCheckoutService)
 {
     _checkoutService            = checkoutService;
     _orderGroupFactory          = orderGroupFactory;
     _orderRepository            = orderRepository;
     _paymentManager             = paymentManager;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
 }
Esempio n. 8
0
        public KlarnaCheckoutPaymentMethod(
            LocalizationService localizationService,
            IOrderGroupFactory orderGroupFactory,
            LanguageService languageService,
            IPaymentManagerFacade paymentManager,
            ICartService cartService,
            IKlarnaCheckoutService klarnaCheckoutService)
            : base(localizationService, orderGroupFactory, languageService, paymentManager)
        {
            _orderGroupFactory     = orderGroupFactory;
            _cartService           = cartService;
            _klarnaCheckoutService = klarnaCheckoutService;

            InitializeValues();
        }
Esempio n. 9
0
 public SiteOmniumOrderFactory(
     IShippingCalculator shippingCalculator,
     IMarketService marketService,
     CultureResolver cultureResolver,
     ITaxUtility taxUtility,
     ReferenceConverter referenceConverter,
     IContentRepository contentRepository,
     IPaymentManagerFacade paymentManagerFacade,
     ILineItemCalculator lineItemCalculator,
     IOrderFormCalculator orderFormCalculator,
     IOrderGroupCalculator orderGroupCalculator,
     IShipmentManagerFacade shipmentManagerFacade,
     IPromotionEngine promotionEngine)
     : base(shippingCalculator, marketService, cultureResolver, taxUtility, referenceConverter, contentRepository, paymentManagerFacade, lineItemCalculator, orderFormCalculator, orderGroupCalculator, shipmentManagerFacade, promotionEngine)
 {
 }
 public SwedbankPayCheckoutPaymentMethod(
     LocalizationService localizationService,
     IOrderGroupFactory orderGroupFactory,
     LanguageService languageService,
     IPaymentManagerFacade paymentManager,
     ICartService cartService,
     IMarketService marketService,
     ISwedbankPayCheckoutService swedbankPayCheckoutService)
     : base(localizationService, orderGroupFactory, languageService, paymentManager)
 {
     _orderGroupFactory          = orderGroupFactory;
     _languageService            = languageService;
     _cartService                = cartService;
     _marketService              = marketService;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
 }
Esempio n. 11
0
        public KlarnaPaymentsPaymentMethod(
            LocalizationService localizationService,
            IOrderGroupFactory orderGroupFactory,
            LanguageService languageService,
            IPaymentManagerFacade paymentManager,
            ICartService cartService,
            IContentLoader contentLoader,
            ICurrentMarket currentMarket,
            IKlarnaPaymentsService klarnaPaymentsService)
            : base(localizationService, orderGroupFactory, languageService, paymentManager)
        {
            _orderGroupFactory     = orderGroupFactory;
            _cartService           = cartService;
            _contentLoader         = contentLoader;
            _currentMarket         = currentMarket;
            _klarnaPaymentsService = klarnaPaymentsService;

            InitializeValues();
        }
Esempio n. 12
0
        protected PaymentMethodBase(LocalizationService localizationService,
                                    IOrderGroupFactory orderGroupFactory,
                                    LanguageService languageService,
                                    IPaymentManagerFacade paymentManager)
        {
            LocalizationService = localizationService;
            OrderGroupFactory   = orderGroupFactory;

            if (!string.IsNullOrEmpty(SystemKeyword))
            {
                var currentLanguage = languageService.GetCurrentLanguage().TwoLetterISOLanguageName;
                var dto             = paymentManager.GetPaymentMethodBySystemName(SystemKeyword, currentLanguage);
                var paymentMethod   = dto?.PaymentMethod?.FirstOrDefault();
                if (paymentMethod != null)
                {
                    PaymentMethodId = paymentMethod.PaymentMethodId;
                    Name            = paymentMethod.Name;
                    Description     = paymentMethod.Description;
                }
            }
        }