Architecture Track • Advanced • 3 mins review
Refactor: Centralize Payment logic
Moving all payment related logic into a single manager to make it easier to find.
Scenario Goal & Context
Goal: Consolidate all logic (validation, DB access, HTTP calls to third parties) into a single Manager class.
Background: Developers were complaining that payment logic was spread across too many files.
Changed Files (2)
- src/controllers/PaymentController.ts +6 -2
- src/managers/PaymentManager.ts +14 -0
Ready to practice reviewing this PR?
Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.
Start Review Session