In this scenario, the correct way to journalize the transaction where a customer pays for services rendered is:
Debit cash and credit fees earned.
This records the increase in cash (an asset) as a result of the payment, and it recognizes the revenue earned (fees earned) by crediting that account.