@using System.Text.RegularExpressions
@model StoreViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePageAndTitle(StoreNavPages.Index, Model.StoreName);
}
@if (!ViewContext.ModelState.IsValid)
{
}
Wallet
@if (Model.HintWallet)
{
Set up your wallet to receive payments at your store.
}
@foreach (var scheme in Model.DerivationSchemes.OrderBy(scheme => scheme.Collapsed))
{
var isSetUp = !string.IsNullOrWhiteSpace(scheme.Value);
-
@scheme.Crypto
@if (isSetUp)
{
@scheme.Value
@if (scheme.Value.Length > 20)
{
@Regex.Match(scheme.Value, @"((?:-\[(?:[^\]])+\])+|\S{6})$").Value
}
@if (scheme.WalletSupported)
{
Manage Wallet
}
}
@if (scheme.Enabled)
{
Enabled
}
else
{
Disabled
}
@if (isSetUp)
{
|
}
@(isSetUp ? "Modify" : "Setup")
}
@if (Model.DerivationSchemes.Any(scheme => scheme.Collapsed))
{
}
Lightning
@if (Model.HintLightning)
{
A connection to a Lightning node is required to receive Lightning payments.
}
@foreach (var scheme in Model.LightningNodes)
{
var isSetUp = !string.IsNullOrWhiteSpace(scheme.Address);
-
@scheme.CryptoCode
@if (isSetUp)
{
@scheme.Address
}
@if (scheme.Enabled)
{
Enabled
}
else
{
Disabled
}
@if (isSetUp)
{
|
}
@(isSetUp ? "Modify" : "Setup")
}
Additional payment methods
Services
Service |
Actions |
Email
|
Setup
|
@if (Model.CanDelete)
{
Other actions
}
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}