I'm looking for the same thing here. i created a wrapper for our payment system - we require Authorize.net for now but I may be able to get away with stripe in our next plunge and would use cashier for the sales. But... what about commissions/affiliates?
To be honest I am looking for something I can just plug into my site - but really it can't be that hard. Affiliates would get a URL that has a query string that identifies them, and we create some session variable that identifies that individual or company. When a sale goes through we capture the session variable (company/individual identifier) and pass that companies id along with the transaction. Then I would create an admin area for them when they login they would see all of THEIR sales, meaning transaction that have their company id in that row. companies->orders() one-to-many.
Not sure it would be much more difficult than that - maybe show total commission owed, email the store admin that you want a check, you can get creative showing data and notifications to people - tons of that out there.