Invoices has events recorded

This commit is contained in:
nicolas.dorier
2018-01-14 21:48:23 +09:00
parent bb3d107309
commit ba0e080816
16 changed files with 709 additions and 18 deletions

View File

@@ -33,7 +33,8 @@ namespace BTCPayServer.Controllers
{
UserId = GetUserId(),
InvoiceId = invoiceId,
IncludeAddresses = true
IncludeAddresses = true,
IncludeEvents = true
})).FirstOrDefault();
if (invoice == null)
return NotFound();
@@ -57,7 +58,8 @@ namespace BTCPayServer.Controllers
NotificationUrl = invoice.NotificationURL,
RedirectUrl = invoice.RedirectURL,
ProductInformation = invoice.ProductInformation,
StatusException = invoice.ExceptionStatus
StatusException = invoice.ExceptionStatus,
Events = invoice.Events
};
foreach (var data in invoice.GetCryptoData(null))