mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Disable shapeshift and use changelly * UI to manage changelly payment method * wip on changelly api * Add in Vue component for changelly and remove target currency from payment method * add changelly merhcant id * Small fixes to get Conversion to load * wip fixing the component * fix merge conflict * fixes to UI * remove debug, fix fee calc and move changelly to own partials * Update ChangellyController.cs * move original vue setup back to checkout * Update core.js * Extracting Changelly component to js file * Proposal for loading spinner * remove zone * imrpove changelly ui * add in changelly config checks * try new method to calculate amount + remove to currency from list * abstract changelly lofgic to provider and reduce dependency on js component * Add UTs for Changelly * refactor changelly backend * fix failing UT * add shitcoin tax * pr changes * pr changes * WIP: getting rid of changelly dependency * client caching, compiling code, cleaner code * Cleaner changelly * fiat! * updat i18n, css and error styler * default keys * pr changes part 1 * part2 * fix tests * fix loader alignment and retry button responsiveness * final pr change
56 lines
2.4 KiB
Text
56 lines
2.4 KiB
Text
@using Microsoft.AspNetCore.Mvc.Rendering
|
|
@model UpdateChangellySettingsViewModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Index, "Update Store Changelly Settings");
|
|
}
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
|
<partial name="_StatusMessage" for="StatusMessage"/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label asp-for="ApiUrl"></label>
|
|
<input asp-for="ApiUrl" class="form-control"/>
|
|
<span asp-validation-for="ApiUrl" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ApiKey"></label>
|
|
<input asp-for="ApiKey" class="form-control"/>
|
|
<span asp-validation-for="ApiKey" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ApiSecret"></label>
|
|
<input asp-for="ApiSecret" class="form-control"/>
|
|
<span asp-validation-for="ApiSecret" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ChangellyMerchantId"></label>
|
|
<input asp-for="ChangellyMerchantId" class="form-control"/>
|
|
<span asp-validation-for="ChangellyMerchantId" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="AmountMarkupPercentage"></label>
|
|
<input asp-for="AmountMarkupPercentage" class="form-control"/>
|
|
<span asp-validation-for="AmountMarkupPercentage" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ShowFiat"></label>
|
|
<input asp-for="ShowFiat" class="form-check"/>
|
|
<span asp-validation-for="ShowFiat" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Enabled"></label>
|
|
<input asp-for="Enabled" type="checkbox" class="form-check"/>
|
|
</div>
|
|
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
|
|
<button name="command" type="submit" value="test" class="btn btn-primary">Test Settings</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|