@using BTCPayServer.Client.Models @model InvoiceDetailsModel @{ ViewData["Title"] = $"Invoice {Model.Id}"; } @section PageHeadContent { } @section PageFootContent { }

@ViewData["Title"]

@if (Model.ShowCheckout) { Checkout } @if (Model.CanRefund) { Issue Refund } else { }

Invoice Information

@if (!string.IsNullOrEmpty(Model.RefundEmail)) { } @if (!string.IsNullOrEmpty(Model.NotificationUrl)) { } @if (!string.IsNullOrEmpty(Model.RedirectUrl)) { }
Store @Model.StoreName
Invoice Id @Model.Id
Order Id @if (string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl)) { @Model.TypedMetadata.OrderId } else { @if (string.IsNullOrEmpty(Model.TypedMetadata.OrderId)) { View Order } else { @Model.TypedMetadata.OrderId } }
Payment Request Id @Model.TypedMetadata.PaymentRequestId
State @if (Model.CanMarkStatus) { } else { @Model.State @if (Model.StatusException != InvoiceExceptionStatus.None) { @String.Format(" ({0})", Model.StatusException.ToString()); } }
Created Date @Model.CreatedDate.ToBrowserDate()
Expiration Date @Model.ExpirationDate.ToBrowserDate()
Monitoring Date @Model.MonitoringDate.ToBrowserDate()
Transaction Speed @Model.TransactionSpeed
Total Fiat Due @Model.Fiat
Refund Email @Model.RefundEmail
Notification Url @Model.NotificationUrl
Redirect Url @Model.RedirectUrl
@if (Model.PosData.Count == 0) {

Product Information

@if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemCode)) { } @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemDesc)) { }
Item code @Model.TypedMetadata.ItemCode
Item Description @Model.TypedMetadata.ItemDesc
Price @Model.Fiat
Tax Included @Model.TaxIncluded
}

Buyer Information

Name @Model.TypedMetadata.BuyerName
Email @Model.TypedMetadata.BuyerEmail
Phone @Model.TypedMetadata.BuyerPhone
Address 1 @Model.TypedMetadata.BuyerAddress1
Address 2 @Model.TypedMetadata.BuyerAddress2
City @Model.TypedMetadata.BuyerCity
State @Model.TypedMetadata.BuyerState
Country @Model.TypedMetadata.BuyerCountry
Zip @Model.TypedMetadata.BuyerZip
@if (Model.PosData.Count != 0) {

Product information

@if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemCode)) { } @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemDesc)) { }
Item code @Model.TypedMetadata.ItemCode
Item Description @Model.TypedMetadata.ItemDesc
Price @Model.Fiat
Tax included @Model.TaxIncluded

Point of Sale Data

} @if (Model.Deliveries.Count != 0) {

Webhook deliveries

    @foreach (var delivery in Model.Deliveries) {
  • @if (delivery.Success) { } else { } @delivery.Id | @delivery.Type | @delivery.PayloadUrl | @delivery.Time.ToBrowserDate()
  • }
}

Events

@foreach (var evt in Model.Events) { }
Date Message
@evt.Timestamp.ToBrowserDate() @evt.Message