Skip to content

Template: Enrolment Kept After Payment Failed

Sent when an enrolment is kept after its payment fails following approval from the payment provider. The family still owes the amount and needs to pay it.

checkout_enrolment_kept_payment_failed

This message

Category
Payments
Message type
Service message
Variants
Staff can add variants
Who receives it
Families guardian
About audiences

Sends by default

Email
On
Text message
Off
Push notification
On
  • Recipient role recipient.role
  • Date sent current_date
  • Category enrolment.activity.category
  • Program enrolment.activity.program
  • Location enrolment.activity.location
  • Sport enrolment.activity.sport
  • Level enrolment.activity.level
  • Enrolment details: Shows the activity, schedule and start date of an enrolment.

Subject: Payment still needed for Pat

From: Acme Gymnastics <hello@acme.example>

<!doctype html><html lang="en-AU" dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><title>Payment still needed for Pat</title><!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]--><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
#outlook a { padding: 0; }
body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
table, td { border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; }
p { display: block; margin: 13px 0; }
</style>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<!--[if lte mso 11]>
<style type="text/css">
.mj-outlook-group-fix { width:100% !important; }
</style>
<![endif]-->
<!--[if !mso]><!--><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css"><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);</style><!--<![endif]--><style type="text/css">@media only screen and (min-width:480px) { .mj-column-per-100 { width:100% !important; max-width:100%; } }</style><style media="screen and (min-width:480px)">.moz-text-html .mj-column-per-100 { width:100% !important; max-width:100%; } </style><style type="text/css">@media only screen and (max-width:479px) {
table.mj-full-width-mobile { width: 100% !important; }
td.mj-full-width-mobile { width: auto !important; }
}
</style><style type="text/css">:root { color-scheme: light dark; supported-color-schemes: light dark; }
.t p { margin: 0 0 12px; }
.t p:last-child { margin-bottom: 0; }
.t h1, .t h2, .t h3 { margin: 0 0 12px; line-height: 1.25; }
.t h1 { font-size: 24px; }
.t h2 { font-size: 20px; }
.t h3 { font-size: 18px; }
.t ul, .t ol { margin: 0 0 12px; padding-left: 24px; }
.t blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 4px solid #d4d4d8; }
.t pre { margin: 0 0 12px; padding: 12px; background: #f4f4f5; white-space: pre-wrap; }
.t a { color: #1a73e8; text-decoration: underline; }
.muted a { color: #1a73e8; text-decoration: underline; }
@media (prefers-color-scheme: dark) {
.page { background-color: #0f0f10 !important; }
.card, .card > table, .identification, .identification > table {
background: #1c1c1e !important; background-color: #1c1c1e !important;
}
.t div, .t td, .t th, .t p, .t h1, .t h2, .t h3 { color: #e4e4e7 !important; }
.muted div { color: #b4b4bb !important; }
.t a, .muted a { color: #93c5fd !important; }
.t pre { background: #2a2a2e !important; }
.t blockquote { border-left-color: #3f3f46 !important; }
.t th, .t td { border-bottom-color: #3f3f46 !important; }
.divider p { border-top-color: #3f3f46 !important; }
.callout-info { background-color: #172554 !important; }
.callout-warning { background-color: #422006 !important; }
.logo img { background: #ffffff; padding: 8px; border-radius: 6px; box-sizing: border-box; }
}</style><meta name="color-scheme" content="light dark" /><meta name="supported-color-schemes" content="light dark" /></head><body style="word-spacing:normal;background-color:#f4f4f5;"><div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">We kept the enrolment, but the payment did not go through.</div><div aria-label="Payment still needed for Pat" aria-roledescription="email" class="page" role="article" lang="en-AU" dir="ltr" style="background-color:#f4f4f5;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" bgcolor="#ffffff" align="center" width="600" class="card-outlook" style="width:600px;"><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="card" style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" align="center" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:24px 0 8px;text-align:center;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation"><tr><![endif]--><!--[if mso | IE]><td style="vertical-align:top;width:600px;"><![endif]--><div class="mj-outlook-group-fix mj-column-per-100" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%" style="vertical-align:top;"><tbody><tr><td align="center" class="logo" style="font-size:0px;padding:0 25px;word-break:break-word;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;"><tbody><tr><td style="width:140px;"><img alt="Acme Gymnastics" height="auto" src="https://docs.keja.co/images/acme_black.svg" width="140" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" /></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--><!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" bgcolor="#ffffff" align="center" width="600" class="card-outlook" style="width:600px;"><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="card" style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" align="center" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:8px 0 16px;text-align:center;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation"><tr><![endif]--><!--[if mso | IE]><td style="vertical-align:top;width:600px;"><![endif]--><div class="mj-outlook-group-fix mj-column-per-100" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%" style="vertical-align:top;"><tbody><tr><td align="left" class="t" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#18181b;"><p>Hi Alex,</p><p>We have kept Pat's enrolment in Gym Kids 6-7 yrs, but the payment did not go through. You still owe the amount.</p></div></td></tr><tr><td align="left" class="t details" style="font-size:0px;padding:10px 25px;word-break:break-word;"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#18181b;font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;table-layout:auto;width:100%;border:none;"><tr><th scope="row" align="left" style="padding:8px 12px 8px 0;font-weight:600;vertical-align:top;border-bottom:1px solid #e4e4e7">Activity</th><td style="padding:8px 0;border-bottom:1px solid #e4e4e7">Gym Kids 6-7 yrs</td></tr><tr><th scope="row" align="left" style="padding:8px 12px 8px 0;font-weight:600;vertical-align:top;border-bottom:1px solid #e4e4e7">Schedule</th><td style="padding:8px 0;border-bottom:1px solid #e4e4e7">Wednesday 5:00 pm to 7:00 pm</td></tr><tr><th scope="row" align="left" style="padding:8px 12px 8px 0;font-weight:600;vertical-align:top;border-bottom:1px solid #e4e4e7">Starts</th><td style="padding:8px 0;border-bottom:1px solid #e4e4e7">Thu 3 Sep 2026, 5:00 pm</td></tr><tr><th scope="row" align="left" style="padding:8px 12px 8px 0;font-weight:600;vertical-align:top;border-bottom:1px solid #e4e4e7">Ends</th><td style="padding:8px 0;border-bottom:1px solid #e4e4e7">Ongoing</td></tr></table></td></tr><tr><td align="left" class="t" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#18181b;"><p>Log in to your portal to pay as soon as you can.</p></div></td></tr><tr><td align="center" vertical-align="middle" class="btn" style="font-size:0px;padding:16px 25px;word-break:break-word;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;"><tbody><tr><td align="center" bgcolor="#1a73e8" role="presentation" valign="middle" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:12px 24px;background:#1a73e8;"><a href="https://acme.example" target="_blank" style="display:inline-block;background:#1a73e8;color:#ffffff;font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:16px;font-weight:600;line-height:20px;margin:0;text-decoration:none;text-transform:none;padding:12px 24px;mso-padding-alt:0px;border-radius:3px;">Go to your portal</a></td></tr></tbody></table></td></tr><tr><td align="left" class="t" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#18181b;"><p>Acme Gymnastics</p></div></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--><!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" bgcolor="#ffffff" align="center" width="600" class="card-outlook" style="width:600px;"><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="card" style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" align="center" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:16px 0 0;text-align:center;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation"><tr><![endif]--><!--[if mso | IE]><td style="vertical-align:top;width:600px;"><![endif]--><div class="mj-outlook-group-fix mj-column-per-100" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%" style="vertical-align:top;"><tbody><tr><td align="center" class="muted" style="font-size:0px;padding:4px 25px;word-break:break-word;"><div style="font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:14px;line-height:1.5;text-align:center;color:#52525b;"><strong>Questions? Contact Acme Gymnastics</strong><br /><a href="tel:+61412345678">+61412345678</a> &middot; <a href="mailto:hello@acme.example">hello@acme.example</a> &middot; <a href="https://acme.example">https://acme.example</a></div></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--><!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" bgcolor="#ffffff" align="center" width="600" class="card identification-outlook" style="width:600px;"><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="card identification" style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" align="center" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:0 0;text-align:center;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation"><tr><![endif]--><!--[if mso | IE]><td style="vertical-align:top;width:600px;"><![endif]--><div class="mj-outlook-group-fix mj-column-per-100" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%" style="vertical-align:top;"><tbody><tr><td align="center" class="muted" style="font-size:0px;padding:16px 25px 24px;word-break:break-word;"><div style="font-family:-apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-size:14px;line-height:1.5;text-align:center;color:#52525b;">Acme Gymnastics | ABN 12 345 678 901<br />hello@acme.example, +61412345678<br />12 Example Street, Perth WA 6000, Australia<br />You're receiving this email because you're a member of Acme Gymnastics.</div></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--><!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></div></body></html>
<div data-channel="sms">
<p>Hi Alex, Pat&#x27;s enrolment in Gym Kids 6-7 yrs is kept, but the payment did not go through. Log in at https://acme.example to pay.</p>
<p>- Acme Gymnastics</p>
</div>
<div data-channel="push">
<p data-title="true">Payment still needed</p>
<p>Pat&#x27;s enrolment is kept, but the payment did not go through.</p>
</div>

These variables are available in the Liquid template context. Access a property with a dot, such as enrolment.activity.name. For a list, [n] is one item, starting at 0, such as socials[n].platform. A question mark after a type, such asstring?, means the value can be empty. For a guided introduction to Liquid in Cadence, see Communication templates.

organisation(type: organisation)

Your organisation: its name, contact details and branding.

PropertyTypeDescription
organisation.namestringName of your organisation.
organisation.logo_urlstring?Web address of your logo.
organisation.accent_colourstring?Your brand colour as a hex code, such as #1a73e8.
organisation.accent_foregroundstring?The text colour (white or near black) that reads best on your accent colour. Empty when no brand colour is set.
organisation.emailstringContact email address.
organisation.phonestring?Contact phone number.
organisation.websitestring?Web address of your website.
organisation.addressaddress?Postal address.
organisation.address.street_addressstringStreet number and name.
organisation.address.citystringSuburb or city.
organisation.address.statestringState or territory.
organisation.address.postcodestringPostcode.
organisation.address.countrystringCountry.
organisation.abnstring?Australian Business Number.
organisation.portal_urlstringThe web address of your customer portal.
organisation.time_zonestringTime zone name, such as Australia/Perth.

socials(type: list[social_profile])

Your organisation's social media profiles. Empty until social profiles are available.

{% for social in socials %}
  {{ social.platform }}
{% endfor %}

In the table, n is that item's position, starting at 0.

PropertyTypeDescription
socials[n].platformstringThe platform, such as instagram or facebook.
socials[n].namestringThe display name of the platform.
socials[n].handlestringThe profile handle.
socials[n].urlstringWeb address of the profile.

recipient(type: recipient)

The person who receives this message.

PropertyTypeDescription
recipient.idintegerUnique ID of the recipient. Compare it with a member's ID to tell whether the message is about the person receiving it.
recipient.first_namestringFirst name of the recipient.
recipient.display_namestringFull formatted display name of the recipient.
recipient.rolestringWhy this person receives the message: guardian, member, instructor or staff.

current_date(type: date)

Today's date in your organisation's time zone.

portal_url(type: string)

The web address of your customer portal.

enroled_member(type: member)

An object representing a member/person in Cadence.

PropertyTypeDescription
enroled_member.idintegerUnique ID of the member. Compare it with recipient.id to tell whether the message is about the person receiving it.
enroled_member.first_namestringFirst name of the member.
enroled_member.last_namestring?Last name of the member. Only the first name is required.
enroled_member.display_namestringFull formatted display name.
enroled_member.emailstringPrimary email address.
enroled_member.phonestringPrimary phone number.

guardian(type: member)

An object representing a member/person in Cadence.

PropertyTypeDescription
guardian.idintegerUnique ID of the member. Compare it with recipient.id to tell whether the message is about the person receiving it.
guardian.first_namestringFirst name of the member.
guardian.last_namestring?Last name of the member. Only the first name is required.
guardian.display_namestringFull formatted display name.
guardian.emailstringPrimary email address.
guardian.phonestringPrimary phone number.

enrolment(type: enrolment)

An object representing an enrolment in an activity.

PropertyTypeDescription
enrolment.idintegerUnique ID of the enrolment.

For example, 42.

enrolment.activityactivityThe enrolled activity details.
enrolment.activity.idintegerUnique ID of the activity.
enrolment.activity.namestringName of the activity.
enrolment.activity.schedule_summarystringA human-readable summary of the activity schedule.
enrolment.activity.categorycategoryThe category the activity belongs to.
enrolment.activity.category.idintegerUnique ID of the category.
enrolment.activity.category.namestringName of the category.
enrolment.activity.category.path_idslist[integer]The IDs of this category and every parent category, so filters can match subcategories.
enrolment.activity.programprogram?The program the activity belongs to, directly or through its level.
enrolment.activity.program.idintegerUnique ID of the program.
enrolment.activity.program.namestringName of the program.
enrolment.activity.locationlocationWhere the activity runs.
enrolment.activity.location.idintegerUnique ID of the location.
enrolment.activity.location.namestringName of the location.
enrolment.activity.sportsport?The sport of the activity.
enrolment.activity.sport.idintegerUnique ID of the sport.
enrolment.activity.sport.namestringName of the sport.
enrolment.activity.levellevel?The level of the activity.
enrolment.activity.level.idintegerUnique ID of the level.
enrolment.activity.level.namestringName of the level.
enrolment.start_datetimedatetimeWhen the enrolment starts.

For example, 2026-09-03T09:00:00+00:00.

enrolment.end_datetimedatetime?When the enrolment ends. Empty when the enrolment is ongoing.
enrolment.enrolment_summarystringA short user-facing summary of the enrolment.

For example, Pat Smith in Gym Kids 6-7 yrs.

family(type: family)

An object representing a household / family group.

PropertyTypeDescription
family.idintegerUnique ID of the family.
family.namestringFamily name.

checkout_id(type: string)