Let's say that originally, you wanted to charge your customer an amount of $A$, but on second thought, you want to charge an additional amount of $\delta A$ so that you will have a remaining amount of $\pi A$ after a credit card fee (which is based on the total amount you charge your customer, at a rate of $c$) and a flat fee $F$.
In equations, we have
$$\begin{align} \left( A + \delta A \right) - c \left( A + \delta A \right) - F & = \pi A, \\ \left( 1 - c \right) \left( A + \delta A \right) - F & = \pi A, \\ \left( 1 - c \right) \left( A + \delta A \right) & = \pi A + F, \\ A + \delta A & = \frac {\pi A + F}{1 - c}, \\ 1 + \delta & = \frac {\pi + F / A}{1 - c}, \\ \delta & = \frac {\pi + F / A}{1 - c} - 1. \end{align}$$
This is the percentage that you need to additionally charge to achieve your goal. Specifically in your case, $\pi = 97.0 \%$, $F = 0.30$ and $A = 100$, $c = 2.9 \%$, so
$$\delta = \frac {97.0 \% + 0.30 / 100}{1 - 2.9 \%} \approx 0.206 \%, \; \delta A \approx 0.21.$$
If $A = 50$, other things being equal, then
$$\delta = \frac {97.0 \% + 0.30 / 50}{1 - 2.9 \%} \approx 0.515 \%, \; \delta A \approx 0.26.$$
You can change the values of the parameters as you want.