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:
@@ -174,7 +174,7 @@ export class WebhookService {
|
|||||||
return stripe.webhooks.constructEvent(
|
return stripe.webhooks.constructEvent(
|
||||||
rawBody,
|
rawBody,
|
||||||
signature,
|
signature,
|
||||||
process.env.STRIPE_WEBHOOK_SECRET!
|
config.stripe.webhookSecret
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user