mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-04 22:04:37 +01:00
Providing option to disable Pay Button at later date
This commit is contained in:
committed by
nicolas.dorier
parent
deb56e16ec
commit
c5cb32f6dd
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user