@model EditWebhookViewModel @using BTCPayServer.HostedServices.Webhooks @inject WebhookSender WebhookSender @{ var storeId = Context.GetStoreData().Id; ViewData.SetActivePage(StoreNavPages.Webhooks, "Webhook", storeId); } @section PageHeadContent { }
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 WebhookSender.GetSupportedWebhookTypes()) {
}
@if (!Model.IsNew && Model.Deliveries.Count > 0) {

Recent deliveries

    @foreach (var delivery in Model.Deliveries) {
  • @if (delivery.Success) { } else { } @if (!delivery.Pruned) { @delivery.Id } @delivery.Time.ToBrowserDate()
  • }
}
@section PageFootContent { }