Integrated ivy's bill code

changing completePay
removed checkPay