{% 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' %}
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') %}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 %}Thank you,
{{SITE_OWNER}}