Amount based on payment method

We have some payment methods that have additional costs like a fixed markup or a percentage based markup.

How can this be implemented?