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