ERC20 inside ERC721 Payable

I have a big doubt.
I'm building an application where the user can create their NFT, however, the payment that will be used to create the NFT will be my token that ERC20.

My question is how do I use the ERC20 token as a charge when the user creates the NFT? Remembering that the charge is made to the account of the person who is creating the NFT.

For a basic example my contract ERC721 there is the following method...

contract MyNFT is ERC721 {
.....
function createNft() public{
//need here add the method payment using my token erc20
}
.....
}

Have the same question