Using Credit Card in Peru

I am going to travel to Peru in 2 months. I have read that credit card is widely accepted in Peru. But is there any extra fees that is charged to the customers (not including foreign exchange fee on the credit card itself). For example, when booking trek or Peru Hop online, they charge 5-6% for using credit card. Does that only apply to online transactions or all credit card transactions?