How can I enter payment entries for all students, categorized by program and course, at once?

How can I enter payment entries for all students, categorized by program and course, at once? For example, we have received payments from more than 100 students and want to add the payment entries to the system in one go. How can we achieve this?

Currently, there is no field for the student unique ID, such as the GRN No of the student, maintained in the payment entries. Instead, only the customer number is there, which does not easily allow us to get the student GRN ID.