Please have a look at the documentation of the mail templates: Shopware 5 - Settings - E-Mails
Shopware uses smarty as template engine and it is also used to customize the mails. You can simply use the payment-method in an if-statement to customize the mail.