#Jerry Jose

1 messages · Page 1 of 1 (latest)

frank sedgeBOT
civic heart
#

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

high gulch
#

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();
civic heart
#

Is this the exact error you see? Stripe-Signature is not present in the request header.

#

Does it come from EventUtility.ConstructEvent?

high gulch
#

yes

frank sedgeBOT
civic heart
#

It doesn't look like a Stripe error. What SDK and version are you using?

high gulch
#

stripe-dotnet, v41.2.0