Recieve crypto payment

I’m building website that will accept crypto payment for funding user account

  1. How do I generate a unique address for all the users so that they can fund their wallet by sending crypto into their wallet

They can use their own wallet, it it safer this way, and use authentication with MetaMask

Yes, I can use metamask or wallet connect but the client said that I should generate a unique address in the site just as crypto exchanges generate addresses for the users

You can do that, but you will have to take extra security measures for how you keep those generated addresses.

Okay, is there any moralis api for that, if there is any pls give me the link pls

there isn’t a Moralis API for that, but you can use something like this in your browser console to understand how it should work:

web3 = await Moralis.enableWeb3()
x = await web3.eth.accounts.create()

this would generate a private key and an address, and you can use web3 in a cloud function.

Okay, thanks, I will give a try