2017-09-13 23:50:36 +09:00
|
|
|
@model StoreViewModel
|
|
|
|
@{
|
2017-10-27 17:53:04 +09:00
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
2018-08-22 13:56:55 +02:00
|
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Index, "Profile");
|
2017-09-13 23:50:36 +09:00
|
|
|
}
|
|
|
|
|
2019-10-31 15:19:38 +09:00
|
|
|
<partial name="_StatusMessage" />
|
2017-09-13 23:50:36 +09:00
|
|
|
|
|
|
|
<div class="row">
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
2017-09-13 23:50:36 +09:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-02-26 15:40:49 +09:00
|
|
|
<div class="col-md-8">
|
2017-10-27 17:53:04 +09:00
|
|
|
<form method="post">
|
2017-12-03 23:35:52 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Id"></label>
|
|
|
|
<input asp-for="Id" readonly class="form-control" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="StoreName"></label>
|
|
|
|
<input asp-for="StoreName" class="form-control" />
|
|
|
|
<span asp-validation-for="StoreName" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="StoreWebsite"></label>
|
|
|
|
<input asp-for="StoreWebsite" class="form-control" />
|
|
|
|
<span asp-validation-for="StoreWebsite" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2019-01-05 00:37:09 +09:00
|
|
|
<label asp-for="NetworkFeeMode"></label>
|
2018-11-13 16:21:58 +09:00
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#add-network-fee-to-invoice-vary-with-mining-fees" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
2019-01-05 00:37:09 +09:00
|
|
|
<select asp-for="NetworkFeeMode" class="form-control">
|
|
|
|
<option value="MultiplePaymentsOnly">... only if the customer makes more than one payment for the invoice</option>
|
|
|
|
<option value="Always">... on every payment</option>
|
|
|
|
<option value="Never">Never add network fee</option>
|
|
|
|
</select>
|
2017-10-27 17:53:04 +09:00
|
|
|
</div>
|
2018-09-08 14:32:26 +09:00
|
|
|
<div class="form-group">
|
2019-10-13 20:07:41 -07:00
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="AnyoneCanCreateInvoice" type="checkbox" class="form-check-input" />
|
|
|
|
<label asp-for="AnyoneCanCreateInvoice" class="form-check-label"></label>
|
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#allow-anyone-to-create-invoice" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
|
|
|
</div>
|
2018-09-08 14:32:26 +09:00
|
|
|
</div>
|
2017-12-03 14:43:52 +09:00
|
|
|
<div class="form-group">
|
2019-11-07 19:54:46 -08:00
|
|
|
<div class="mb-2">
|
|
|
|
<label asp-for="InvoiceExpiration" class="d-inline"></label>
|
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#invoice-expires-if-the-full-amount-has-not-been-paid-after-minutes" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
|
|
|
</div>
|
2018-01-17 15:11:05 +09:00
|
|
|
<input asp-for="InvoiceExpiration" class="form-control" />
|
|
|
|
<span asp-validation-for="InvoiceExpiration" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2019-11-07 19:54:46 -08:00
|
|
|
<div class="mb-2">
|
|
|
|
<label asp-for="MonitoringExpiration" class="d-inline"></label>
|
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#payment-invalid-if-transactions-fails-to-confirm-minutes-after-invoice-expiration" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
|
|
|
</div>
|
2017-12-03 14:43:52 +09:00
|
|
|
<input asp-for="MonitoringExpiration" class="form-control" />
|
|
|
|
<span asp-validation-for="MonitoringExpiration" class="text-danger"></span>
|
|
|
|
</div>
|
2018-05-04 16:15:34 +02:00
|
|
|
<div class="form-group">
|
2019-11-07 19:54:46 -08:00
|
|
|
<div class="mb-2">
|
|
|
|
<label asp-for="PaymentTolerance" class="d-inline"></label>
|
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#consider-the-invoice-paid-even-if-the-paid-amount-is-less-than-expected" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
|
|
|
</div>
|
2018-05-04 16:15:34 +02:00
|
|
|
<input asp-for="PaymentTolerance" class="form-control" />
|
|
|
|
<span asp-validation-for="PaymentTolerance" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="form-group">
|
2019-11-07 19:54:46 -08:00
|
|
|
<div class="mb-2">
|
|
|
|
<label asp-for="SpeedPolicy" class="d-inline"></label>
|
|
|
|
<a href="https://docs.btcpayserver.org/faq-and-common-issues/faq-stores#consider-the-invoice-confirmed-when-the-payment-transaction" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
|
|
|
</div>
|
2017-10-27 17:53:04 +09:00
|
|
|
<select asp-for="SpeedPolicy" class="form-control">
|
|
|
|
<option value="0">Is unconfirmed</option>
|
|
|
|
<option value="1">Has at least 1 confirmation</option>
|
2018-05-11 22:12:45 +09:00
|
|
|
<option value="3">Has at least 2 confirmations</option>
|
2017-10-27 17:53:04 +09:00
|
|
|
<option value="2">Has at least 6 confirmations</option>
|
|
|
|
</select>
|
|
|
|
<span asp-validation-for="SpeedPolicy" class="text-danger"></span>
|
|
|
|
</div>
|
2020-03-17 08:43:42 +01:00
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="PayJoinEnabled" type="checkbox" class="form-check-input"/>
|
|
|
|
<label asp-for="PayJoinEnabled" class="form-check-label"></label>
|
|
|
|
<span asp-validation-for="PayJoinEnabled" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<h5>Derivation Scheme</h5>
|
2018-02-26 00:48:12 +09:00
|
|
|
<span>The DerivationScheme represents the destination of the funds received by your invoice on chain.</span>
|
2017-12-06 18:08:21 +09:00
|
|
|
</div>
|
2018-01-08 22:45:09 +09:00
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="form-group">
|
2018-04-08 00:06:47 -05:00
|
|
|
<table class="table table-sm table-responsive-md">
|
2018-04-05 23:20:12 -05:00
|
|
|
<thead>
|
2018-01-08 22:45:09 +09:00
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Derivation Scheme</th>
|
2018-08-01 15:59:29 +09:00
|
|
|
<th style="text-align:center;">Enabled</th>
|
|
|
|
<th style="text-align:right;">Actions</th>
|
2018-01-08 22:45:09 +09:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-01-26 11:45:24 +01:00
|
|
|
@foreach(var scheme in Model.DerivationSchemes.OrderBy(scheme => scheme.Collapsed))
|
2018-03-27 14:48:32 +09:00
|
|
|
{
|
2020-01-26 11:45:24 +01:00
|
|
|
<tr class="@(@scheme.Collapsed? "collapsed": "")">
|
2018-03-27 14:48:32 +09:00
|
|
|
<td>@scheme.Crypto</td>
|
2018-08-01 15:59:29 +09:00
|
|
|
<td class="smMaxWidth text-truncate">@scheme.Value</td>
|
|
|
|
<td style="text-align:center;">
|
|
|
|
@if(scheme.Enabled)
|
|
|
|
{
|
|
|
|
<span class="fa fa-check"></span>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span class="fa fa-times"></span>
|
|
|
|
}
|
2018-07-27 13:37:16 +02:00
|
|
|
</td>
|
2018-03-27 14:48:32 +09:00
|
|
|
<td style="text-align:right">
|
2019-12-24 08:20:44 +01:00
|
|
|
@if(!string.IsNullOrWhiteSpace(scheme.Value) && scheme.WalletSupported)
|
2018-03-27 14:48:32 +09:00
|
|
|
{
|
2018-07-27 00:08:07 +09:00
|
|
|
<a asp-action="WalletTransactions" asp-controller="Wallets" asp-route-walletId="@scheme.WalletId">Wallet</a><span> - </span>
|
2018-03-27 14:48:32 +09:00
|
|
|
}
|
2019-10-21 17:54:12 +09:00
|
|
|
<a asp-action="AddDerivationScheme" asp-route-cryptoCode="@scheme.Crypto" asp-route-storeId="@this.Context.GetRouteValue("storeId")" id="@($"Modify{scheme.Crypto}")">Modify</a>
|
2018-03-27 14:48:32 +09:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
2020-01-26 11:45:24 +01:00
|
|
|
|
|
|
|
@if (Model.DerivationSchemes.Any(scheme => scheme.Collapsed))
|
|
|
|
{
|
|
|
|
<tr class="only-for-js">
|
|
|
|
<td colspan="4"><button class="btn btn-link" id="toggle-assets" type="button">Show additional assets</button></td>
|
|
|
|
</tr>
|
|
|
|
}
|
2018-01-08 22:45:09 +09:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-10-27 17:53:04 +09:00
|
|
|
</div>
|
2018-02-26 00:48:12 +09:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<h5>Lightning nodes (Experimental)</h5>
|
2018-02-26 15:16:17 +09:00
|
|
|
<p>
|
2018-05-24 16:26:01 -04:00
|
|
|
<span>A connection to a lightning charge node is required to generate lightning network enabled invoices.<br /></span>
|
2018-03-24 01:58:11 +09:00
|
|
|
<span>This is experimental and not advised for production.</span>
|
2018-02-26 15:16:17 +09:00
|
|
|
</p>
|
2018-02-26 00:48:12 +09:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2018-04-08 00:06:47 -05:00
|
|
|
<table class="table table-sm table-responsive-md">
|
2018-04-05 23:20:12 -05:00
|
|
|
<thead>
|
2018-02-26 00:48:12 +09:00
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Address</th>
|
2018-08-01 15:59:29 +09:00
|
|
|
<th style="text-align:center;">Enabled</th>
|
2018-03-21 02:48:11 +09:00
|
|
|
<th style="text-align:right">Actions</th>
|
2018-02-26 00:48:12 +09:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-04-18 16:38:17 +09:00
|
|
|
@foreach(var scheme in Model.LightningNodes)
|
2018-03-27 14:48:32 +09:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@scheme.CryptoCode</td>
|
2018-08-01 15:59:29 +09:00
|
|
|
<td class="smMaxWidth text-truncate">@scheme.Address</td>
|
|
|
|
<td style="text-align:center;">
|
|
|
|
@if(scheme.Enabled)
|
|
|
|
{
|
|
|
|
<span class="fa fa-check"></span>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span class="fa fa-times"></span>
|
|
|
|
}
|
2018-07-27 13:37:16 +02:00
|
|
|
</td>
|
2019-10-21 17:54:12 +09:00
|
|
|
<td style="text-align:right"><a asp-action="AddLightningNode" asp-route-cryptoCode="@scheme.CryptoCode" asp-route-storeId="@this.Context.GetRouteValue("storeId")" id="@($"Modify-Lightning{scheme.CryptoCode}")">Modify</a></td>
|
2018-03-27 14:48:32 +09:00
|
|
|
</tr>
|
|
|
|
}
|
2018-02-26 00:48:12 +09:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-07 16:27:46 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="LightningDescriptionTemplate"></label>
|
|
|
|
<input asp-for="LightningDescriptionTemplate" class="form-control" />
|
|
|
|
<span asp-validation-for="LightningDescriptionTemplate" class="text-danger"></span>
|
|
|
|
<p class="form-text text-muted">
|
2018-04-07 21:34:24 +09:00
|
|
|
Available placeholders are: {StoreName}, {ItemDescription} and {OrderId}
|
2018-04-07 16:27:46 +09:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-10-24 07:52:19 +02:00
|
|
|
|
2018-10-27 22:41:37 +09:00
|
|
|
<div class="form-group">
|
2018-10-24 07:52:19 +02:00
|
|
|
<div class="form-group">
|
2019-09-03 13:11:36 +02:00
|
|
|
<h5>Additional Payment methods</h5>
|
2018-10-24 07:52:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<table class="table table-sm table-responsive-md">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Provider</th>
|
2019-09-03 13:11:36 +02:00
|
|
|
<th class="text-center">Enabled</th>
|
|
|
|
<th class="text-right">Actions</th>
|
2018-10-24 07:52:19 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-09-03 13:11:36 +02:00
|
|
|
@foreach (var scheme in Model.ThirdPartyPaymentMethods)
|
2018-10-24 07:52:19 +02:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@scheme.Provider</td>
|
2019-09-03 13:11:36 +02:00
|
|
|
<td class="text-center">
|
|
|
|
@if (scheme.Enabled)
|
2018-10-24 07:52:19 +02:00
|
|
|
{
|
|
|
|
<span class="fa fa-check"></span>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span class="fa fa-times"></span>
|
|
|
|
}
|
|
|
|
</td>
|
2020-01-14 12:46:07 +01:00
|
|
|
<td class="text-right"><a asp-action="@scheme.Action" id='Modify-@scheme.Provider' asp-route-storeId="@this.Context.GetRouteValue("storeId")">Modify</a></td>
|
2018-10-24 07:52:19 +02:00
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-10-27 22:41:37 +09:00
|
|
|
</div>
|
2019-01-06 15:53:37 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<h5>Services</h5>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<table class="table table-sm table-responsive-md">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Service</th>
|
|
|
|
<th style="text-align:right">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Email
|
|
|
|
</td>
|
2020-01-14 12:46:07 +01:00
|
|
|
<td style="text-align:right"><a asp-action="Emails" asp-route-storeId="@this.Context.GetRouteValue("storeId")">Modify</a></td>
|
2019-01-06 15:53:37 +01:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-19 22:23:14 +09:00
|
|
|
@if(Model.CanDelete)
|
|
|
|
{
|
|
|
|
<div class="form-group">
|
|
|
|
<h5>Other actions...</h5>
|
|
|
|
<p><a href="#danger-zone" data-toggle="collapse"><b>Click here to see more actions</b></a></p>
|
|
|
|
<div id="danger-zone" class="collapse">
|
|
|
|
<a class="btn btn-outline-danger form-control" asp-action="DeleteStore" asp-route-storeId="@Model.Id">Delete this store</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
2019-05-12 02:13:26 -06:00
|
|
|
<button name="command" type="submit" class="btn btn-primary" value="Save" id="Save">Save</button>
|
2017-10-27 17:53:04 +09:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-09-13 23:50:36 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
2017-10-27 17:53:04 +09:00
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
2020-01-26 11:45:24 +01:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(".collapsed").hide();
|
|
|
|
$("#toggle-assets").click(function() {
|
|
|
|
$(".collapsed").show();
|
|
|
|
$(this).parents("tr").hide();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-09-13 23:50:36 +09:00
|
|
|
}
|