2021-07-27 20:00:33 +02:00
@using BTCPayServer.Views.Stores
@using BTCPayServer.Abstractions.Extensions
2018-12-11 12:47:38 +01:00
@model UpdateCoinSwitchSettingsViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";
2021-04-27 07:37:08 +02:00
ViewData["NavPartialName"] = "../Stores/_Nav";
2021-05-14 09:08:32 +02:00
ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Update Store CoinSwitch Settings", Context.GetStoreData().StoreName);
2018-12-11 12:47:38 +01:00
}
2021-04-08 15:32:42 +02:00
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
2018-12-11 12:47:38 +01:00
<div class="row">
<div class="col-md-10">
<form method="post">
2019-01-28 09:40:23 +01:00
<div class="alert alert-warning" role="alert">
If you are enabling CoinSwitch support, we advise that you configure the invoice expiration to a minimum of 30 minutes as it may take longer than the default 15 minutes to convert the funds.
</div>
2018-12-11 12:47:38 +01:00
<p>
2019-01-28 09:40:23 +01:00
You can obtain a merchant id at
2021-07-06 10:35:42 +02:00
<a href="https://coinswitch.co/switch/setup/btcpay" target="_blank" rel="noreferrer noopener">
2018-12-28 10:49:12 +01:00
https://coinswitch.co/switch/setup/btcpay
2018-12-11 12:47:38 +01:00
</a>
</p>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="MerchantId" class="form-label"></label>
2018-12-11 12:47:38 +01:00
<input asp-for="MerchantId" class="form-control"/>
<span asp-validation-for="MerchantId" class="text-danger"></span>
</div>
2018-12-18 19:01:58 +01:00
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="Mode" class="form-label"></label>
2021-05-19 04:39:27 +02:00
<select asp-for="Mode" asp-items="Model.Modes" class="form-select"></select>
2018-12-18 19:01:58 +01:00
</div>
2019-03-31 18:55:14 +02:00
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="AmountMarkupPercentage" class="form-label"></label>
2019-03-31 18:55:14 +02:00
<input asp-for="AmountMarkupPercentage" class="form-control"/>
<span asp-validation-for="AmountMarkupPercentage" class="text-danger"></span>
</div>
2021-06-06 13:44:54 +02:00
<div class="form-group form-check">
<label asp-for="Enabled" class="form-check-label"></label>
<input asp-for="Enabled" type="checkbox" class="form-check-input"/>
2018-12-18 20:14:59 +01:00
</div>
2018-12-11 12:47:38 +01:00
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
2021-05-19 04:39:27 +02:00
@section PageFootContent {
2021-04-08 15:32:42 +02:00
<partial name="_ValidationScriptsPartial" />
2018-12-11 12:47:38 +01:00
}