Existe uma maneira de associar um ID de transação a um link de convite?

When a user pays to obtain an invitation link, they obtain a link that gives them the freedom to use any email address they want to register. The problem is that if they decide to cancel the purchase, then I would have to know which user is canceling. I would do that if there were a hidden custom fixed field with the transaction ID during registration.