@using BTCPayServer.Services @using BTCPayServer.Abstractions.Contracts @inject LanguageService LangService @inject BTCPayServerEnvironment Env @inject IEnumerable UiExtensions @inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary @inject BTCPayServer.Security.ContentSecurityPolicies Csp @model CheckoutModel @{ Layout = null; ViewData["Title"] = Model.HtmlTitle; ViewData["StoreBranding"] = Model.StoreBranding; Csp.UnsafeEval(); var hasPaymentPlugins = UiExtensions.Any(extension => extension.Location == "checkout-payment-method"); var checkoutLink = Url.Action("Checkout", new { invoiceId = Model.InvoiceId }); } @functions { private string ToJsValue(object value) { return Safe.Json(value?.ToString()).ToString()?.Replace("\"", "'"); } } @if (!string.IsNullOrEmpty(Model.PaymentSoundUrl)) { } @if (!string.IsNullOrEmpty(Model.NfcReadSoundUrl)) { } @if (!string.IsNullOrEmpty(Model.ErrorSoundUrl)) { }
@if (Model.ShowStoreHeader) { }
@if (Model.IsUnsetTopUp) {

} else {

@Model.Due @Model.PaymentMethodCurrency

}
{{timeText}}
@await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-payment-method", model = Model })

@if (Env.CheatMode) { }
@if (Model.CelebratePayment) { } @if (Env.CheatMode) { } @await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-payment", model = Model }) @await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-end", model = Model })