How to identify a transaction in Bitcoin
It's recommended to give every single transaction its own, unique Bitcoin address to receive the payment at (you should not reuse them). Then, you know any payment made to that particular address should be credited to the invoice that that address was issued for.
Most places don't ask for a transaction ID. They simply automatically check all of the addresses they've given out, then credit the payment according to which address the payment was sent to.