diff --git a/BTCPayServer/Models/StoreViewModels/EditWebhookViewModel.cs b/BTCPayServer/Models/StoreViewModels/EditWebhookViewModel.cs index 3b31b261c..00cea1001 100644 --- a/BTCPayServer/Models/StoreViewModels/EditWebhookViewModel.cs +++ b/BTCPayServer/Models/StoreViewModels/EditWebhookViewModel.cs @@ -24,6 +24,7 @@ namespace BTCPayServer.Models.StoreViewModels Time = s.Timestamp; Type = blob.ReadRequestAs().Type; WebhookId = s.Id; + PayloadUrl = s.Webhook?.GetBlob().Url; } public string Id { get; set; } public DateTimeOffset Time { get; set; } @@ -31,6 +32,7 @@ namespace BTCPayServer.Models.StoreViewModels public string WebhookId { get; set; } public bool Success { get; set; } public string ErrorMessage { get; set; } + public string PayloadUrl { get; set; } } public class EditWebhookViewModel { diff --git a/BTCPayServer/Services/Invoices/InvoiceRepository.cs b/BTCPayServer/Services/Invoices/InvoiceRepository.cs index 4654ba201..75074c6f8 100644 --- a/BTCPayServer/Services/Invoices/InvoiceRepository.cs +++ b/BTCPayServer/Services/Invoices/InvoiceRepository.cs @@ -102,6 +102,7 @@ namespace BTCPayServer.Services.Invoices { using var ctx = _applicationDbContextFactory.CreateContext(); return await ctx.InvoiceWebhookDeliveries + .Include(s => s.Delivery).ThenInclude(s => s.Webhook) .Where(s => s.InvoiceId == invoiceId) .Select(s => s.Delivery) .OrderByDescending(s => s.Timestamp) diff --git a/BTCPayServer/Views/Invoice/Invoice.cshtml b/BTCPayServer/Views/Invoice/Invoice.cshtml index 532f654e9..35216c49b 100644 --- a/BTCPayServer/Views/Invoice/Invoice.cshtml +++ b/BTCPayServer/Views/Invoice/Invoice.cshtml @@ -338,9 +338,14 @@ | @delivery.Type + | + + @delivery.PayloadUrl + + | @delivery.Time.ToBrowserDate()