@using BTCPayServer.Payments
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using BTCPayServer.Abstractions.TagHelpers
@using BTCPayServer.Abstractions.Contracts
@using BTCPayServer.Client
@using BTCPayServer.TagHelpers
@inject IFileService FileService
@model CheckoutAppearanceViewModel
@{
ViewData.SetActivePage(StoreNavPages.CheckoutAppearance, StringLocalizer["Checkout Experience"], Context.GetStoreData().Id);
var canUpload = await FileService.IsAvailable();
}
@functions {
private string CriteriaTypeDisplayName(PaymentMethodCriteriaViewModel.CriteriaType type)
{
return type switch
{
PaymentMethodCriteriaViewModel.CriteriaType.GreaterThan => StringLocalizer["Greater than"],
PaymentMethodCriteriaViewModel.CriteriaType.LessThan => StringLocalizer["Less than"],
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null)
};
}
}
@section PageFootContent {