From cede0e7c472e0f82c31ebe2a387fd8ff56baf821 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Mon, 6 Oct 2025 16:35:09 +0100 Subject: [PATCH] Fix: Update interface to match confirmations parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added confirmations parameter to ICryptoPaymentService.ProcessPaymentWebhookAsync - Updated CryptoPaymentService implementation to pass confirmations parameter - Fixes build error: interface member signature mismatch 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- LittleShop/Services/CryptoPaymentService.cs | 4 ++-- LittleShop/Services/ICryptoPaymentService.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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