I updated the getpayment functions