finished payCash() and payCredit()