Email template for Payments

I would like to develop an email template for payments.
From an earlier post, I understand that Payments and Receipts share the same template.
To insert a title specific text, I need to test the following:
{% if title == “Receipt” %}
Text for receipts
{% endif %}

{% if title == “Payment” %}
Text for payments
{% endif %}

What are the fields ( label and content) for
the payment date; the payment reference and the payment total.

Appreciating your help.

Don’t worry about this. The latest version (21.5.1) shows email templates for both receipts and payments separate so this conditional logic is not required anymore.

As for the variable names to insert date:

{{ fields["Date"] }}

to insert reference:

{{ fields["Reference"] }}

to insert total amount:

{{ table.totals["Total"] }}

Basically the same variables that are possible in custom themes are possible in email templates.

1 Like

Thanks!