MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getCommunityId

Function getCommunityId

apps/web/pages/api/webhook/stripe.ts:37–41  ·  view source on GitHub ↗
(event: any)

Source from the content-addressed store, hash-verified

35}
36
37async function getCommunityId(event: any) {
38 const { customer: customerId } = event.data.object as any;
39 const customer = (await stripe.customers.retrieve(customerId)) as any;
40 return customer.metadata.communityId;
41}
42
43export default async function handler(
44 request: NextApiRequest,

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected