From e2e7e5972293cd20acf0585ac403adc89e3d7ea1 Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Fri, 19 Jan 2024 13:30:15 +0100 Subject: [PATCH] Fix webhook test for payment requests (#5680) When testing the webhook for payment requests, we were incorrectly creating a payout webhook instead of a payment request. This would cause an error (but nothing fatal as it is only a test webhook( --- .../HostedServices/Webhooks/PaymentRequestWebhookProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/HostedServices/Webhooks/PaymentRequestWebhookProvider.cs b/BTCPayServer/HostedServices/Webhooks/PaymentRequestWebhookProvider.cs index 191f5315e..d6fb48bcd 100644 --- a/BTCPayServer/HostedServices/Webhooks/PaymentRequestWebhookProvider.cs +++ b/BTCPayServer/HostedServices/Webhooks/PaymentRequestWebhookProvider.cs @@ -28,9 +28,9 @@ public class PaymentRequestWebhookProvider: WebhookProvider public override WebhookEvent CreateTestEvent(string type, object[] args) { var storeId = args[0].ToString(); - return new WebhookPayoutEvent(type, storeId) + return new WebhookPaymentRequestEvent(type, storeId) { - PayoutId = "__test__" + Guid.NewGuid() + "__test__" + PaymentRequestId = "__test__" + Guid.NewGuid() + "__test__" }; }