diff --git a/src/Spd.Manager.Payment/Contract.cs b/src/Spd.Manager.Payment/Contract.cs index 087553ac8..613234f23 100644 --- a/src/Spd.Manager.Payment/Contract.cs +++ b/src/Spd.Manager.Payment/Contract.cs @@ -1,6 +1,5 @@ using MediatR; using Spd.Manager.Shared; -using System.ComponentModel.DataAnnotations; namespace Spd.Manager.Payment { @@ -30,8 +29,6 @@ public record PaymentLinkCreateCommand(PaymentLinkCreateRequest PaymentLinkCreat public record PaymentLinkCreateRequest { public Guid? ApplicationId { get; set; } - [MaxLength(100)] - public string Description { get; set; } = null!; public PaymentMethodCode PaymentMethod { get; set; } //CC-credit card, VI - debit card } diff --git a/src/Spd.Presentation.Licensing/Controllers/PaymentController.cs b/src/Spd.Presentation.Licensing/Controllers/PaymentController.cs index 12efbb09f..86525f331 100644 --- a/src/Spd.Presentation.Licensing/Controllers/PaymentController.cs +++ b/src/Spd.Presentation.Licensing/Controllers/PaymentController.cs @@ -386,7 +386,6 @@ public async Task CreateLinkRedirectToPaybcPaymentPage([FromQuery] ApplicationId = null, EncodedApplicationId = encodedAppId, EncodedPaymentId = encodedPaymentId, - Description = "Licensing", PaymentMethod = PaymentMethodCode.CreditCard }; var result = await _mediator.Send(new PaymentLinkCreateCommand(linkCreateRequest, redirectUrl, _paymentsConfiguration.MaxOnlinePaymentFailedTimes)); diff --git a/src/Spd.Presentation.Screening/Controllers/PaymentController.cs b/src/Spd.Presentation.Screening/Controllers/PaymentController.cs index e80b027ad..692ed854a 100644 --- a/src/Spd.Presentation.Screening/Controllers/PaymentController.cs +++ b/src/Spd.Presentation.Screening/Controllers/PaymentController.cs @@ -299,7 +299,6 @@ public async Task ProcessApplicantInvitePaymentResult([FromQuery] return Redirect($"{hostUrl}{cancelPath}"); } - var paymentId = await _mediator.Send(new PaymenCreateCommand(Request.QueryString.ToString(), paybcPaymentResult)); if (paybcPaymentResult.Success) return Redirect($"{hostUrl}{successPath}{paymentId}"); @@ -386,7 +385,6 @@ public async Task CreateLinkRedirectToPaybcPaymentPage([FromQuery] ApplicationId = null, EncodedApplicationId = encodedAppId, EncodedPaymentId = encodedPaymentId, - Description = "Criminal Record Check", PaymentMethod = PaymentMethodCode.CreditCard }; var result = await _mediator.Send(new PaymentLinkCreateCommand(linkCreateRequest, redirectUrl, _paymentsConfiguration.MaxOnlinePaymentFailedTimes)); diff --git a/src/Spd.Utilities.LogonUser/IPrincipalExtensions.cs b/src/Spd.Utilities.LogonUser/IPrincipalExtensions.cs index 692ef47c9..c5c1aabad 100644 --- a/src/Spd.Utilities.LogonUser/IPrincipalExtensions.cs +++ b/src/Spd.Utilities.LogonUser/IPrincipalExtensions.cs @@ -117,16 +117,6 @@ private static ClaimsPrincipal ValidatePrincipal(IPrincipal principal) return (ClaimsPrincipal)principal; } - private static string? GetClaimValue(this ClaimsPrincipal claimsPrincipal, string key) - { - var identity = claimsPrincipal.Identity as ClaimsIdentity; - if (identity == null) - return null; - - var claim = identity.Claims.FirstOrDefault(c => c.Type == key); - return claim?.Value; - } - public static (string?, string?) GetMiddleNames(string? gns, string? fn) { if (!string.IsNullOrEmpty(gns))