Skip to content

Payment Failed Email

Email-safe card declined template with an alert banner, subscription and amount summary, decline reasons, update payment button and relative retry wording.

Live preview

Open in new tab

Code

An email-safe "payment failed" template for subscription services, built with nested tables and inline styles. A red alert banner, a summary of the affected subscription and amount, common decline reasons, a bulletproof "Update payment method" button and a retry note with relative wording ("in 3 days") help customers fix a declined card quickly. The patterns target Outlook (Windows desktop), Gmail and Apple Mail.

How it works

A hidden preheader (.pf-preheader) sets the inbox preview text. The full-width .pf-wrap table paints the deep plum background, and the centered .pf-container table is limited to 600 px with max-width; MSO conditional comments add a fixed 600 px table for Outlook. The brand row and "View in browser" link sit above the white card.

The card starts with the .pf-banner row: a warning icon image and a bold message on red. The .pf-title heading and a short explanation follow. The subscription summary is a two-cell table (.pf-cell) with a red left border: plan name on the left, amount due and card on the right. Three decline reasons use numbered circles made from small table cells with border-radius, so no images or icon fonts are needed. The button is a padded table cell (.pf-btn-cell) holding the .pf-btn link; mso-padding-alt gives Outlook the same padding. A tinted box explains the automatic retry, then a support row and the footer with address, manage account and unsubscribe links.

Customization

  • Change #d92d20 in .pf-banner, the summary border and the amount to adjust the alert color; #ff7a59 on .pf-btn-cell is the button color.
  • Update the retry wording ("in 3 days", "a week from now") to match your dunning schedule; keep it relative so the template never shows a stale date.
  • Replace the three reason rows with the decline codes your payment provider returns.
  • Point the .pf-btn href to your hosted billing portal or update-card page.
  • Below 480 px the .pf-cell cells stack and .pf-btn becomes full width via style.css; remove those rules to keep the desktop layout.
  • Swap the brand row text, the background color of .pf-wrap and the footer address for your own company details.

Accessibility

Layout tables use role="presentation". The banner icon has alt="Warning" and the message is real text, so the alert is understood without images. Headings (h1, h2) give a clear outline, text on the coral button and the red banner meets WCAG AA contrast, and links are underlined.

Usage notes

index.html is body content only: wrap it in a complete HTML document and paste style.css into a <style> block in the <head>. Those rules are progressive extras (body reset, hover, mobile stacking). The warning icon is a Twemoji PNG from jsDelivr (CC-BY 4.0); host your own copy for production. Send this as a transactional message, and test in Outlook and Gmail before going live.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Payment Failed Email – Pure CSS email templates component screenshot
Payment Failed Email · Pure CSS Email Templates

More Email Templates

Promotional Sale Email with Discount Code – Pure CSS email templates preview

Promotional Sale Email with Discount Code

Email-safe sale template with a big 40% off banner, dashed discount code box, four-product price grid, bulletproof shop button and terms line.

Re-engagement We Miss You Email – Pure CSS email templates preview

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.

Invoice Receipt Email – Pure CSS email templates preview

Invoice Receipt Email

Email-safe payment receipt template with amount paid, invoice details, line items, tax and total, and a bulletproof Download PDF invoice button.

Scheduled Maintenance Notice Email – Pure CSS email templates preview

Scheduled Maintenance Notice Email

Email-safe service maintenance notice with a relative maintenance window, affected services table with impact labels, what to expect list and status page button.

Seasonal Holiday Sale Email – Pure CSS email templates preview

Seasonal Holiday Sale Email

Email-safe holiday sale template with a festive header photo, four gift guide image tiles, a limited-time offer block and a bulletproof shop button.

Email Verification Email – Pure CSS email templates preview

Email Verification Email

Dark, email-safe confirm-your-email template with a big bulletproof verify button, a six-digit one-time code, expiry note and footer.