Beispiel #1
0
 public FixedOrByCountryStateZipTaxProvider(FixedOrByCountryStateZipTaxSettings countryStateZipSettings,
                                            ICacheKeyService cacheKeyService,
                                            ICountryStateZipService taxRateService,
                                            IGenericAttributeService genericAttributeService,
                                            IHttpContextAccessor httpContextAccessor,
                                            ILocalizationService localizationService,
                                            IOrderTotalCalculationService orderTotalCalculationService,
                                            IPaymentService paymentService,
                                            ISettingService settingService,
                                            IStaticCacheManager staticCacheManager,
                                            ITaxCategoryService taxCategoryService,
                                            ITaxService taxService,
                                            IWebHelper webHelper,
                                            TaxSettings taxSettings)
 {
     _countryStateZipSettings      = countryStateZipSettings;
     _cacheKeyService              = cacheKeyService;
     _taxRateService               = taxRateService;
     _genericAttributeService      = genericAttributeService;
     _httpContextAccessor          = httpContextAccessor;
     _localizationService          = localizationService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _paymentService               = paymentService;
     _settingService               = settingService;
     _staticCacheManager           = staticCacheManager;
     _taxCategoryService           = taxCategoryService;
     _taxService  = taxService;
     _webHelper   = webHelper;
     _taxSettings = taxSettings;
 }
 public PayPalStandardPaymentProcessor(CurrencySettings currencySettings,
                                       ICheckoutAttributeParser checkoutAttributeParser,
                                       ICurrencyService currencyService,
                                       IGenericAttributeService genericAttributeService,
                                       IHttpContextAccessor httpContextAccessor,
                                       ILocalizationService localizationService,
                                       IOrderTotalCalculationService orderTotalCalculationService,
                                       ISettingService settingService,
                                       ITaxService taxService,
                                       IProductService productService,
                                       IWebHelper webHelper,
                                       ILanguageService languageService,
                                       IServiceProvider serviceProvider,
                                       PayPalStandardPaymentSettings paypalStandardPaymentSettings)
 {
     _currencySettings             = currencySettings;
     _checkoutAttributeParser      = checkoutAttributeParser;
     _currencyService              = currencyService;
     _genericAttributeService      = genericAttributeService;
     _httpContextAccessor          = httpContextAccessor;
     _localizationService          = localizationService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _settingService  = settingService;
     _taxService      = taxService;
     _productService  = productService;
     _webHelper       = webHelper;
     _languageService = languageService;
     _serviceProvider = serviceProvider;
     _paypalStandardPaymentSettings = paypalStandardPaymentSettings;
 }
 public GetMiniShoppingCartHandler(
     IShoppingCartService shoppingCartService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPriceFormatter priceFormatter,
     ITaxService taxService,
     ICheckoutAttributeService checkoutAttributeService,
     IProductService productService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     ILocalizationService localizationService,
     IPriceCalculationService priceCalculationService,
     IPictureService pictureService,
     IMediator mediator,
     ShoppingCartSettings shoppingCartSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     MediaSettings mediaSettings)
 {
     _shoppingCartService          = shoppingCartService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _priceFormatter            = priceFormatter;
     _taxService                = taxService;
     _checkoutAttributeService  = checkoutAttributeService;
     _productService            = productService;
     _productAttributeFormatter = productAttributeFormatter;
     _productAttributeParser    = productAttributeParser;
     _localizationService       = localizationService;
     _priceCalculationService   = priceCalculationService;
     _pictureService            = pictureService;
     _mediator             = mediator;
     _shoppingCartSettings = shoppingCartSettings;
     _orderSettings        = orderSettings;
     _taxSettings          = taxSettings;
     _mediaSettings        = mediaSettings;
 }
 public GoogleCheckoutPaymentProcessor(ISettingService settingService, 
     IWebHelper webHelper, ITaxService taxService,
     IShippingService shippingService, 
     IOrderTotalCalculationService orderTotalCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPriceCalculationService priceCalculationService, IWorkContext workContext,
     ICustomerService customerService, IGenericAttributeService genericAttributeService, 
     ICountryService countryService,
     IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService,
     IOrderService orderService, ILogger logger, HttpContextBase httpContext)
 {
     this._settingService = settingService;
     this._webHelper = webHelper;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._priceCalculationService = priceCalculationService;
     this._workContext = workContext;
     this._customerService = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderProcessingService = orderProcessingService;
     this._orderService = orderService;
     this._logger = logger;
     this._httpContext = httpContext;
 }
        public CheckoutController(IWorkContext workContext,
            IShoppingCartService shoppingCartService, ILocalizationService localizationService,
            ITaxService taxService, ICurrencyService currencyService,
            IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService,
            ICustomerService customerService,  ICountryService countryService,
            IStateProvinceService stateProvinceService, IShippingService shippingService,
            IPaymentService paymentService, IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger, IOrderService orderService, IWebHelper webHelper,
            OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings)
        {
            this._workContext = workContext;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
        }
 public CashOnDeliveryPaymentProcessor(CashOnDeliveryPaymentSettings cashOnDeliveryPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._cashOnDeliveryPaymentSettings = cashOnDeliveryPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public PurchaseOrderPaymentProcessor(PurchaseOrderPaymentSettings purchaseOrderPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._purchaseOrderPaymentSettings = purchaseOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
        public PaymentSagePayServerController(ISettingService settingService, 
            IPaymentService paymentService, IOrderService orderService, 
            IOrderProcessingService orderProcessingService,
            ILogger logger, SagePayServerPaymentSettings sagePayServerPaymentSettings,
            PaymentSettings paymentSettings, ILocalizationService localizationService,
            IWorkContext workContext, ISagePayServerTransactionService sagePayServerTransactionService,
            IOrderTotalCalculationService orderTotalCalculationService, ICurrencyService currencyService, CurrencySettings currencySettings,
            IMobileDeviceHelper mobileDeviceHelper, OrderSettings orderSettings, HttpContextBase httpContext)
        {
            this._settingService = settingService;
            this._paymentService = paymentService;
            this._orderService = orderService;
            this._orderProcessingService = orderProcessingService;
            this._localizationService = localizationService;
            this._sagePayServerTransactionService = sagePayServerTransactionService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._currencyService = currencyService;

            this._sagePayServerPaymentSettings = sagePayServerPaymentSettings;
            this._paymentSettings = paymentSettings;
            this._currencySettings = currencySettings;
            this._orderSettings = orderSettings;

            this._logger = logger;

            this._workContext = workContext;

            this._httpContext = httpContext;

            this._mobileDeviceHelper = mobileDeviceHelper;
        }
Beispiel #9
0
 public ZSLPaymentProcessor(CurrencySettings currencySettings,
                            HttpContextBase httpContext,
                            ICheckoutAttributeParser checkoutAttributeParser,
                            ICurrencyService currencyService,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            IOrderTotalCalculationService orderTotalCalculationService,
                            ISettingService settingService,
                            ITaxService taxService,
                            IWebHelper webHelper,
                            ZSLPaymentSettings ZSLPaymentSettings,
                            IOrderProcessingService orderProcessingService,
                            ICustomerService customerService,
                            IWorkContext workContext)
 {
     this._currencySettings             = currencySettings;
     this._httpContext                  = httpContext;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._genericAttributeService      = genericAttributeService;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService               = settingService;
     this._taxService             = taxService;
     this._webHelper              = webHelper;
     this._ZSLPaymentSettings     = ZSLPaymentSettings;
     this._orderProcessingService = orderProcessingService;
     this._customerService        = customerService;
     this._workContext            = workContext;
 }
 public OrderModelFactory(AddressSettings addressSettings,
                          CatalogSettings catalogSettings,
                          IAddressModelFactory addressModelFactory,
                          IAddressService addressService,
                          ICountryService countryService,
                          ICurrencyService currencyService,
                          ICustomerService customerService,
                          IDateTimeHelper dateTimeHelper,
                          IGiftCardService giftCardService,
                          ILocalizationService localizationService,
                          IOrderProcessingService orderProcessingService,
                          IOrderService orderService,
                          IOrderTotalCalculationService orderTotalCalculationService,
                          IPaymentPluginManager paymentPluginManager,
                          IPaymentService paymentService,
                          IPriceFormatter priceFormatter,
                          IProductService productService,
                          IRewardPointService rewardPointService,
                          IShipmentService shipmentService,
                          IStoreContext storeContext,
                          IUrlRecordService urlRecordService,
                          IVendorService vendorService,
                          IWorkContext workContext,
                          OrderSettings orderSettings,
                          PdfSettings pdfSettings,
                          RewardPointsSettings rewardPointsSettings,
                          ShippingSettings shippingSettings,
                          TaxSettings taxSettings,
                          VendorSettings vendorSettings)
 {
     _addressSettings              = addressSettings;
     _catalogSettings              = catalogSettings;
     _addressModelFactory          = addressModelFactory;
     _addressService               = addressService;
     _countryService               = countryService;
     _currencyService              = currencyService;
     _customerService              = customerService;
     _dateTimeHelper               = dateTimeHelper;
     _giftCardService              = giftCardService;
     _localizationService          = localizationService;
     _orderProcessingService       = orderProcessingService;
     _orderService                 = orderService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _paymentPluginManager         = paymentPluginManager;
     _paymentService               = paymentService;
     _priceFormatter               = priceFormatter;
     _productService               = productService;
     _rewardPointService           = rewardPointService;
     _shipmentService              = shipmentService;
     _storeContext                 = storeContext;
     _urlRecordService             = urlRecordService;
     _vendorService                = vendorService;
     _workContext          = workContext;
     _orderSettings        = orderSettings;
     _pdfSettings          = pdfSettings;
     _rewardPointsSettings = rewardPointsSettings;
     _shippingSettings     = shippingSettings;
     _taxSettings          = taxSettings;
     _vendorSettings       = vendorSettings;
 }
 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public GoogleCheckoutPaymentProcessor(ISettingService settingService,
                                       IWebHelper webHelper, ITaxService taxService,
                                       IShippingService shippingService,
                                       IOrderTotalCalculationService orderTotalCalculationService,
                                       IProductAttributeFormatter productAttributeFormatter,
                                       IPriceCalculationService priceCalculationService,
                                       IWorkContext workContext,
                                       IStoreContext storeContext,
                                       ICustomerService customerService,
                                       IGenericAttributeService genericAttributeService,
                                       ICountryService countryService,
                                       IStateProvinceService stateProvinceService,
                                       IOrderProcessingService orderProcessingService,
                                       IOrderService orderService,
                                       ILogger logger,
                                       HttpContextBase httpContext)
 {
     this._settingService  = settingService;
     this._webHelper       = webHelper;
     this._taxService      = taxService;
     this._shippingService = shippingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._productAttributeFormatter    = productAttributeFormatter;
     this._priceCalculationService      = priceCalculationService;
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._customerService         = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService          = countryService;
     this._stateProvinceService    = stateProvinceService;
     this._orderProcessingService  = orderProcessingService;
     this._orderService            = orderService;
     this._logger      = logger;
     this._httpContext = httpContext;
 }
 public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings,
                                   ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._payInStorePaymentSettings    = payInStorePaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #14
0
        public PayPalExpressController(ISettingService settingService,
                                       IPaymentService paymentService, IOrderService orderService,
                                       IOrderProcessingService orderProcessingService,
                                       ILogger logger, PayPalExpressPaymentSettings PayPalExpressPaymentSettings,
                                       PaymentSettings paymentSettings, ILocalizationService localizationService,
                                       IWorkContext workContext, OrderSettings orderSettings,
                                       ICurrencyService currencyService, CurrencySettings currencySettings,
                                       IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
                                       IGenericAttributeService genericAttributeService, IStoreContext storeContext,
                                       IComponentContext ctx)
        {
            this._settingService         = settingService;
            this._paymentService         = paymentService;
            this._orderService           = orderService;
            this._orderProcessingService = orderProcessingService;
            this._logger = logger;
            this._payPalExpressPaymentSettings = PayPalExpressPaymentSettings;
            this._paymentSettings              = paymentSettings;
            this._localizationService          = localizationService;
            this._workContext                  = workContext;
            this._orderSettings                = orderSettings;
            this._currencyService              = currencyService;
            this._currencySettings             = currencySettings;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._customerService              = customerService;
            this._genericAttributeService      = genericAttributeService;
            this._storeContext                 = storeContext;

            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");

            T = NullLocalizer.Instance;
        }
Beispiel #15
0
 public KlarnaCheckoutHelper(
     IWorkContext workContext,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     ILocalizationService localizationService,
     IProductAttributeParser productAttributeParser,
     ITaxService taxService,
     IPriceCalculationService priceCalculationService,
     ICurrencyService currencyService,
     IGenericAttributeService genericAttributeService,
     ICheckoutAttributeParser checkoutAttributeParser,
     KlarnaCheckoutSettings klarnaSettings
     )
 {
     _workContext  = workContext;
     _storeContext = storeContext;
     _orderTotalCalculationService = orderTotalCalculationService;
     _localizationService          = localizationService;
     _productAttributeParser       = productAttributeParser;
     _taxService = taxService;
     _priceCalculationService = priceCalculationService;
     _currencyService         = currencyService;
     _genericAttributeService = genericAttributeService;
     _checkoutAttributeParser = checkoutAttributeParser;
     _klarnaSettings          = klarnaSettings;
 }
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._manualPaymentSettings = manualPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public PurchaseOrderPaymentProcessor(PurchaseOrderPaymentSettings purchaseOrderPaymentSettings,
                                      ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._purchaseOrderPaymentSettings = purchaseOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #18
0
 public SezzlePaymentProcessor(CurrencySettings currencySettings,
                               ICheckoutAttributeParser checkoutAttributeParser,
                               ICurrencyService currencyService,
                               IGenericAttributeService genericAttributeService,
                               IHttpContextAccessor httpContextAccessor,
                               ILocalizationService localizationService,
                               IPaymentService paymentService,
                               ISettingService settingService,
                               ITaxService taxService,
                               IWebHelper webHelper,
                               SezzleHttpClient sezzleHttpClient,
                               SezzlePaymentSettings sezzlePaymentSettings,
                               IOrderTotalCalculationService orderTotalCalculationService)
 {
     _currencySettings        = currencySettings;
     _checkoutAttributeParser = checkoutAttributeParser;
     _currencyService         = currencyService;
     _genericAttributeService = genericAttributeService;
     _httpContextAccessor     = httpContextAccessor;
     _localizationService     = localizationService;
     _paymentService          = paymentService;
     _settingService          = settingService;
     _taxService                   = taxService;
     _webHelper                    = webHelper;
     _sezzleHttpClient             = sezzleHttpClient;
     _sezzlePaymentSettings        = sezzlePaymentSettings;
     _orderTotalCalculationService = orderTotalCalculationService;
 }
 public FedexService(CurrencySettings currencySettings,
                     FedexSettings fedexSettings,
                     ICountryService countryService,
                     ICurrencyService currencyService,
                     ICustomerService customerService,
                     ILogger logger,
                     IMeasureService measureService,
                     IOrderTotalCalculationService orderTotalCalculationService,
                     IProductService productService,
                     IShippingService shippingService,
                     IStateProvinceService stateProvinceService,
                     IWorkContext workContext)
 {
     _currencySettings             = currencySettings;
     _fedexSettings                = fedexSettings;
     _countryService               = countryService;
     _currencyService              = currencyService;
     _customerService              = customerService;
     _logger                       = logger;
     _measureService               = measureService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _productService               = productService;
     _shippingService              = shippingService;
     _stateProvinceService         = stateProvinceService;
     _workContext                  = workContext;
 }
Beispiel #20
0
 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #21
0
 public CustomOrderProcessingService(
     IPluginFinder pluginFinder,
     IOrderService orderService, IWebHelper webHelper, ILocalizationService localizationService,
     ILanguageService languageService, IProductService productService, IPaymentService paymentService,
     ILogger logger, IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser, IProductAttributeFormatter productAttributeFormatter,
     IGiftCardService giftCardService, IShoppingCartService shoppingCartService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter, IShippingService shippingService,
     IShipmentService shipmentService, ITaxService taxService, ICustomerService customerService,
     IDiscountService discountService, IEncryptionService encryptionService, IWorkContext workContext,
     IWorkflowMessageService workflowMessageService, IVendorService vendorService,
     ICustomerActivityService customerActivityService, ICurrencyService currencyService,
     IAffiliateService affiliateService, IEventPublisher eventPublisher, IPdfService pdfService,
     IRewardPointService rewardPointService, IGenericAttributeService genericAttributeService,
     ICountryService countryService, ShippingSettings shippingSettings, PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings, TaxSettings taxSettings,
     LocalizationSettings localizationSettings, CurrencySettings currencySettings) :
     base(orderService, webHelper, localizationService, languageService, productService, paymentService, logger,
          orderTotalCalculationService, priceCalculationService, priceFormatter, productAttributeParser,
          productAttributeFormatter, giftCardService, shoppingCartService, checkoutAttributeFormatter,
          shippingService, shipmentService, taxService, customerService, discountService, encryptionService,
          workContext, workflowMessageService, vendorService, customerActivityService, currencyService,
          affiliateService, eventPublisher, pdfService, rewardPointService, genericAttributeService, countryService,
          shippingSettings, paymentSettings, rewardPointsSettings, orderSettings, taxSettings, localizationSettings, currencySettings)
 {
     _pluginFinder = pluginFinder;
 }
 public WidgetsFacebookPixelViewComponent(
     IWorkContext workContext,
     IStoreContext storeContext,
     ISettingService settingService,
     IOrderService orderService,
     IProductService productService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IPermissionService permissionService,
     ILocalizationService localizationService,
     ITaxService taxService,
     ICurrencyService currencyService,
     ILogger logger)
 {
     this._workContext    = workContext;
     this._storeContext   = storeContext;
     this._settingService = settingService;
     this._orderService   = orderService;
     this._productService = productService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._priceCalculationService      = priceCalculationService;
     this._priceFormatter      = priceFormatter;
     this._permissionService   = permissionService;
     this._localizationService = localizationService;
     this._taxService          = taxService;
     this._currencyService     = currencyService;
     this._logger    = logger;
     this._usCulture = new CultureInfo("en-US");
 }
        public ServiceManager(ICheckoutAttributeParser checkoutAttributeParser,
                              ICurrencyService currencyService,
                              IGenericAttributeService genericAttributeService,
                              ILogger logger,
                              IOrderTotalCalculationService orderTotalCalculationService,
                              IPriceCalculationService priceCalculationService,
                              IShippingPluginManager shippingPluginManager,
                              IShoppingCartService shoppingCartService,
                              IStoreContext storeContext,
                              ITaxService taxService,
                              IWorkContext workContext,
                              CurrencySettings currencySettings,
                              PayPalSmartPaymentButtonsSettings settings)
        {
            _checkoutAttributeParser = checkoutAttributeParser;
            _currencyService         = currencyService;
            _genericAttributeService = genericAttributeService;
            _logger = logger;
            _orderTotalCalculationService = orderTotalCalculationService;
            _priceCalculationService      = priceCalculationService;
            _shippingPluginManager        = shippingPluginManager;
            _shoppingCartService          = shoppingCartService;
            _storeContext     = storeContext;
            _taxService       = taxService;
            _workContext      = workContext;
            _currencySettings = currencySettings;
            _settings         = settings;

            _client = _settings.UseSandbox
                ? new PayPalHttpClient(new SandboxEnvironment(_settings.ClientId, _settings.SecretKey))
                : new PayPalHttpClient(new LiveEnvironment(_settings.ClientId, _settings.SecretKey));
        }
Beispiel #24
0
 public PayPaymentProcessor(CurrencySettings currencySettings,
                            ICheckoutAttributeParser checkoutAttributeParser,
                            ICurrencyService currencyService,
                            IGenericAttributeService genericAttributeService,
                            IHttpContextAccessor httpContextAccessor,
                            ILocalizationService localizationService,
                            IOrderTotalCalculationService orderTotalCalculationService,
                            ISettingService settingService,
                            ITaxService taxService,
                            IWebHelper webHelper,
                            PayPaymentSettings payPaymentSettings,
                            ILogger logger,
                            IPaymentService paymentService)
 {
     this._currencySettings             = currencySettings;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._genericAttributeService      = genericAttributeService;
     this._httpContextAccessor          = httpContextAccessor;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService     = settingService;
     this._taxService         = taxService;
     this._webHelper          = webHelper;
     this._payPaymentSettings = payPaymentSettings;
     this.logger         = logger;
     this.paymentService = paymentService;
 }
        public PayPalExpressController(
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			ILogger logger, 
			PaymentSettings paymentSettings, ILocalizationService localizationService,
			OrderSettings orderSettings,
			ICurrencyService currencyService, CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
			IGenericAttributeService genericAttributeService,
            IComponentContext ctx, ICommonServices services,
            IStoreService storeService)
        {
            _paymentService = paymentService;
            _orderService = orderService;
            _orderProcessingService = orderProcessingService;
            _logger = logger;
            _paymentSettings = paymentSettings;
            _localizationService = localizationService;
            _orderSettings = orderSettings;
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _customerService = customerService;
            _genericAttributeService = genericAttributeService;
            _services = services;
            _storeService = storeService;

            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");

            T = NullLocalizer.Instance;
        }
Beispiel #26
0
 public SquarePaymentMethod(CurrencySettings currencySettings,
                            ICurrencyService currencyService,
                            ICustomerService customerService,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            ILogger logger,
                            IOrderTotalCalculationService orderTotalCalculationService,
                            IPageHeadBuilder pageHeadBuilder,
                            ISettingService settingService,
                            IScheduleTaskService scheduleTaskService,
                            IWebHelper webHelper,
                            SquarePaymentManager squarePaymentManager,
                            SquarePaymentSettings squarePaymentSettings)
 {
     this._currencySettings        = currencySettings;
     this._currencyService         = currencyService;
     this._customerService         = customerService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._logger = logger;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._pageHeadBuilder       = pageHeadBuilder;
     this._settingService        = settingService;
     this._scheduleTaskService   = scheduleTaskService;
     this._webHelper             = webHelper;
     this._squarePaymentManager  = squarePaymentManager;
     this._squarePaymentSettings = squarePaymentSettings;
 }
Beispiel #27
0
        public StripeProcessor(ISettingService settingService,
                               ICurrencyService currencyService, ICustomerService customerService,
                               CurrencySettings currencySettings, IWebHelper webHelper,
                               IOrderTotalCalculationService orderTotalCalculationService,
                               IOrderService orderService,
                               StripePaymentSettings stripePaymentSettings,
                               ILocalizationService localizationService,
                               ILogger logger)
        {
            _stripePaymentSettings        = stripePaymentSettings;
            _settingService               = settingService;
            _currencyService              = currencyService;
            _customerService              = customerService;
            _currencySettings             = currencySettings;
            _webHelper                    = webHelper;
            _orderTotalCalculationService = orderTotalCalculationService;
            _orderService                 = orderService;
            _localizationService          = localizationService;
            _logger = logger;

            if (!stripePaymentSettings.IsValid())
            {
                return;
            }

            StripeConfiguration.SetApiKey(stripePaymentSettings.SecretApiKey);
            _chargeService = new StripeChargeService();
            _tokenService  = new StripeTokenService();
            _refundService = new StripeRefundService();

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
        }
 public SendSpendPaymentProcessor(ILocalizationService localizationService,
                                  IOrderTotalCalculationService orderTotalCalculationService,
                                  ISettingService settingService,
                                  ICurrencyService currencyService,
                                  ICustomerService customerService,
                                  IPaymentService paymentService,
                                  SendSpendPaymentSettings manualPaymentSettings,
                                  CurrencySettings currencySettings,
                                  IWebHelper webHelper,
                                  IWorkContext workContext,
                                  ITaxService taxService
                                  )
 {
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService        = settingService;
     this._currencyService       = currencyService;
     this._customerService       = customerService;
     this._paymentService        = paymentService;
     this._webHelper             = webHelper;
     this._manualPaymentSettings = manualPaymentSettings;
     this._currencySettings      = currencySettings;
     this._workContext           = workContext;
     this._taxService            = taxService;
 }
        /// <summary>
        /// Calculate payment method fee
        /// </summary>
        /// <param name="paymentMethod">Payment method</param>
        /// <param name="orderTotalCalculationService">Order total calculation service</param>
        /// <param name="cart">Shopping cart</param>
        /// <param name="fee">Fee value</param>
        /// <param name="usePercentage">Is fee amount specified as percentage or fixed value?</param>
        /// <returns>Result</returns>
        public static decimal CalculateAdditionalFee(this IPaymentMethod paymentMethod,
                                                     IOrderTotalCalculationService orderTotalCalculationService, IList <ShoppingCartItem> cart,
                                                     decimal fee, bool usePercentage)
        {
            if (paymentMethod == null)
            {
                throw new ArgumentNullException("paymentMethod");
            }
            if (fee <= 0)
            {
                return(fee);
            }

            decimal result;

            if (usePercentage)
            {
                //percentage
                orderTotalCalculationService.GetShoppingCartSubTotal(cart, true, out decimal discountAmount, out List <AppliedDiscount> appliedDiscounts,
                                                                     out decimal subTotalWithoutDiscount, out decimal subTotalWithDiscount);
                result = (decimal)((((float)subTotalWithDiscount) * ((float)fee)) / 100f);
            }
            else
            {
                //fixed value
                result = fee;
            }
            return(result);
        }
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
                               ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._manualPaymentSettings        = manualPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #31
0
 public AbcTaxProvider(AbcTaxSettings abcTaxSettings,
                       IAbcTaxService abcTaxService,
                       ICountryService countryService,
                       IGenericAttributeService genericAttributeService,
                       IHttpContextAccessor httpContextAccessor,
                       ILocalizationService localizationService,
                       INopDataProvider nopDataProvider,
                       IOrderTotalCalculationService orderTotalCalculationService,
                       IPaymentService paymentService,
                       ISettingService settingService,
                       IStaticCacheManager staticCacheManager,
                       ITaxCategoryService taxCategoryService,
                       ITaxjarRateService taxjarRateService,
                       ITaxService taxService,
                       IWebHelper webHelper,
                       TaxSettings taxSettings)
 {
     _abcTaxSettings               = abcTaxSettings;
     _abcTaxService                = abcTaxService;
     _countryService               = countryService;
     _genericAttributeService      = genericAttributeService;
     _httpContextAccessor          = httpContextAccessor;
     _localizationService          = localizationService;
     _nopDataProvider              = nopDataProvider;
     _orderTotalCalculationService = orderTotalCalculationService;
     _paymentService               = paymentService;
     _settingService               = settingService;
     _staticCacheManager           = staticCacheManager;
     _taxCategoryService           = taxCategoryService;
     _taxjarRateService            = taxjarRateService;
     _taxService  = taxService;
     _webHelper   = webHelper;
     _taxSettings = taxSettings;
 }
 public GetAddToCartHandler(
     IProductAttributeFormatter productAttributeFormatter,
     ILocalizationService localizationService,
     ITaxService taxService,
     IPriceCalculationService priceCalculationService,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IShoppingCartService shoppingCartService,
     ICacheManager cacheManager,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPictureService pictureService,
     IProductService productService,
     IProductAttributeParser productAttributeParser,
     ShoppingCartSettings shoppingCartSettings,
     TaxSettings taxSettings,
     MediaSettings mediaSettings)
 {
     _productAttributeFormatter = productAttributeFormatter;
     _localizationService       = localizationService;
     _taxService = taxService;
     _priceCalculationService      = priceCalculationService;
     _currencyService              = currencyService;
     _priceFormatter               = priceFormatter;
     _shoppingCartService          = shoppingCartService;
     _cacheManager                 = cacheManager;
     _orderTotalCalculationService = orderTotalCalculationService;
     _pictureService               = pictureService;
     _productService               = productService;
     _productAttributeParser       = productAttributeParser;
     _shoppingCartSettings         = shoppingCartSettings;
     _taxSettings   = taxSettings;
     _mediaSettings = mediaSettings;
 }
Beispiel #33
0
 public AuthorizeNetPaymentProcessor(ISettingService settingService,
                                     ICurrencyService currencyService,
                                     ICustomerService customerService,
                                     IWebHelper webHelper,
                                     IOrderTotalCalculationService orderTotalCalculationService,
                                     IOrderService orderService,
                                     IOrderProcessingService orderProcessingService,
                                     IEncryptionService encryptionService,
                                     ILogger logger,
                                     CurrencySettings currencySettings,
                                     AuthorizeNetPaymentSettings authorizeNetPaymentSettings,
                                     ILocalizationService localizationService)
 {
     this._authorizeNetPaymentSettings = authorizeNetPaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService            = encryptionService;
     this._logger                 = logger;
     this._orderService           = orderService;
     this._orderProcessingService = orderProcessingService;
     this._localizationService    = localizationService;
 }
Beispiel #34
0
 public IyzicoPaymentProcessor(IyzicoPaymentSettings iyzicoPaymentSettings,
                               ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                               ILocalizationService localizationService, IWebHelper webHelper, IStoreContext storeContext,
                               IOrderService orderService,
                               ICustomerService customerService,
                               ICountryService countryService,
                               IProductService productService,
                               ICategoryService categoryService,
                               IEncryptionService encryptionService,
                               IHttpContextAccessor httpContextAccessor)
 {
     this._iyzicoPaymentSettings        = iyzicoPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
     this._webHelper           = webHelper;
     this._storeContext        = storeContext;
     this._orderService        = orderService;
     this._customerSerivce     = customerService;
     this._countryService      = countryService;
     this._productService      = productService;
     this._categoryService     = categoryService;
     this._httpContextAccessor = httpContextAccessor;
     this._encryptionService   = encryptionService;
 }
        /// <summary>
        /// Calculate payment method fee
        /// </summary>
        /// <param name="paymentMethod">Payment method</param>
        /// <param name="orderTotalCalculationService">Order total calculation service</param>
        /// <param name="cart">Shopping cart</param>
        /// <param name="fee">Fee value</param>
        /// <param name="usePercentage">Is fee amount specified as percentage or fixed value?</param>
        /// <returns>Result</returns>
        public static decimal CalculateAdditionalFee(this IPaymentMethod paymentMethod,
			IOrderTotalCalculationService orderTotalCalculationService, 
			IList<OrganizedShoppingCartItem> cart,
            decimal fee, 
			bool usePercentage)
        {
            if (paymentMethod == null)
                throw new ArgumentNullException("paymentMethod");

            if (fee == decimal.Zero)
                return fee;

            var result = decimal.Zero;
            if (usePercentage)
            {
                //percentage
                var orderTotalWithoutPaymentFee = orderTotalCalculationService.GetShoppingCartTotal(cart, usePaymentMethodAdditionalFee: false);
                result = (decimal)((((float)orderTotalWithoutPaymentFee) * ((float)fee)) / 100f);
            }
            else
            {
                //fixed value
                result = fee;
            }
            return result;
        }
 public CartSubtotalRule(
     IShoppingCartService shoppingCartService,
     IOrderTotalCalculationService orderTotalCalculationService)
 {
     _shoppingCartService          = shoppingCartService;
     _orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #37
0
 public DefaultPaymentInfoFactory(
     DefaultPaymentHttpClient paymentApi,
     ICurrencyService currencyService,
     ILocalizationService localizationService,
     ILogger logger,
     IPaymentService paymentService,
     IShoppingCartService shoppingCartService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IHttpContextAccessor httpContextAccessor,
     IStoreContext storeContext,
     IWorkContext workContext,
     CurrencySettings currencySettings,
     CryptoPaymentSettings cryptoPaymentSettings)
 {
     _paymentApi          = paymentApi;
     _currencyService     = currencyService;
     _localizationService = localizationService;
     _logger                       = logger;
     _currencySettings             = currencySettings;
     _paymentService               = paymentService;
     _shoppingCartService          = shoppingCartService;
     _workContext                  = workContext;
     _orderTotalCalculationService = orderTotalCalculationService;
     _httpContextAccessor          = httpContextAccessor;
     _storeContext                 = storeContext;
     _cryptoPaymentSettings        = cryptoPaymentSettings;
 }
        /// <summary>
        /// Calculate payment method fee
        /// </summary>
        /// <param name="paymentMethod">Payment method</param>
        /// <param name="orderTotalCalculationService">Order total calculation service</param>
        /// <param name="cart">Shopping cart</param>
        /// <param name="fee">Fee value</param>
        /// <param name="usePercentage">Is fee amount specified as percentage or fixed value?</param>
        /// <returns>Result</returns>
        public static decimal CalculateAdditionalFee(this IPaymentMethod paymentMethod,
                                                     IOrderTotalCalculationService orderTotalCalculationService, IList <ShoppingCartItem> cart,
                                                     decimal fee, bool usePercentage)
        {
            if (paymentMethod == null)
            {
                throw new ArgumentNullException("paymentMethod");
            }
            if (fee <= 0)
            {
                return(fee);
            }

            decimal result;

            if (usePercentage)
            {
                //percentage
                var orderTotalWithoutPaymentFee = orderTotalCalculationService.GetShoppingCartTotal(cart, usePaymentMethodAdditionalFee: false);
                result = (decimal)((((float)orderTotalWithoutPaymentFee) * ((float)fee)) / 100f);
            }
            else
            {
                //fixed value
                result = fee;
            }
            return(result);
        }
 public ServiceManager(IAddressService addresService,
                       ICheckoutAttributeParser checkoutAttributeParser,
                       ICountryService countryService,
                       ICurrencyService currencyService,
                       IGenericAttributeService genericAttributeService,
                       ILogger logger,
                       IOrderProcessingService orderProcessingService,
                       IOrderService orderService,
                       IOrderTotalCalculationService orderTotalCalculationService,
                       IProductService productService,
                       IShoppingCartService shoppingCartService,
                       IStateProvinceService stateProvinceService,
                       IStoreContext storeContext,
                       ITaxService taxService,
                       IWorkContext workContext,
                       CurrencySettings currencySettings)
 {
     _addresService           = addresService;
     _checkoutAttributeParser = checkoutAttributeParser;
     _countryService          = countryService;
     _currencyService         = currencyService;
     _genericAttributeService = genericAttributeService;
     _logger = logger;
     _orderProcessingService       = orderProcessingService;
     _orderService                 = orderService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _productService               = productService;
     _shoppingCartService          = shoppingCartService;
     _stateProvinceService         = stateProvinceService;
     _storeContext                 = storeContext;
     _taxService       = taxService;
     _workContext      = workContext;
     _currencySettings = currencySettings;
 }
 public BPayPaymentProcessor(BPayPaymentSettings bPayPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, IOrderService orderService)
 {
     this._bPayPaymentSettings = bPayPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._orderService = orderService;
 }
		public Plugin(
			IAmazonPayService apiService,
			IOrderTotalCalculationService orderTotalCalculationService,
			ICommonServices services)
		{
			_apiService = apiService;
			_orderTotalCalculationService = orderTotalCalculationService;
			_services = services;
		}
 public PaymentPayMillController(ISettingService settingService, 
     ILocalizationService localizationService, PayMillPaymentSettings PayMillPaymentSettings, IWorkContext WorkContext, IOrderTotalCalculationService OrderTotalCalculationService)
 {
     this._settingService = settingService;
     this._localizationService = localizationService;
     this._PayMillPaymentSettings = PayMillPaymentSettings;
     this._workContext = WorkContext;
     this._orderTotalCalculationService = OrderTotalCalculationService;
 }
        public PayPalStandardProvider(
			IOrderTotalCalculationService orderTotalCalculationService,
            ICommonServices services, 
            ILogger logger)
        {
            _orderTotalCalculationService = orderTotalCalculationService;
            _services = services;
            _logger = logger;
        }
Beispiel #44
0
 public OrderController(IOrderService orderService, 
     IShipmentService shipmentService, 
     IWorkContext workContext,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IOrderProcessingService orderProcessingService, 
     IDateTimeHelper dateTimeHelper,
     IPaymentService paymentService, 
     ILocalizationService localizationService,
     IPdfService pdfService, 
     IShippingService shippingService,
     ICountryService countryService, 
     IProductAttributeParser productAttributeParser,
     IWebHelper webHelper,
     IDownloadService downloadService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     IRewardPointsService rewardPointsService,
     IGiftCardService giftCardService,
     CatalogSettings catalogSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     ShippingSettings shippingSettings, 
     AddressSettings addressSettings,
     RewardPointsSettings rewardPointsSettings,
     PdfSettings pdfSettings)
 {
     this._orderService = orderService;
     this._shipmentService = shipmentService;
     this._workContext = workContext;
     this._currencyService = currencyService;
     this._priceFormatter = priceFormatter;
     this._orderProcessingService = orderProcessingService;
     this._dateTimeHelper = dateTimeHelper;
     this._paymentService = paymentService;
     this._localizationService = localizationService;
     this._pdfService = pdfService;
     this._shippingService = shippingService;
     this._countryService = countryService;
     this._productAttributeParser = productAttributeParser;
     this._webHelper = webHelper;
     this._downloadService = downloadService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._storeContext = storeContext;
     this._rewardPointsService = rewardPointsService;
     this._giftCardService = giftCardService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._catalogSettings = catalogSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings = addressSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._pdfSettings = pdfSettings;
 }
        public DirectDebitPaymentProcessor(DirectDebitPaymentSettings directDebitPaymentSettings,
            ISettingService settingService,
			IOrderTotalCalculationService orderTotalCalculationService,
            ILocalizationService localizationService)
        {
            this._directDebitPaymentSettings = directDebitPaymentSettings;
            this._settingService = settingService;
			this._orderTotalCalculationService = orderTotalCalculationService;
            this._localizationService = localizationService;
        }
        public PrepaymentPaymentProcessor(PrepaymentPaymentSettings prepaymentPaymentSettings,
            ISettingService settingService,
            ILocalizationService localizationService,
			IOrderTotalCalculationService orderTotalCalculationService)
        {
            this._prepaymentPaymentSettings = prepaymentPaymentSettings;
            this._settingService = settingService;
            this._localizationService = localizationService;
			this._orderTotalCalculationService = orderTotalCalculationService;
        }
        public InvoicePaymentProcessor(InvoicePaymentSettings invoicePaymentSettings,
            ISettingService settingService,
			IOrderTotalCalculationService orderTotalCalculationService,
            ILocalizationService localizationService)
        {
            this._invoicePaymentSettings = invoicePaymentSettings;
            this._settingService = settingService;
			this._orderTotalCalculationService = orderTotalCalculationService;
            this._localizationService = localizationService;
        }
        public CheckoutController(IWorkContext workContext,
            IStoreContext storeContext,
            IShoppingCartService shoppingCartService, 
            ILocalizationService localizationService, 
            ITaxService taxService, 
            ICurrencyService currencyService, 
            IPriceFormatter priceFormatter, 
            IOrderProcessingService orderProcessingService,
            ICustomerService customerService, 
            IGenericAttributeService genericAttributeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IPaymentService paymentService,
            IPluginFinder pluginFinder,
            IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger,
            IOrderService orderService,
            IWebHelper webHelper,
            HttpContextBase httpContext,
            IMobileDeviceHelper mobileDeviceHelper,
            OrderSettings orderSettings, 
            RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            AddressSettings addressSettings)
        {
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._pluginFinder = pluginFinder;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;
            this._httpContext = httpContext;
            this._mobileDeviceHelper = mobileDeviceHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
 public SagePayServerPaymentPlugin(ISagePayServerWorkflowService sagePayServerWorkflowService, ISettingService settingService,
     ISagePayServerTransactionService sagePayServerTransactionService, IOrderTotalCalculationService orderTotalCalculationService,
     SagePayServerTransactionObjectContext context, SagePayServerPaymentSettings sagePayServerPaymentSettings)
 {
     this._context = context;
     this._sagePayServerPaymentSettings = sagePayServerPaymentSettings;
     this._sagePayServerWorkflowService = sagePayServerWorkflowService;
     this._settingService = settingService;
     this._sagePayServerTransactionService = sagePayServerTransactionService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
		public PayUMeaStandardProvider(
			IOrderTotalCalculationService orderTotalCalculationService,
			ICommonServices services,
			ILogger logger,
			HttpContextBase httpContext)
		{
			_orderTotalCalculationService = orderTotalCalculationService;
			_services = services;
			_logger = logger;
			_httpContext = httpContext;
		}
 public FedexComputationMethod(IMeasureService measureService,
     IShippingService shippingService, ISettingService settingService,
     FedexSettings fedexSettings, IOrderTotalCalculationService orderTotalCalculationService,
     ICurrencyService currencyService, CurrencySettings currencySettings)
 {
     this._measureService = measureService;
     this._shippingService = shippingService;
     this._settingService = settingService;
     this._fedexSettings = fedexSettings;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
 }
 public PayPalDirectPaymentProcessor(PayPalDirectPaymentSettings paypalDirectPaymentSettings,
     ISettingService settingService,
     ICurrencyService currencyService, ICustomerService customerService,
     CurrencySettings currencySettings, IWebHelper webHelper,
     IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._paypalDirectPaymentSettings = paypalDirectPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._customerService = customerService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
        public ShoppingCartController(IProductService productService, IWorkContext workContext,
            IShoppingCartService shoppingCartService, IPictureService pictureService,
            ILocalizationService localizationService, IProductAttributeFormatter productAttributeFormatter,
            ITaxService taxService, ICurrencyService currencyService, 
            IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
            ICheckoutAttributeParser checkoutAttributeParser, ICheckoutAttributeFormatter checkoutAttributeFormatter, 
            IOrderProcessingService orderProcessingService,
            IDiscountService discountService,ICustomerService customerService, 
            IGiftCardService giftCardService, ICountryService countryService,
            IStateProvinceService stateProvinceService, IShippingService shippingService, 
            IOrderTotalCalculationService orderTotalCalculationService,
            ICheckoutAttributeService checkoutAttributeService, IPaymentService paymentService,
            IWorkflowMessageService workflowMessageService,
            IPermissionService permissionService,
            MediaSettings mediaSetting, ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings, OrderSettings orderSettings,
            ShippingSettings shippingSettings,TaxSettings taxSettings)
        {
            this._productService = productService;
            this._workContext = workContext;
            this._shoppingCartService = shoppingCartService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._productAttributeFormatter = productAttributeFormatter;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._checkoutAttributeParser = checkoutAttributeParser;
            this._checkoutAttributeFormatter = checkoutAttributeFormatter;
            this._orderProcessingService = orderProcessingService;
            this._discountService = discountService;
            this._customerService = customerService;
            this._giftCardService = giftCardService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._checkoutAttributeService = checkoutAttributeService;
            this._paymentService = paymentService;
            this._workflowMessageService = workflowMessageService;
            this._permissionService = permissionService;

            this._mediaSetting = mediaSetting;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
        }
        public PayPalStandardProvider(ICurrencyService currencyService, 
            HttpContextBase httpContext,
			CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService,
            ICommonServices commonServices, 
            ILogger logger)
        {
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _httpContext = httpContext;
            _commonServices = commonServices;
            _logger = logger;
        }
Beispiel #55
0
 public UPSComputationMethod(IMeasureService measureService,
     IShippingService shippingService, ISettingService settingService,
     UPSSettings upsSettings, ICountryService countryService,
     ICurrencyService currencyService, CurrencySettings currencySettings,
     IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._measureService = measureService;
     this._shippingService = shippingService;
     this._settingService = settingService;
     this._upsSettings = upsSettings;
     this._countryService = countryService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public AuthorizeNetPaymentProcessor(AuthorizeNetPaymentSettings authorizeNetPaymentSettings,
     ISettingService settingService,
     ICurrencyService currencyService,
     ICustomerService customerService,
     CurrencySettings currencySettings, IWebHelper webHelper, 
     IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._authorizeNetPaymentSettings = authorizeNetPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._customerService = customerService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public PayPalStandardPaymentProcessor(PayPalStandardPaymentSettings paypalStandardPaymentSettings,
     ISettingService settingService, ICurrencyService currencyService,
     CurrencySettings currencySettings, IWebHelper webHelper,
     ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService, 
     IOrderTotalCalculationService orderTotalCalculationService, HttpContextBase httpContext)
 {
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._httpContext = httpContext;
 }
        public CorreiosComputationMethod(IMeasureService measureService,
			IShippingService shippingService, ISettingService settingService,
			CorreiosSettings correiosSettings, IOrderTotalCalculationService orderTotalCalculationService,
			ICurrencyService currencyService, CurrencySettings currencySettings, ShippingSettings shippingSettings, IAddressService addressService, ILogger logger)
        {
            this._measureService = measureService;
            this._shippingService = shippingService;
            this._settingService = settingService;
            this._correiosSettings = correiosSettings;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._currencyService = currencyService;
            this._currencySettings = currencySettings;
            this._shippingSettings = shippingSettings;
            this._addressService = addressService;
            this._logger = logger;
        }
 public SecureSubmitPaymentProcessor(SecureSubmitPaymentSettings secureSubmitPaymentSettings,
     ISettingService settingService,
     ICurrencyService currencyService,
     ICustomerService customerService,
     CurrencySettings currencySettings, IWebHelper webHelper,
     IOrderTotalCalculationService orderTotalCalculationService, IEncryptionService encryptionService)
 {
     this._secureSubmitPaymentSettings = secureSubmitPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._customerService = customerService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService = encryptionService;
 }
 public PaymentExpressPaymentProcessor(PaymentExpressPaymentSettings PaymentExpressPaymentSettings,
     ISettingService settingService, ICurrencyService currencyService,
     CurrencySettings currencySettings, ILogger logger, IWebHelper webHelper,
     ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
     IOrderTotalCalculationService orderTotalCalculationService, HttpContextBase httpContext)
 {
     this._PaymentExpressPaymentSettings = PaymentExpressPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._httpContext = httpContext;
     this._logger = logger;
 }