Providing option to disable Pay Button at later date

This commit is contained in:
rockstardev
2018-09-04 00:00:20 -05:00
committed by nicolas.dorier
parent deb56e16ec
commit c5cb32f6dd
2 changed files with 24 additions and 7 deletions

View File

@@ -121,8 +121,25 @@
Please fix errors shown in order for code generation to successfully execute.
</div>
</div>
<br />
</div>
<br /><br />
<hr />
<h3>Disable Pay Button</h3>
<div class="row">
<div class="col-md-10">
<form method="post">
<div class="form-group">
<p>
Disabling this feature will cause your currently used Pay Buttons to stop working.
Customers trying to use Pay Button to create Invoices will be displayed appropriate message.
You can always reenable Pay Buttons at later time.
</p>
@Html.Hidden("EnableStore", false)
<button name="command" type="submit" value="save" class="btn btn-primary">Disable Pay Button</button>
</div>
</form>
</div>
</div>
@section HeadScripts {

View File

@@ -1,7 +1,7 @@
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePageAndTitle(StoreNavPages.PayButton, "Enable access");
ViewBag.MainTitle = "Confirm enabling of Pay Button";
ViewData.SetActivePageAndTitle(StoreNavPages.PayButton, "Please confirm you want to enable Pay Button");
ViewBag.MainTitle = "Pay Button";
}
<h4>@ViewData["Title"]</h4>
@@ -11,10 +11,10 @@
<form method="post">
<div class="form-group">
<p>
To start using Pay Button you need to explicitly enable creation of Invoices by Pay Button.
Once you do so, valid POST requests from any source will allow creation of invoices on your instance of BtcPayServer.
To start using Pay Buttons you need to explicitly turn on this feature.
Once you do so, valid POST requests from any source will allow creation of Invoices on your instance of BtcPayServer.
</p>
<input type="hidden" name="enableStore" value="true" />
@Html.Hidden("EnableStore", true)
<button name="command" type="submit" value="save" class="btn btn-primary">Enable Pay Button</button>
</div>
</form>