Credit card processor charges, for each transaction, $2.9\% + \$0.30$.
I need to find an amount that covers that cost, from $\$5$ to $\$5,000$, on a per item basis, all while maintaining a small profit.
For example, a customer may want to purchase 3 items. Each item has a different price and possibly a different fee structure based on whether or not it's a for-profit purchase or non-profit purchase.
Item 1 is $\$10$ and for-profit so we need to account for the processing fee plus a $5\%$ profit.
Item 2 is $\$80$ and for-profit so we need to account for the processing fee plus a $5\%$ profit.
Item 3 is $\$25$ and non-profit so we need to account for the processing fee only- no profit.
What I cannot determine is a full-proof way to account for the fees all the way up to $5,000 without losing money on the processing fees.