Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPDBT-3232] PayBC DirectPay Payment URL: add ApplicationId in Description - screening part #1717

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Spd.Manager.Payment/PaymentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public async Task<PaymentLinkResponse> Handle(PaymentLinkCreateCommand command,
Guid applicationId;
Guid paymentId;
bool isFromSecurePaymentLink;
_logger.LogInformation("PaymentManager get PaymentLinkCreateCommand");

if (command.PaymentLinkCreateRequest is PaymentLinkFromSecureLinkCreateRequest request)
{
try
Expand Down Expand Up @@ -169,13 +169,14 @@ public async Task<PaymentLinkResponse> Handle(PaymentLinkCreateCommand command,
TransNumber = transNumber.ToString(),
PbcRefNumber = spdPaymentConfig.PbcRefNumber,
Amount = spdPaymentConfig.ServiceCost,
Description = command.PaymentLinkCreateRequest.Description,
Description = $"Payment for Case ID: {app.ApplicationNumber}",
PaymentMethod = Spd.Utilities.Payment.PaymentMethodEnum.CC,
RedirectUrl = command.RedirectUrl,
Ref2 = paymentId.ToString() + "*" + applicationId.ToString(), //paymentId+"*"+applicationId to ref2 //ref1 is recalled by paybc for their internal use.
Ref3 = isFromSecurePaymentLink.ToString()
});

_logger.LogInformation("PaymentLinkCreated = {paymentLinkUrl}", linkResult.PaymentLinkUrl);
return new PaymentLinkResponse(linkResult.PaymentLinkUrl);
}

Expand Down