This problem requires a Pro subscription. Upgrade to access all 15 industry domains and 1,500+ questions.
Upgrade to ProYou are a Frontend Engineer at Stripe. The dashboard team needs to display payment methods with user-friendly labels instead of raw database codes. For example, a card with funding = 'credit' should show as "Credit Card", while a bank_account method should show as "Bank Transfer". Some payment methods (e.g., wallets, crypto) may not have a last4 value, so you need to handle NULLs gracefully.
You are a Frontend Engineer at Stripe. The dashboard team needs to display payment methods with user-friendly labels instead of raw database codes. For example, a card with funding = 'credit' should show as "Credit Card", while a bank_account method should show as "Bank Transfer". Some payment methods (e.g., wallets, crypto) may not have a last4 value, so you need to handle NULLs gracefully.