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:
Andrew Camilleri
2024-01-19 13:30:15 +01:00
committed by GitHub
parent 8b373bda8e
commit e2e7e59722

View File

@@ -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__"
};
}