(value: T, message?: string)
| 272 | |
| 273 | export function formatPaymentMethodDescription(info: PaymentMethodInfo): string { |
| 274 | if (info.type === 'link') { |
| 275 | return 'Stripe Link'; |
| 276 | } |
| 277 | if (info.type === 'card' && info.last4) { |
| 278 | const brand = info.brand ? info.brand.charAt(0).toUpperCase() + info.brand.slice(1) : 'Card'; |
| 279 | return `${brand} ending in ${info.last4}`; |
| 280 | } |
| 281 | return ''; |
no outgoing calls
no test coverage detected