FRE-5400: Consolidate webhook secret to single config source

WebhookService.constructEvent now reads from config.stripe.webhookSecret
instead of process.env.STRIPE_WEBHOOK_SECRET, matching BillingService.handleWebhook.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-15 23:30:31 -04:00
parent 7c2b585c16
commit 24c31f1b1b

View File

@@ -174,7 +174,7 @@ export class WebhookService {
return stripe.webhooks.constructEvent(
rawBody,
signature,
process.env.STRIPE_WEBHOOK_SECRET!
config.stripe.webhookSecret
);
}