@Safe.Raw(item.Title)
@Safe.Raw(item.Description)
}Custom Amount
Create invoice to pay custom amount
@using BTCPayServer.Client.Models @using BTCPayServer.Services @using Microsoft.AspNetCore.Mvc.TagHelpers @inject DisplayFormatter DisplayFormatter @model BTCPayServer.Plugins.PointOfSale.Models.ViewPointOfSaleViewModel @{ Layout = "PointOfSale/Public/_Layout"; } @functions { private string GetItemPriceFormatted(AppItem item) { if (item.PriceType == AppItemPriceType.Topup) return "any amount"; if (item.Price == 0) return "free"; var formatted = DisplayFormatter.Currency(item.Price ?? 0, Model.CurrencyCode, DisplayFormatter.CurrencyFormat.Symbol); return item.PriceType == AppItemPriceType.Minimum ? $"{formatted} minimum" : formatted; } }
@Safe.Raw(item.Description)
}Create invoice to pay custom amount