Creator which allows mint after ERC20 transfer

Hello,
Is there an extension I can use to allow mint only after a fee is paid or is that something I have to make custom?
Thx in advance for responses