The bank should tell you what the fee is and charge it on their side. Price is $10, your card has a 5% fee, as your bank told you, so you pay $10.50 from your account.
Yeah, that's not going to happen. My card gives me 2% back on all transactions, which they're likely extracting from the vendor. They're not going to give me 2% back, and charge me 3% for use.