I want to get fee from users, how can i do that?

I built a smart contract deployment dapp and it’s working very well but i want to get fee from users for my service, for example; 0.2 BNB for each deployment.
How can i do that via react-moralis? Or ethers js?
Thanks !!

you may need to add that fee somehow in the smart contract

Ah okay make sense, maybe i can use “require”. Thanks, i’ll try it.