How a fee can be added to a specific payment?

Hi, in Germany it is not allowed to put an extra Fee to a „general Payment“, General Payments are  most used payments for online sales.

So you have to clear in your country if it is allowed or not and if cash on delivery would be a general payment or not in the laws view…