diff --git a/LittleShop/Services/CryptoPaymentService.cs b/LittleShop/Services/CryptoPaymentService.cs index b94062d..842536f 100644 --- a/LittleShop/Services/CryptoPaymentService.cs +++ b/LittleShop/Services/CryptoPaymentService.cs @@ -139,7 +139,7 @@ public class CryptoPaymentService : ICryptoPaymentService payment.PaidAmount = amount; payment.TransactionHash = transactionHash; - if (status == PaymentStatus.Paid || (status == PaymentStatus.Completed && confirmations >= 3)) + if (status == PaymentStatus.Paid || status == PaymentStatus.Overpaid || (status == PaymentStatus.Completed && confirmations >= 3)) { payment.PaidAt = DateTime.UtcNow; @@ -156,8 +156,8 @@ public class CryptoPaymentService : ICryptoPaymentService await _context.SaveChangesAsync(); - // Send notification for payment confirmation - if (status == PaymentStatus.Paid || status == PaymentStatus.Completed) + // Send notification for payment confirmation (including overpaid since payment was successful) + if (status == PaymentStatus.Paid || status == PaymentStatus.Overpaid || status == PaymentStatus.Completed) { await SendPaymentConfirmedNotification(payment.OrderId, amount); }