The majority of Betfair customers will only pay commission on net winnings in a market but there are other charges that you should be aware of.
Please see Betfair Charges for a detailed explanation of the various charges.
Using a Betfair API application such as Betting Assistant it is quite easy to incur some of the additional charges unless your betting actions are managed.