feat: add webhook signing key as config variable

This commit is contained in:
mrjvs
2026-08-12 20:54:28 +02:00
parent 8a8c84756d
commit be092ca6b5
5 changed files with 6 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export async function handleStripeEvent(event: H3Event, stripe: Stripe, webhook:
return;
}
if (webhook.type === 'customer.subscription.updated' || webhook.type === 'customer.subscription.deleted') {
if (webhook.type === 'customer.subscription.updated' || webhook.type === 'customer.subscription.created' || webhook.type === 'customer.subscription.deleted') {
const subscription = webhook.data.object;
const subscriptionItem = subscription.items.data[0];
if (!subscriptionItem) {