Add API to get credit cards for a specific user.

Fixes #5077
Fix whitespacing.