Make get_payments support multiple ids