To lay out your comment:
When the payment service gateway deducts $5\%$ of the total payment, they return $95\%$ of the total payment to the firm. So you have $$\text{Firm's net receipt } = \text{Total payment } \times \frac{95}{100}$$ and can find the total payment by dividing both sides by $\frac{95}{100}$ to give $$\text{Total payment } = \text{Firm's net receipt } \div \frac{95}{100}$$ or equivalently $$\text{Total payment } = \text{Firm's net receipt } \times \frac{100}{95}$$ and if you want the firm's net receipt to be $600$ then the total payment should be about $631.58$