public RefundRegistrar(Configuration configuration, IHttpRequestSender requestSender) {
			this.configuration = configuration;
			this.requestSender = requestSender;
		}
 /// <summary>
 /// Creates a new instance of the TransactionRegistrar
 /// </summary>
 public TransactionRegistrar(Configuration configuration, IUrlResolver urlResolver, IHttpRequestSender requestSender)
 {
     this.configuration = configuration;
     this.requestSender = requestSender;
     this.urlResolver = urlResolver;
 }
Exemple #3
0
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);

            SagePayConfiguration = new SagePayMvc.Configuration()
            {
                FailedAction = "PaymentFailed",
                FailedController = "SagePay",
                Mode = ServerMode,
                NotificationAction = "PaymentNotification",
                NotificationController = "SagePay",
                NotificationHostName = requestContext.HttpContext.Request.Url.Host,
                PaymentType = PaymentType,
                SuccessAction = "PaymentSuccess",
                SuccessController = "SagePay",
                VendorName = this.DomainService.GetSettingsValue(BL.SettingsKey.sagePayVendorName, this.DomainID)
            };
        }