Rules
Commission that survives an edge case
A flat percentage is easy. Per-vendor rates, per-category rates, tiered rates and a minimum fee are where the arithmetic starts disagreeing with the payout report. The rules have to be one implementation, not one per screen.
Set the rules once, read them everywhere.