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