littleshop/Services/ICryptoPaymentService.cs
2025-08-20 13:20:19 +01:00

12 lines
484 B
C#

using LittleShop.DTOs;
using LittleShop.Enums;
namespace LittleShop.Services;
public interface ICryptoPaymentService
{
Task<CryptoPaymentDto> CreatePaymentAsync(Guid orderId, CryptoCurrency currency);
Task<IEnumerable<CryptoPaymentDto>> GetPaymentsByOrderAsync(Guid orderId);
Task<bool> ProcessPaymentWebhookAsync(string invoiceId, PaymentStatus status, decimal amount, string? transactionHash = null);
Task<PaymentStatusDto> GetPaymentStatusAsync(Guid paymentId);
}