Why can’t you just simply use the invoice id or reference?
Another thing you could do would be to use a Complementary attribute and perhaps even let some code automatically calculate a payment reference for you.
All I need to be done for the time being is a line to be added in the payment terms section which reads: Please reference the invoice number when making your payment.