From 6f913ce9d4b8fcc9fb5b82f8e861cab1d3145692 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sat, 13 Jun 2026 21:27:02 +0200 Subject: [PATCH] Updated nuget packages --- MidrandBooksApi/MidrandBooksApi.csproj | 4 ++-- .../Payments/Payfast/PayfastConfirmationEndpoint.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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(); }