Skip to content

Commit

Permalink
set payment description from be (#1719)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

-spdbt-3232(set payment description from be with case id)
  • Loading branch information
peggy-quartech authored Nov 7, 2024
1 parent f4c61c1 commit 47bc348
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/Spd.Manager.Payment/Contract.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using MediatR;
using Spd.Manager.Shared;
using System.ComponentModel.DataAnnotations;

namespace Spd.Manager.Payment
{
Expand Down Expand Up @@ -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

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ public async Task<ActionResult> CreateLinkRedirectToPaybcPaymentPage([FromQuery]
ApplicationId = null,
EncodedApplicationId = encodedAppId,
EncodedPaymentId = encodedPaymentId,
Description = "Licensing",
PaymentMethod = PaymentMethodCode.CreditCard
};
var result = await _mediator.Send(new PaymentLinkCreateCommand(linkCreateRequest, redirectUrl, _paymentsConfiguration.MaxOnlinePaymentFailedTimes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ public async Task<ActionResult> 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}");
Expand Down Expand Up @@ -386,7 +385,6 @@ public async Task<ActionResult> 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));
Expand Down
10 changes: 0 additions & 10 deletions src/Spd.Utilities.LogonUser/IPrincipalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 47bc348

Please sign in to comment.