Which wallet are you using?
- If it’s the official Algorand wallet https://algorandwallet.com, you can generate in JS a QR code for the transfer. The wallet would then need to scan the QR code. https://developer.algorand.org/docs/reference/payment_prompts/
- If it is MyAlgoWallet, you can use GitHub - randlabs/myalgo-connect
Thanks. Helped a lot
check the a-wallet source code: