Refactor payment detail view