800-601-0230

  • Pricing

ezyVet Surcharge: Updating a Receipt Template

Note: This requires using ezyVet’s TWIG templates. Classic templates are not supported.

This guide walks you through adding the required surcharge information to your ezyVet receipt template to help ensure compliance with card brand rules and state laws.

Paste the HTML code example below into your receipt template or receipt footer template. You may need to adjust the styling so it matches the rest of your receipt.

HTML Code Example:

{% if payment.getSurchargeAmount%}
<table style="width:700px">
  <tbody>
   <tr>
    <td><strong>Surcharge</strong></td>
    <td>{{ payment.getSurchargeAmount|moneyformat }}</td>
   </tr>
   <tr>
    <td><strong>Total Paid</strong></td>
    <td><strong>{{ (payment.getSurchargeAmount + payment.amount)|moneyformat }}</strong></td>
   </tr>
  </tbody>
</table>

<div>
  <p>A surcharge was applied to cover our costs of credit card acceptance.</p>
</div>
{% endif %}