home

Browse documentation

ezyVet Knowledge Center

Get access to documentation, training, and other high-quality resources.

Twig template variables: Remote payments

The remote payment variables show a URL for an online payment of an invoice or a statement. The remote payment variables work only with a payment integration.

Variables

Note: Remote payments only operate with payment integrations. Thus, make sure that your ezyVet site has a configured integration for the applicable payment integration (for example, Windcave or PayJunction).
NameClassic template system equivalent?Function
{{invoice.RemotePaymentLink}}{InvoiceRemotePaymentLink}Shows a remote payment link that clients can select to make a payment.
Note: You can only use this template variable for invoices.
{{invoice.HasBalanceOutstanding}}{InvoiceHasBalanceOutstanding}Shows if the invoice has an outstanding balance. The possible values are:
  • YES (the invoice has an outstanding balance)
  • No value (the invoice does not have an outstanding balance)
Note: You can only use this template variable for invoices.
Note: To show a remote payment link only when the invoice has an outstanding balance, enter:
{% if invoice.HasBalanceOutstanding %}Click <a href="https://{{ invoice.RemotePaymentLink }}">here</a> to make a payment.{% endif %}
{{statement.remotePaymentLink}}{StatementRemotePaymentLink}Shows a remote payment link that clients can select to make a payment.
Note: You can only use this template variable with a document template for client statements.
{{remotePaymentLink}}{RemotePaymentLink}Shows a remote payment link that clients can select to make a payment.
Note: You can only use this template variable with an email template.