Beispiel #1
0
 public PaymentPaytmController(IWorkContext workContext,
                               IStoreService storeService,
                               ISettingService settingService,
                               IPaymentService paymentService,
                               IOrderService orderService,
                               IOrderProcessingService orderProcessingService,
                               IPermissionService permissionService,
                               IGenericAttributeService genericAttributeService,
                               ILocalizationService localizationService,
                               IStoreContext storeContext,
                               ILogger logger,
                               IWebHelper webHelper,
                               PaymentSettings paymentSettings,
                               PaytmPaymentSettings PaytmPaymentSettings,
                               ShoppingCartSettings shoppingCartSettings)
 {
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._permissionService       = permissionService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger               = logger;
     this._webHelper            = webHelper;
     this._paymentSettings      = paymentSettings;
     this._PaytmPaymentSettings = PaytmPaymentSettings;
     this._shoppingCartSettings = shoppingCartSettings;
 }
Beispiel #2
0
 public PaymentPaytmController(IGenericAttributeService genericAttributeService,
                               IOrderProcessingService orderProcessingService,
                               IOrderService orderService,
                               IPaymentPluginManager paymentPluginManager,
                               IPermissionService permissionService,
                               ILocalizationService localizationService,
                               ILogger logger,
                               INotificationService notificationService,
                               ISettingService settingService,
                               IStoreContext storeContext,
                               IWebHelper webHelper,
                               IWorkContext workContext,
                               PaytmPaymentSettings paytmPaymentSettings,
                               ShoppingCartSettings shoppingCartSettings)
 {
     _genericAttributeService = genericAttributeService;
     _orderProcessingService  = orderProcessingService;
     _orderService            = orderService;
     _paymentPluginManager    = paymentPluginManager;
     _permissionService       = permissionService;
     _localizationService     = localizationService;
     _logger = logger;
     _notificationService  = notificationService;
     _settingService       = settingService;
     _storeContext         = storeContext;
     _webHelper            = webHelper;
     _workContext          = workContext;
     _shoppingCartSettings = shoppingCartSettings;
     _paytmPaymentSettings = paytmPaymentSettings;
 }
        public PaytmHttpClient(HttpClient client,
                               PaytmPaymentSettings paytmPaymentSettings)
        {
            //configure client
            client.Timeout = TimeSpan.FromSeconds(20);
            client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"nopCommerce-{NopVersion.CurrentVersion}");

            _httpClient           = client;
            _paytmPaymentSettings = paytmPaymentSettings;
        }
Beispiel #4
0
 public PaymentPaytmController(ISettingService settingService,
                               IPaymentService paymentService, IOrderService orderService,
                               IOrderProcessingService orderProcessingService,
                               PaytmPaymentSettings PaytmPaymentSettings,
                               PaymentSettings paymentSettings)
 {
     this._settingService         = settingService;
     this._paymentService         = paymentService;
     this._orderService           = orderService;
     this._orderProcessingService = orderProcessingService;
     this._PaytmPaymentSettings   = PaytmPaymentSettings;
     this._paymentSettings        = paymentSettings;
 }
 public PaymentPaytmController(ISettingService settingService,
     IPaymentService paymentService, IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     PaytmPaymentSettings PaytmPaymentSettings,
     PaymentSettings paymentSettings)
 {
     this._settingService = settingService;
     this._paymentService = paymentService;
     this._orderService = orderService;
     this._orderProcessingService = orderProcessingService;
     this._PaytmPaymentSettings = PaytmPaymentSettings;
     this._paymentSettings = paymentSettings;
 }