Paypal button with dynamic client ID

Existing plugins cannot solve my problem, I need to create a button with a dynamically changing field for entering the client’s ID from PayPal. The goal is for the end user to be able to pay directly to the specific owner of this ID.
I easily generate the button itself in the PayPal system and easily substitute a dynamic expression there, but this button does not return information about a successful transaction to me. I don’t understand api at all and I can’t create such a button. Anyone can help? Maybe there is already a solution?