Add get payments

Added get_payments functionality.