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

Function serializePaymentMethod

apps/web/pages/api/subscriptions/index.ts:25–32  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

23}
24
25function serializePaymentMethod(data: any) {
26 return {
27 type: data.type,
28 card: {
29 last4: data.card.last4,
30 },
31 };
32}
33
34export async function index({ communityId }: { communityId: string }) {
35 const response1 = await stripe.customers.search({

Callers 1

indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected