#Jerry Jose
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share an example Event ID? evt_xxx
And the code that handles the webhook events
var stripeInput = await new StreamReader(HttpContext.Current.Request.InputStream).ReadToEndAsync();
var webhookSecretKey = ConfigurationManager.AppSettings["WebhookSecretKey"];
try
{
var stripeEvent = EventUtility.ParseEvent(stripeInput);
var stripeSignature = HttpContext.Current.Request.Headers["Stripe-Signature"];
stripeEvent = EventUtility.ConstructEvent(stripeInput, stripeSignature, webhookSecretKey);
var healthcarePayment = new HealthcarePayment();
Is this the exact error you see? Stripe-Signature is not present in the request header.
Does it come from EventUtility.ConstructEvent?
yes
It doesn't look like a Stripe error. What SDK and version are you using?
stripe-dotnet, v41.2.0