CC-processing fees

Hi there, I’m wondering is there a way to add on 2.9% to cover stripe processing fees if clients choose to pay via cc?