Re-Leased interview question

Refactor the payment process method in the codebase