Credit card processing fee for digital product

I see how to add a percentage on top of products that ship. But how do I add a percentage to digital products for the credit card transaction fee?