@inject LanguageService LangService @inject BTCPayServerEnvironment Env @inject IFileService FileService @inject ThemeSettings Theme @inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary @using BTCPayServer.Services @using BTCPayServer.Abstractions.Contracts @using BTCPayServer.Abstractions.TagHelpers @using BTCPayServer.Components.ThemeSwitch @using Microsoft.AspNetCore.Mvc.TagHelpers @model PaymentModel @{ Layout = null; ViewData["Title"] = Model.HtmlTitle; var paymentMethodCount = Model.AvailableCryptos.Count; var logoUrl = !string.IsNullOrEmpty(Model.LogoFileId) ? await FileService.GetFileUrl(Context.Request.GetAbsoluteRootUri(), Model.LogoFileId) : Model.CustomLogoLink; } @functions { private string PaymentMethodName(PaymentModel.AvailableCrypto pm) { return Model.AltcoinsBuild ? $"{pm.PaymentMethodName} {pm.CryptoCode}" : pm.PaymentMethodName.Replace("Bitcoin (", "").Replace(")", "").Replace("Lightning ", ""); } } @if (!string.IsNullOrEmpty(Model.CustomCSSLink)) { } @if (Model.IsModal) { } @if (!string.IsNullOrEmpty(Model.BrandColor)) { }
@if (!string.IsNullOrEmpty(logoUrl)) { }

@Model.StoreName

{{$t("Invoice expired")}}

{{$t("Invoice ID")}}
{{srvModel.invoiceId}}
{{$t("Order ID")}}
{{srvModel.orderId}}

{{$t("InvoiceExpired_Body_2")}}

{{$t("InvoiceExpired_Body_3")}}

{{$t("Please fill out the following")}}
{{$t("Invoice will expire in")}} {{timerText}}
@Model.ItemDesc
@if (Model.IsUnsetTopUp) {

{{$t("Any amount")}}

} else {

@Model.BtcDue @Model.CryptoCode

@Model.BtcDue @Model.CryptoCode

@Model.OrderAmountFiat
{{$t("Invoice will expire in")}} {{timerText}}
{{$t("NotPaid_ExtraTransaction")}}
{{$t("Total Price")}}
{{srvModel.orderAmount}} {{ srvModel.cryptoCode }}
{{$t("Exchange Rate")}}
{{$t("Recommended Fee")}}
{{$t("Feerate", { feeRate: srvModel.feeRate })}}
{{$t("Network Cost")}}
{{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
{{$t("Amount Paid")}}
{{srvModel.btcPaid }} {{ srvModel.cryptoCode }}
{{$t("Amount Due")}}
{{srvModel.btcDue}} {{ srvModel.cryptoCode }}
}
@if (paymentMethodCount > 1) {
{{$t("Pay with")}}
@foreach (var crypto in Model.AvailableCryptos) { @PaymentMethodName(crypto) }
} else {
{{$t("Pay with")}} @PaymentMethodName(Model.AvailableCryptos.First())
}
@if (Env.CheatMode) { }
@if (Env.CheatMode) { } @foreach (var paymentMethodHandler in PaymentMethodHandlerDictionary .Select(handler => handler.GetCheckoutUISettings()) .Where(settings => settings != null) .DistinctBy(pm => pm.ExtensionPartial)) { } @await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-end", model = Model })