How to add a credit card surcharge when a customer chooses to pay by card

Hi all,

It's been a while, but I have a new question. When I was ordering tokens from the odoo IAP store, I noticed that they were having a surcharge for the credit card payments,

Now is the thing that I've been looking for the same thing but can't find how to set it up on odoo online V17 (upgrading soon to 18, I hope),

The desired outcome should be that when a customer clicks on the credit card option, the surcharge is automatically added to their invoice with the percentage pre-chosen by me.

I feel like this is hidden in a menu I haven't found yet; if not, please let me know if there are other ways to set it up.