[TASK] remove duplicate function (getPayment)