MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getStripeId

Function getStripeId

packages/internal/src/util/stripe.ts:10–12  ·  view source on GitHub ↗
(expandable: string | { id: string })

Source from the content-addressed store, hash-verified

8 * Extracts the ID string from a Stripe expandable field.
9 */
10export function getStripeId(expandable: string | { id: string }): string {
11 return typeof expandable === 'string' ? expandable : expandable.id
12}
13
14export const stripeServer = new Stripe(env.STRIPE_SECRET_KEY, {
15 apiVersion: '2024-06-20',

Calls

no outgoing calls

Tested by

no test coverage detected