@model EditWebhookViewModel @using BTCPayServer.Client.Models; @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePage(StoreNavPages.Webhooks, "Webhook Settings", Context.GetStoreData().Id); } @section PageHeadContent { }

@ViewData["Title"]

The endpoint receiving the payload must validate the payload by checking that the HTTP header BTCPAY-SIG of the callback matches the HMAC256 of the secret on the payload's body bytes.

Events

@foreach (var evt in new[] { ("A new invoice has been created", WebhookEventType.InvoiceCreated), ("A new payment has been received", WebhookEventType.InvoiceReceivedPayment), ("A payment has been settled", WebhookEventType.InvoicePaymentSettled), ("An invoice is processing", WebhookEventType.InvoiceProcessing), ("An invoice has expired", WebhookEventType.InvoiceExpired), ("An invoice has been settled", WebhookEventType.InvoiceSettled), ("An invoice became invalid", WebhookEventType.InvoiceInvalid) }) {
}
@if (Model.IsNew) { } else { }
@if (!Model.IsNew && Model.Deliveries.Count > 0) {

Recent deliveries

}
@section PageFootContent { }