{% extends 'emails/email-template.html.twig' %} {# /************************************************************************ File name: payment-reminder.html.twig Project: Villas3 Copyright 2022 Michael J. Miller, All rights reserved Purpose: automatic payment reminder Requires: customer.name_full, reservation record, payment_date, payment_amount Revision History: Date Version Details -------- ------- ------------------------------------------------- 8/27/25 3.0.2 Modified to handle due now message to handle a few days past due more grracefully. *************************************************************************/ #} {% block content %} {% if mode is not defined %} {% set mode = reservation.payment_state %} {% endif %} {% if mode == 'auto' %}
Your Automatic Payment is Processing Soon
{% elseif mode == 'due_now' %}
Your Payment is Due
{% elseif mode == 'past_due' %}
Your Payment is Past Due
{% elseif mode == 'delinquent' or mode == 'evict' %}
Your Payment is Seriously Past Due
{% endif %}

Dear {{reservation.name_full|title}},

{% if mode == 'auto' %}

An automatic reservation payment of {{(payment_amount / 100)|format_currency(reservation.currency_code|upper, {grouping_used:true}, 'en')}} will be charged to your card on {{payment_date|date("M j, Y")}}.

{% elseif mode == 'due_now' %}

You have a reservation payment {{ payment_date > today ? 'coming due' : 'due' }} that you will need pay on our website. {{reservation.source == 'booking' ? ' You can use the link below to make a payment.' : 'You can use the link below to access your reservation.'}}

{% elseif mode == 'past_due' %}

Your payment is past due.

{% elseif mode == 'delinquent' %}

Your payment is seriously past due.

{% endif %} {% include('emails/reservation-summary.html.twig') %}
{% if mode == 'auto' %} Payments will be charged to your chosen payment method on their due dates. {% include('emails/reservation-payment-plan.html.twig') %} {% else %} {% if payment_date < today %} A payment of {{(payment_amount / 100)|format_currency(reservation.currency_code|upper, {grouping_used:true}, 'en')}} was due on {{payment_date|date("M j, Y")}}. Please remit promptly. {% elseif payment_date > today %} A payment of {{(payment_amount / 100)|format_currency(reservation.currency_code|upper, {grouping_used:true}, 'en')}} is due on {{payment_date|date("M j, Y")}}. {% else %} Your payment of {{(payment_amount / 100)|format_currency(reservation.currency_code|upper, {grouping_used:true}, 'en')}} is due {{today|date("M j, Y")}}. {% endif %} {% if mode == 'auto' %} {% elseif mode == 'due_now' %} {% elseif mode == 'past_due' %}

Without an immediate payment, we will offer others the opportunity to reserve this holiday home on the dates currently reserved for you and you could lose your reservation.

{% elseif mode == 'delinquent' %}

As we have not received payment your reservation dates are no longer guaranteed. If someone else books any of those dates you will lose your reservation.

{% elseif mode == 'evict' %}

We have been more than reasonable in allowing you to start your holiday without payment. You are now considered to be trespassing! You must make full payment immediately to avoid eviction.

{% endif %} {% if reservation.balance_due > payment_amount %}

Future payments will be charged to your chosen payment method on their due dates.

{% include('emails/reservation-payment-plan.html.twig') %} {% endif %} {% endif %}


{{ (mode == 'delinquent') ? 'We appreciate your business! ' : ''}}You can retrieve cancellation policy information, terms and conditions, and more, at {{SITE_DOMAIN}}

Thank you,
{{SITE_OWNER}}

{% endblock %}