mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-07 08:04:29 +01:00
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(
This commit is contained in:
@@ -28,9 +28,9 @@ public class PaymentRequestWebhookProvider: WebhookProvider<PaymentRequestEvent>
|
||||
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__"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user