refactoring the cashPaymentResponse to accept cash response