This article walks through the steps to add a checkbox for donors to optionally cover your merchant gateway payment processing fee for donations and event ticket sales: https://www.trailblz.com/kb/?action=view&kb=1378&cat=0&qq=fee
This page provides an example of how the form can look: http://www.pandamonium.us/donateV2.html