Skip to content

Template: Payment Failed

Sent when a payment reaches a terminal failed state.

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
Always sends
Text message
Off
Push notification
On
  • Recipient role recipient.role
  • Date sent current_date

This message offers no smart blocks.

Subject: Your payment did not go through

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>Your payment did not go through</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;">Your payment of $120 could not be taken.</div><div aria-label="Your payment did not go through" 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 could not take your payment of $120.</p><p>Log in to your portal to check your payment method and try again.</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, your payment of $120 did not go through. Log in at https://acme.example to try again.</p>
<p>- Acme Gymnastics</p>
</div>
<div data-channel="push">
<p data-title="true">Payment did not go through</p>
<p>We could not take your payment of $120. Open your portal to try again.</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.

payment(type: payment)

An object representing a payment transaction.

PropertyTypeDescription
payment.idstringUnique ID of the payment (UUID).
payment.amountstringThe payment amount (formatted decimal string).
payment.gateway_transaction_messagestringMessage returned by the payment gateway.
payment.gateway_transaction_statusstringStatus code or label returned by the gateway.

family(type: family)

An object representing a household / family group.

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