mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-07 08:04:29 +01:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
@model EditWebhookViewModel
|
|
@using BTCPayServer.Client.Models;
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Webhooks, "Send a test event to a webhook endpoint", Context.GetStoreData().StoreName);
|
|
}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<form method="post">
|
|
<h4 class="mb-3">@ViewData["PageTitle"]</h4>
|
|
|
|
<div class="form-group">
|
|
<label for="Type">Event type</label>
|
|
<select name="Type" id="Type" class="form-control w-auto">
|
|
@foreach (var evt in new[]
|
|
{
|
|
WebhookEventType.InvoiceCreated,
|
|
WebhookEventType.InvoiceReceivedPayment,
|
|
WebhookEventType.InvoiceProcessing,
|
|
WebhookEventType.InvoiceExpired,
|
|
WebhookEventType.InvoiceSettled,
|
|
WebhookEventType.InvoiceInvalid
|
|
})
|
|
{
|
|
<option value="@evt">
|
|
@evt
|
|
</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Send test webhook</button>
|
|
</form>
|
|
</div>
|
|
</div>
|