diff --git a/LittleShop/Services/CryptoPaymentService.cs b/LittleShop/Services/CryptoPaymentService.cs index bef4d31..fc23f44 100644 --- a/LittleShop/Services/CryptoPaymentService.cs +++ b/LittleShop/Services/CryptoPaymentService.cs @@ -174,10 +174,10 @@ public class CryptoPaymentService : ICryptoPaymentService } // Remove old BTCPay webhook processor - public async Task ProcessPaymentWebhookAsync(string invoiceId, PaymentStatus status, decimal amount, string? transactionHash = null) + public async Task ProcessPaymentWebhookAsync(string invoiceId, PaymentStatus status, decimal amount, string? transactionHash = null, int confirmations = 0) { // This method is kept for interface compatibility but redirects to SilverPAY - return await ProcessSilverPayWebhookAsync(invoiceId, status, amount, transactionHash); + return await ProcessSilverPayWebhookAsync(invoiceId, status, amount, transactionHash, confirmations); } private static CryptoPaymentDto MapToDto(CryptoPayment payment) diff --git a/LittleShop/Services/ICryptoPaymentService.cs b/LittleShop/Services/ICryptoPaymentService.cs index 080f5b0..d1268ec 100644 --- a/LittleShop/Services/ICryptoPaymentService.cs +++ b/LittleShop/Services/ICryptoPaymentService.cs @@ -7,7 +7,7 @@ public interface ICryptoPaymentService { Task CreatePaymentAsync(Guid orderId, CryptoCurrency currency); Task> GetPaymentsByOrderAsync(Guid orderId); - Task ProcessPaymentWebhookAsync(string invoiceId, PaymentStatus status, decimal amount, string? transactionHash = null); + Task ProcessPaymentWebhookAsync(string invoiceId, PaymentStatus status, decimal amount, string? transactionHash = null, int confirmations = 0); Task ProcessSilverPayWebhookAsync(string orderId, PaymentStatus status, decimal amount, string? transactionHash = null, int confirmations = 0); Task GetPaymentStatusAsync(Guid paymentId); } \ No newline at end of file