📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fixed stripe-signature header naming
Blue Mouse4aa8ff3dab8b
diff --git a/src/webhook/webhook.controller.ts b/src/webhook/webhook.controller.tsindex 9d606de15..a188544e8 100644--- a/src/webhook/webhook.controller.ts+++ b/src/webhook/webhook.controller.ts@@ -23,7 +23,7 @@ export class WebhookController {let eventtry {- event = stripe.webhooks.constructEvent(body, headers['Stripe-Signature'], STRIPE_WH_SECRET)+ event = stripe.webhooks.constructEvent(body, headers['stripe-signature'], STRIPE_WH_SECRET)} catch (err) {this.logger.error(err)this.logger.error('Webhook signature verification failed.')@@ -33,7 +33,6 @@ export class WebhookController {// Extract the object from the event.const dataObject = event.data.object- console.log(event.type, event.data)// Handle the event// Review important events for Billing webhooks