Is there a way to attach an invoice after a student

Is there a way to attach an invoice after a student registers and pays?

Thanks