Free email template
Payment failed (dunning) email template
A ready-to-use failed payment (dunning) email template with friendly copy, an update-card button and responsive HTML. Copy it, swap in your brand and variables, and send.
Last reviewed November 2026
Your payment didn't go through · Update your card to keep your account active.
payment-failed.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="x-apple-disable-message-reformatting">
<title>Your payment didn't go through</title>
</head>
<body style="margin:0;padding:0;background:#f4f4f5;">
<div style="display:none;max-height:0;overflow:hidden;opacity:0;">Update your card to keep your account active.</div>
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background:#f4f4f5;">
<tr><td align="center" style="padding:32px 16px;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="max-width:560px;background:#ffffff;border-radius:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<tr><td style="padding:32px 32px 0;font-size:18px;font-weight:700;color:#18181b;">Acme</td></tr>
<tr><td style="padding:24px 32px 8px;">
<h1 style="margin:0 0 16px;font-size:22px;line-height:30px;color:#18181b;">Your payment didn't go through</h1>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">We tried to charge your card for your Acme subscription, but the payment was declined. This sometimes happens when a card expires or a bank blocks a charge.</p>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="margin:8px 0 24px;"><tr><td style="border-radius:8px;background:#18181b;"><a href="https://acme.com/settings/billing" style="display:inline-block;padding:12px 24px;font-size:15px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:8px;">Update payment method</a></td></tr></table>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">We'll retry automatically in 3 days. Update your card before then to avoid any interruption.</p>
</td></tr>
<tr><td style="padding:16px 32px 32px;border-top:1px solid #f4f4f5;font-size:13px;line-height:20px;color:#a1a1aa;">Your account stays active while we retry.<br>Acme Inc., 123 Market St, San Francisco, CA</td></tr>
</table>
</td></tr>
</table>
</body>
</html>Subject line ideas
- Your payment didn't go through
- Action needed: update your payment method
- We couldn't process your payment
Preheader: Update your card to keep your account active.
Best practices
- Be friendly, not alarming: most failures are expired cards.
- Say exactly when you'll retry and when access changes.
- Send a short sequence (day 0, 3, 7) and stop once payment succeeds.
Variables used
{{amount}}, {{retry_date}}
Plain-text version
Always send a text part alongside HTML. It helps deliverability and accessibility.
Your payment didn't go through
We tried to charge your card for your Acme subscription, but the payment was declined. This sometimes happens when a card expires or a bank blocks a charge.
Update payment method: https://acme.com/settings/billing
We'll retry automatically in 3 days. Update your card before then to avoid any interruption.
--
Your account stays active while we retry.
Send it with the API
POST /v1/emails
curl -X POST https://stackemails.com/v1/emails -H "Authorization: Bearer $STACKEMAILS_API_KEY" -H "Content-Type: application/json" -d '{
"from": "Acme <hello@mail.acme.com>",
"to": "ada@example.com",
"subject": "Your payment didnt go through",
"html": "<!-- the HTML above, with variables filled in -->",
"text": "<!-- the plain-text version -->",
"tags": [{ "name": "template", "value": "payment-failed" }]
}'