From 765eee2060c6032a040776fdc9607596c55dbce7 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sat, 13 Jun 2026 12:48:08 +0200 Subject: [PATCH] Removed ipValidation checks --- .../Payments/Payfast/PayfastConfirmationEndpoint.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs b/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs index 570fbfc..65ed3c2 100644 --- a/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs +++ b/MidrandBooksApi/Payments/Payfast/PayfastConfirmationEndpoint.cs @@ -25,10 +25,6 @@ public sealed class PayfastConfirmationEndpoint : IEndpoint string? remoteIp = request.HttpContext.Connection.RemoteIpAddress?.ToString(); - var ipValidation = await payfastService.ValidateReferrerIpAsync(remoteIp!, !hostEnvironment.IsProduction(), cancellationToken); - - if (ipValidation.IsFailed || !ipValidation.Value) return Results.Unauthorized(); - var formCollection = await request.ReadFormAsync(cancellationToken); if (!formCollection.TryGetValue("signature", out var signatureValues) || string.IsNullOrWhiteSpace(signatureValues.ToString()))