2023-01-22 03:08:12 +09:00
@using BTCPayServer.Views.Stores
2022-09-20 10:05:55 +02:00
@using Microsoft.AspNetCore.Mvc.TagHelpers
2022-07-15 05:38:33 +02:00
@using BTCPayServer.Abstractions.Models
2024-03-14 10:25:40 +01:00
@using BTCPayServer.Client
2022-04-24 05:19:34 +02:00
@model List<BTCPayServer.PayoutProcessors.UIPayoutProcessorsController.StorePayoutProcessorsView>
@{
var storeId = Context.GetStoreData().Id;
2022-09-20 10:05:55 +02:00
ViewData.SetActivePage(StoreNavPages.PayoutProcessors, "Payout Processors", storeId);
2022-04-24 05:19:34 +02:00
}
2024-06-19 15:23:10 +02:00
<div class="sticky-header">
2024-07-25 22:46:02 +09:00
<h2 class="my-1" text-translate="true">@ViewData["Title"]</h2>
2024-06-19 15:23:10 +02:00
</div>
2024-10-09 17:44:19 +09:00
<partial name="_StatusMessage" />
2024-10-17 15:51:40 +02:00
<p text-translate="true">Payout Processors allow BTCPay Server to handle payouts in an automated way.</p>
2024-06-19 15:23:10 +02:00
2022-04-24 05:19:34 +02:00
<div class="row">
<div class="col-xl-8 col-xxl-constrain">
@if (Model.Any())
{
2022-05-02 15:07:48 +02:00
foreach (var processorsView in Model)
2022-04-24 05:19:34 +02:00
{
2022-05-02 15:07:48 +02:00
<h4 class="mt-5">@processorsView.Factory.FriendlyName</h4>
<table class="table table-hover mt-0">
<thead>
<tr>
2024-10-17 15:51:40 +02:00
<th text-translate="true">Payment Method</th>
2024-03-14 10:25:40 +01:00
<th class="actions-col" permission="@Policies.CanModifyStoreSettings">Actions</th>
2022-05-02 15:07:48 +02:00
</tr>
</thead>
<tbody>
@foreach (var conf in processorsView.Configured)
{
<tr>
<td>
2024-04-04 16:31:04 +09:00
@conf.Key.ToString()
2022-05-02 15:07:48 +02:00
</td>
2024-03-14 10:25:40 +01:00
<td class="actions-col" permission="@Policies.CanModifyStoreSettings">
2022-05-02 15:07:48 +02:00
@if (conf.Value is null)
2022-04-24 05:19:34 +02:00
{
2024-10-17 15:51:40 +02:00
<a href="@processorsView.Factory.ConfigureLink(storeId, conf.Key, Context.Request)" text-translate="true">Configure</a>
2022-04-24 05:19:34 +02:00
}
2022-05-02 15:07:48 +02:00
else
{
2024-10-17 15:51:40 +02:00
<a href="@processorsView.Factory.ConfigureLink(storeId, conf.Key, Context.Request)" text-translate="true">Modify</a>
2023-05-15 09:49:01 +02:00
@if (await processorsView.Factory.CanRemove())
{
<span>-</span>
2024-10-17 15:51:40 +02:00
<a asp-action="Remove" asp-route-storeId="@storeId" asp-route-id="@conf.Value.Id" data-bs-toggle="modal" data-bs-target="#ConfirmModal" data-description="The @Html.Encode(processorsView.Factory.FriendlyName) (@Html.Encode(conf.Key.ToString())) will be removed from your store." text-translate="true">Remove</a>
2023-05-15 09:49:01 +02:00
}
2022-05-02 15:07:48 +02:00
}
</td>
</tr>
}
</tbody>
</table>
2022-04-24 05:19:34 +02:00
}
}
else
{
2024-10-17 15:51:40 +02:00
<p class="text-secondary mt-3" text-translate="true">
2022-04-24 05:19:34 +02:00
There are no processors available.
</p>
}
</div>
</div>
2024-03-14 10:25:40 +01:00
<partial name="_Confirm" model="@(new ConfirmModel("Delete payout processor", "This payout processor will be removed from this store.", "Delete"))" permission="@Policies.CanModifyStoreSettings" />
2022-04-24 05:19:34 +02:00
@section PageFootContent {
<partial name="_ValidationScriptsPartial"/>
}