Exemplo n.º 1
0
 public static void NoHttpContext(this Guard guard, IWebRuntimeInspector webRuntimeInspector)
 {
     if (!webRuntimeInspector.IsWebContext())
     {
         throw new InvalidOperationException("PayEx payment method service ProccessCallback cannot be used outside HttpContext");
     }
 }
 public DibsPaymentMethodService(DibsPageBuilder pageBuilder, DibsMd5Computer md5Computer, IWebRuntimeInspector webRuntimeInspector, ILoggingService loggingService)
 {
     _webRuntimeInspector = webRuntimeInspector;
     _loggingService      = loggingService;
     DibsMd5Computer      = md5Computer;
     PageBuilder          = pageBuilder;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PayExPaymentMethodService"/> class.
 /// </summary>
 public PayExPaymentMethodService(ILocalizationContext localizationContext, PayExMd5Computer md5Computer, IAbsoluteUrlService absoluteUrlService, ICallbackUrl callbackUrl, IWebRuntimeInspector webRuntimeInspector)
 {
     _absoluteUrlService  = absoluteUrlService;
     _callbackUrl         = callbackUrl;
     _webRuntimeInspector = webRuntimeInspector;
     LocalizationContext  = localizationContext;
     Md5Computer          = md5Computer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="QuickpayPaymentMethodService"/> class.
 /// </summary>
 public QuickpayPaymentMethodService(QuickpayPageBuilder pageBuilder, QuickpayMd5Computer md5Computer, IWebRuntimeInspector webRuntimeInspector)
 {
     _webRuntimeInspector = webRuntimeInspector;
     QuickpayMd5Computer  = md5Computer;
     PageBuilder          = pageBuilder;
 }
 public OgonePaymentMethodService(OgonePageBuilder oGonePageBuilder, IWebRuntimeInspector webRuntimeInspector)
 {
     _webRuntimeInspector = webRuntimeInspector;
     OgonePageBuilder     = oGonePageBuilder;
 }