File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/routes/api/stripe/products Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ PUBLIC_SUPER_USER_ID=
88STRIPE_KEY =
99STRIPE_WEBHOOK_SECRET_PRICES =
1010STRIPE_WEBHOOK_SECRET_SUBSCRIPTIONS =
11- STRIPE_WEBHOOOK_SECRET_PRODUCTS =
11+ STRIPE_WEBHOOK_SECRET_PRODUCTS =
1212SUPABASE_SERVICE_KEY =
1313SUPABASE_SCRIPTERS_WEBHOOK_SECRET =
Original file line number Diff line number Diff line change 1- import { STRIPE_WEBHOOOK_SECRET_PRODUCTS } from "$env/static/private"
1+ import { STRIPE_WEBHOOK_SECRET_PRODUCTS } from "$env/static/private"
22import { stripe } from "$lib/server/stripe.server"
33import { supabaseAdmin } from "$lib/server/supabase.server"
44import { formatError } from "$lib/utils"
@@ -12,7 +12,7 @@ export const POST = async ({ request }) => {
1212 const body = await request . text ( )
1313
1414 try {
15- event = stripe . webhooks . constructEvent ( body , sig , STRIPE_WEBHOOOK_SECRET_PRODUCTS )
15+ event = stripe . webhooks . constructEvent ( body , sig , STRIPE_WEBHOOK_SECRET_PRODUCTS )
1616 } catch ( err ) {
1717 console . log ( err )
1818 throw error ( 404 , "Event is not valid! Body: " + body + " Error: " + err )
You can’t perform that action at this time.
0 commit comments