diff --git a/MidrandBooksApi/MidrandBooksApi.csproj b/MidrandBooksApi/MidrandBooksApi.csproj index 333b7f8..5608021 100644 --- a/MidrandBooksApi/MidrandBooksApi.csproj +++ b/MidrandBooksApi/MidrandBooksApi.csproj @@ -54,13 +54,13 @@ - + - + diff --git a/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs b/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs index 1921260..949e42d 100644 --- a/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs +++ b/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs @@ -37,6 +37,7 @@ public sealed class PayfastConfirmationEndpoint : IEndpoint if (!PayfastService.VerifyIncomingSignatureFromForm(formCollection, passphrase!)) { logger.LogCritical($"Incoming signature failed validation: {incomingSignature}"); + return Results.Unauthorized(); }