home

Browse documentation

ezyVet Knowledge Center

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

Configure a receipt template to show surcharge information

If your organization uses surcharges for PayJunction or Windcave payments, your receipts must show surcharge information. Surcharge information is mandatory for surcharge regulations.

  • Make sure that you contacted customer support for PayJunction or Windcave to activate surcharges
  • Make sure that your ezyVet site has a document template for payment receipts
To configure a receipt template, do this procedure.
  1. Select Admin.
    The Admin tab
  2. In the settings list, select Templates.
    The Templates setting in the settings list
  3. Select Financial Settings.
    The Financial Settings tab
  4. Double click the Payment Receipt box.
    The Payment Receipt box
    ezyVet shows your organization's payment receipt template.
  5. Make sure that Use New Templating Engine is selected.
    The Use New Templating Engine setting
    Note: If you do not select Use New Templating Engine, you cannot use the Twig template system.
  6. Select Source.
    The Source button
  7. In the receipt content, put the cursor at the location that you want the receipt to show surcharge information.
  8. Enter the necessary text.
    To configure the bottom of a receipt to only show surcharge information for clients that use credit cards, select the bottom of the text and enter this text:
    {% if payment.getSurchargeAmount > 0 %}
    <tr>
    <td><strong>Surcharge</strong></td>
    <td style="width:326px">{{ payment.getSurchargeAmount|moneyformat }}</td>
    </tr>
    {% endif %}
    <tr>
    <td><strong>Total Paid</strong></td>
    <td style="width:326px">{{ (payment.getSurchargeAmount + payment.amount)|moneyformat }}</td>
    </tr>
    {% if payment.getSurchargeAmount > 0 %}
    <div>
    <p>A surcharge was applied to cover our costs of credit card acceptance.</p>
    </div>
    {% endif %}
    As a result, when a client uses a credit card the receipt shows:
    • The total value of the surcharge of the client payment
    • The total value of the payment plus the the total value of the surcharge
    • A sentence about why your organization uses surcharges

    If a client does not use a credit card, the receipt does not show the surcharge information.

  9. Select Save.
    The Save button
    ezyVet shows a confirmation message:

The template has surcharge information. As a result, when staff receive a client payment that has a surcharge, the receipt for the payment shows the surcharge information.