Esempio n. 1
0
 public EpaycoHttpClient(HttpClient client,
                         PayEpaycoPaymentSettings PayEpaycoPaymentSettings)
 {
     //configure client
     client.Timeout = TimeSpan.FromMilliseconds(5000);
     client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"nopCommerce-{NopVersion.CurrentVersion}");
     _httpClient = client;
     _PayEpaycoPaymentSettings = PayEpaycoPaymentSettings;
     Headers = new Dictionary <string, string>();
     Headers.DefaultIfEmpty(); // Se limpia la lista de Headers.
 }
 public PaymentPayEpaycoController(ISettingService settingService,
                                   IPaymentService paymentService, IOrderService orderService,
                                   IOrderProcessingService orderProcessingService, INotificationService notificationService,
                                   ILocalizationService localizationService,
                                   PayEpaycoPaymentSettings EpaycoPaymentSettings,
                                   PaymentSettings paymentSettings,
                                   ILogger logger,
                                   IPaymentPluginManager paymentPluginManager,
                                   IPermissionService permissionService, IWebHelper webHelper)
 {
     _settingService         = settingService;
     _paymentService         = paymentService;
     _orderService           = orderService;
     _orderProcessingService = orderProcessingService;
     _notificationService    = notificationService;
     _EpaycoPaymentSettings  = EpaycoPaymentSettings;
     _localizationService    = localizationService;
     _paymentSettings        = paymentSettings;
     _permissionService      = permissionService;
     _logger = logger;
     _paymentPluginManager = paymentPluginManager;
     _webHelper            = webHelper;
 }