diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index 37527b360..e704ade9a 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -162,6 +162,7 @@ namespace BTCPayServer.Controllers CustomerEmail = invoice.RefundMail, ExpirationSeconds = Math.Max(0, (int)(invoice.ExpirationTime - DateTimeOffset.UtcNow).TotalSeconds), MaxTimeSeconds = (int)(invoice.ExpirationTime - invoice.InvoiceTime).TotalSeconds, + MaxTimeMinutes = (int)(invoice.ExpirationTime - invoice.InvoiceTime).TotalMinutes, ItemDesc = invoice.ProductInformation.ItemDesc, Rate = FormatCurrency(cryptoData), MerchantRefLink = invoice.RedirectURL ?? "/", diff --git a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs index ce196c632..04c70d858 100644 --- a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs +++ b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs @@ -39,5 +39,6 @@ namespace BTCPayServer.Models.InvoicingModels public string OrderId { get; set; } public string CryptoImage { get; set; } public string NetworkFeeDescription { get; internal set; } + public int MaxTimeMinutes { get; internal set; } } } diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index cd2c82e0d..f63c1d3f8 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -492,7 +492,7 @@
What happened?
-
This invoice has expired. An invoice is only valid for 15 minutes. You can if you would like to submit your payment again.
+
This invoice has expired. An invoice is only valid for @Model.MaxTimeMinutes minutes. You can if you would like to submit your payment again.
If you tried to send a payment, it has not yet been accepted by the Bitcoin network. We have not yet received your funds.
If the transaction @@ -504,7 +504,7 @@ Invoice ID: {{srvModel.invoiceId}}
- Order ID: {{srvModel.OrderId}} + Order ID: {{srvModel.orderId}}