예제 #1
0
        public MolliePaymentsProcessor(IWebHelper webHelper,
                                       ILocalizationService localizationService,
                                       ISettingService settingService,
                                       IHttpContextAccessor httpContextAccessor,
                                       IAddressService addressService,
                                       IStateProvinceService stateProvinceService,
                                       ICountryService countryService,
                                       ICurrencyService currencyService,
                                       IProductService productService,
                                       IOrderService orderService,
                                       CurrencySettings currencySettings,
                                       MollieStandardPaymentSettings mollieStandardPaymentSettings)
        {
            _webHelper                     = webHelper;
            _localizationService           = localizationService;
            _settingService                = settingService;
            _httpContextAccessor           = httpContextAccessor;
            _addressService                = addressService;
            _stateProvinceService          = stateProvinceService;
            _countryService                = countryService;
            _currencyService               = currencyService;
            _currencySettings              = currencySettings;
            _productService                = productService;
            _orderService                  = orderService;
            _mollieStandardPaymentSettings = mollieStandardPaymentSettings;

            _mollieOrderClient = MollieAPIClients.MollieOrderClient(
                _mollieStandardPaymentSettings.UseSandbox,
                GetKeysDictionary());

            _refundClient = MollieAPIClients.MollieRefundClient(
                _mollieStandardPaymentSettings.UseSandbox,
                GetKeysDictionary());
        }
        public PaymentMolliePaymentsController(ISettingService settingService,
                                               IPermissionService permissionService,
                                               IStoreContext storeContext,
                                               INotificationService notificationService,
                                               ILocalizationService localizationService,
                                               IOrderProcessingService orderProcessingService,
                                               IOrderService orderService,
                                               MollieStandardPaymentSettings mollieStandardPaymentSettings)
        {
            _settingService                = settingService;
            _permissionService             = permissionService;
            _storeContext                  = storeContext;
            _notificationService           = notificationService;
            _localizationService           = localizationService;
            _orderProcessingService        = orderProcessingService;
            _orderService                  = orderService;
            _mollieStandardPaymentSettings = mollieStandardPaymentSettings;

            _mollieOrderClient = MollieAPIClients.MollieOrderClient(
                _mollieStandardPaymentSettings.UseSandbox,
                GetKeysDictionary());
        }