From 7c5b5f1728f2a835d7ab462b47466eb238d6c279 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sat, 13 Jun 2026 21:20:30 +0200 Subject: [PATCH] Refactored usaged of merchant payment id usage --- .../PayfastPaymentConfirmationReceivedEventHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LiteCharms.Features.MidrandBooks/Payments/Events/Handlers/PayfastPaymentConfirmationReceivedEventHandler.cs b/LiteCharms.Features.MidrandBooks/Payments/Events/Handlers/PayfastPaymentConfirmationReceivedEventHandler.cs index aeb7974..5e4fe07 100644 --- a/LiteCharms.Features.MidrandBooks/Payments/Events/Handlers/PayfastPaymentConfirmationReceivedEventHandler.cs +++ b/LiteCharms.Features.MidrandBooks/Payments/Events/Handlers/PayfastPaymentConfirmationReceivedEventHandler.cs @@ -66,7 +66,7 @@ public sealed class PayfastPaymentConfirmationReceivedEventHandler(IServiceProvi { OrderId = orderResult.Value.Id, PaymentId = paymentResult.Value.Id, - PaymentGatewayReference = payload.PaymentId!, + PaymentGatewayReference = payload.MerchantPaymentId!, Status = LedgerStatuses.Completed, CustomerId = orderResult.Value.CustomerId, }, cancellationToken); @@ -91,7 +91,7 @@ public sealed class PayfastPaymentConfirmationReceivedEventHandler(IServiceProvi { OrderId = orderResult.Value.Id, PaymentId = paymentResult.Value.Id, - PaymentGatewayReference = payload.PaymentId!, + PaymentGatewayReference = payload.MerchantPaymentId!, Status = ledgerStatus, CustomerId = orderResult.Value.CustomerId, }, cancellationToken);