2023-12-01 10:50:05 +01:00
|
|
|
@using BTCPayServer.HostedServices.Webhooks
|
2021-04-18 17:53:57 -07:00
|
|
|
@model EditWebhookViewModel
|
2023-12-01 10:50:05 +01:00
|
|
|
@inject WebhookSender WebhookSender
|
2021-04-18 17:53:57 -07:00
|
|
|
@{
|
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
2021-12-31 08:36:38 +01:00
|
|
|
ViewData.SetActivePage(StoreNavPages.Webhooks, "Send a test event to a webhook endpoint", Context.GetStoreData().Id);
|
2021-04-18 17:53:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8">
|
|
|
|
<form method="post">
|
2022-01-17 17:19:27 -08:00
|
|
|
<h3 class="mb-3">@ViewData["Title"]</h3>
|
2021-04-18 22:52:32 -07:00
|
|
|
<div class="form-group">
|
2021-06-03 21:15:53 -07:00
|
|
|
<label for="Type" class="form-label">Event type</label>
|
|
|
|
<select
|
2023-12-01 10:50:05 +01:00
|
|
|
asp-items="@WebhookSender.GetSupportedWebhookTypes().Select(s => new SelectListItem(s.Value,s.Key))"
|
2021-06-03 21:15:53 -07:00
|
|
|
name="Type"
|
|
|
|
id="Type"
|
|
|
|
class="form-select w-auto"
|
|
|
|
></select>
|
2021-04-18 22:52:32 -07:00
|
|
|
</div>
|
2022-01-17 17:19:27 -08:00
|
|
|
<button type="submit" class="btn btn-primary mt-3">Send test webhook</button>
|
2021-04-18 17:53:57 -07:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|