Files to modify : backend/src/server.ts Acceptance Criteria :
- Extract shared payment route logic into a reusable function
- Ensure all versions (v1, v2, legacy) use this function
- Maintain current functionality and API response format
- All tests pass after refactoring Why Important : Reduces code duplication, improves maintainability
Files to modify : backend/src/server.ts Acceptance Criteria :