user135515: I'm trying to create a transaction and send it to the blockchain.
The goal is to get an address from which the money comes and an address to which the money will go, send the transaction to the network, wait for the wallet owner from which the money comes to approve the transaction in his wallet and finally get the transaction address.
I can not understand how to do this without asking the wallet owner from whom the money was sent the private key.
I would appreciate your help,
Thanks!

user13866: The process described in the question is not the way normal transactions are created and processed in Bitcoin.
You can request payment by, for example, showing the customer a barcode (QR-code)† that contains the address you want to be paid and the amount. Alternatively you just show them the address and amount in plain text. As a developer web-page on payment processing implies, the customer creates the whole transaction themselves without any assistance. They might typically use a wallet app to scan the barcode and press "send".
When your wallet observes any payment to the given address, including unconfirmed payments, it will,  as part of verification, calculate the TxHash (Transaction-ID, a hash of transaction data).

There is provision for more complex forms of transaction. For example multisignature transactions and partially signed bitcoin transactions (PSBT). There is also Lightning, Liquid etc. However, it isn't clear from the information provided that any of these are relevant to you.

† See Bitcoin URL scheme

135515: <p>I'm trying to create a transaction and send it to the blockchain.</p>
<p>The goal is to get an address from which the money comes and an address to which the money will go, send the transaction to the network, wait for the wallet owner from which the money comes to approve the transaction in his wallet and finally get the transaction address.</p>
<p>I can not understand how to do this without asking the wallet owner from whom the money was sent the private key.</p>
<p>I would appreciate your help,
Thanks!</p>
 13866: <p>The process described in the question is not the way normal transactions are created and processed in Bitcoin.</p>
<p>You can request payment by, for example, showing the customer a barcode (QR-code)<sup>†</sup> that contains the address you want to be paid and the amount. Alternatively you just show them the address and amount in plain text. As a <a href="https://developer.bitcoin.org/devguide/payment_processing.html" rel="nofollow noreferrer">developer web-page on payment processing</a> implies, the customer creates the whole transaction themselves without any assistance. They might typically use a wallet app to scan the barcode and press &quot;send&quot;.</p>
<p>When your wallet observes any payment to the given address, including unconfirmed payments, it will,  as part of verification, calculate the TxHash (Transaction-ID, a hash of transaction data).</p>
<hr />
<p>There is provision for more complex forms of transaction. For example multisignature transactions and partially signed bitcoin transactions (PSBT). There is also Lightning, Liquid etc. However, it isn't clear from the information provided that any of these are relevant to you.</p>
<hr />
<p><sup>†</sup> See <a href="https://bitcoin.stackexchange.com/q/4987/13866">Bitcoin URL scheme</a></p>
