You record every payment along with fees in an accounting software such as Quickbooks. There are Quickbooks whmcs modules (if you use whmcs) that will automate this for you. Take a look at myworks quickbook sync, www.myworks.design
Of course you will need a quickbook account to use this. Otherwise, you can just send your sales total along with fees and expenses to your accountant every month.