How do I edit messages in ePayment emails?

You can do that in Settings > ePayments. At the top-right, click Settings and you can find the Email Message Options for regular invoices as well as retainer invoices in the ePayment Account Settings dialog. Check CORE Help Center for details.